keskonmange/database/factories/MenuFactory.php

29 lines
484 B
PHP
Raw Permalink Normal View History

2021-04-27 16:55:19 +00:00
<?php
namespace Database\Factories;
use App\Models\Menu;
use Illuminate\Database\Eloquent\Factories\Factory;
class MenuFactory extends Factory
{
/**
* The name of the factory's corresponding model.
*
* @var string
*/
protected $model = Menu::class;
/**
* Define the model's default state.
*
* @return array
*/
public function definition()
{
return [
'title' => $this->faker->name,
2021-04-27 16:55:19 +00:00
];
}
}