Files
bogazici-api/database/factories/GuideCardFactory.php
2026-03-27 10:41:54 +03:00

29 lines
844 B
PHP

<?php
namespace Database\Factories;
use App\Models\GuideCard;
use Illuminate\Database\Eloquent\Factories\Factory;
/**
* @extends Factory<GuideCard>
*/
class GuideCardFactory extends Factory
{
/**
* @return array<string, mixed>
*/
public function definition(): array
{
return [
'title' => fake()->words(2, true),
'description' => fake()->paragraph(),
'icon' => fake()->randomElement(['anchor', 'compass', 'shield', 'briefcase', 'ship', 'navigation']),
'color' => fake()->randomElement(['from-blue-500 to-blue-700', 'from-emerald-500 to-emerald-700', 'from-orange-500 to-orange-700', 'from-rose-500 to-rose-700']),
'link' => '/'.fake()->slug(2),
'order' => fake()->numberBetween(0, 10),
'is_active' => true,
];
}
}