update deploy
This commit is contained in:
30
database/factories/MenuFactory.php
Normal file
30
database/factories/MenuFactory.php
Normal file
@@ -0,0 +1,30 @@
|
||||
<?php
|
||||
|
||||
namespace Database\Factories;
|
||||
|
||||
use App\Enums\MenuLocation;
|
||||
use App\Enums\MenuType;
|
||||
use App\Models\Menu;
|
||||
use Illuminate\Database\Eloquent\Factories\Factory;
|
||||
|
||||
/**
|
||||
* @extends Factory<Menu>
|
||||
*/
|
||||
class MenuFactory extends Factory
|
||||
{
|
||||
/**
|
||||
* @return array<string, mixed>
|
||||
*/
|
||||
public function definition(): array
|
||||
{
|
||||
return [
|
||||
'location' => fake()->randomElement(MenuLocation::cases()),
|
||||
'label' => fake()->words(2, true),
|
||||
'url' => '/'.fake()->slug(2),
|
||||
'type' => MenuType::Link,
|
||||
'parent_id' => null,
|
||||
'order' => fake()->numberBetween(0, 10),
|
||||
'is_active' => true,
|
||||
];
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user