29 lines
829 B
PHP
29 lines
829 B
PHP
|
|
<?php
|
||
|
|
|
||
|
|
declare(strict_types=1);
|
||
|
|
|
||
|
|
namespace Database\Factories;
|
||
|
|
|
||
|
|
use App\Models\SalesProspect;
|
||
|
|
use Illuminate\Database\Eloquent\Factories\Factory;
|
||
|
|
|
||
|
|
/** @extends Factory<SalesProspect> */
|
||
|
|
class SalesProspectFactory extends Factory
|
||
|
|
{
|
||
|
|
protected $model = SalesProspect::class;
|
||
|
|
|
||
|
|
public function definition(): array
|
||
|
|
{
|
||
|
|
return [
|
||
|
|
'stage' => 'new',
|
||
|
|
'firm_name' => 'ООО '.fake()->company(),
|
||
|
|
'city' => 'Ростов-на-Дону',
|
||
|
|
'phone' => '+7800'.fake()->numerify('#######'),
|
||
|
|
'site' => fake()->domainName(),
|
||
|
|
'inn' => (string) fake()->numerify('##########'),
|
||
|
|
'rating_label' => 'горячая',
|
||
|
|
'payload' => ['director' => fake()->name(), 'direct_budget_max' => fake()->numberBetween(50000, 300000)],
|
||
|
|
];
|
||
|
|
}
|
||
|
|
}
|