34 lines
846 B
PHP
34 lines
846 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace Database\Factories;
|
|
|
|
use App\Models\WeddingPackage;
|
|
use Illuminate\Database\Eloquent\Factories\Factory;
|
|
|
|
/** @extends Factory<WeddingPackage> */
|
|
class WeddingPackageFactory extends Factory
|
|
{
|
|
protected $model = WeddingPackage::class;
|
|
|
|
/** @return array<string, mixed> */
|
|
public function definition(): array
|
|
{
|
|
return [
|
|
'name' => fake()->unique()->words(2, true),
|
|
'level' => 'Assessoria',
|
|
'summary' => fake()->sentence(),
|
|
'scope_items' => [fake()->sentence()],
|
|
'cta_label' => 'Conversar sobre esta modalidade',
|
|
'sort_order' => 0,
|
|
'published_at' => null,
|
|
];
|
|
}
|
|
|
|
public function published(): static
|
|
{
|
|
return $this->state(fn (): array => ['published_at' => now()]);
|
|
}
|
|
}
|