update deploy
This commit is contained in:
28
database/factories/GuideCardFactory.php
Normal file
28
database/factories/GuideCardFactory.php
Normal file
@@ -0,0 +1,28 @@
|
||||
<?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,
|
||||
];
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user