Menus : ajout d'une factory pour les Menus

This commit is contained in:
Olivier DOSSMANN 2021-04-27 19:02:33 +02:00
parent 5ad83f8744
commit fe69442efc
2 changed files with 2 additions and 2 deletions

View File

@ -22,7 +22,7 @@ class MenuFactory extends Factory
public function definition()
{
return [
//
'title' => $this->faker->unique()->title,
];
}
}

View File

@ -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();
});
}