Menus : ajout d'une factory pour les Menus
This commit is contained in:
parent
5ad83f8744
commit
fe69442efc
@ -22,7 +22,7 @@ class MenuFactory extends Factory
|
||||
public function definition()
|
||||
{
|
||||
return [
|
||||
//
|
||||
'title' => $this->faker->unique()->title,
|
||||
];
|
||||
}
|
||||
}
|
||||
|
@ -16,7 +16,7 @@ class CreateMenusTable extends Migration
|
||||
Schema::create('menus', function (Blueprint $table) {
|
||||
$table->id();
|
||||
$table->timestamps();
|
||||
$table->string('title');
|
||||
$table->string('title')->unique();
|
||||
});
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user