Files
portal/app/database/factories/SalesProspectFactory.php
T
Дмитрий 4b7463d1d9 feat(sales): модель SalesProspect + фабрика
Этап 1 Task 2. Дефолт stage=new в $attributes (доступен до refresh).
ide-helper мисин добавлен в локальный стаб (регенерация всех моделей).

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-07-15 16:24:53 +03:00

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)],
];
}
}