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()
|
public function definition()
|
||||||
{
|
{
|
||||||
return [
|
return [
|
||||||
//
|
'title' => $this->faker->unique()->title,
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -16,7 +16,7 @@ class CreateMenusTable extends Migration
|
|||||||
Schema::create('menus', function (Blueprint $table) {
|
Schema::create('menus', function (Blueprint $table) {
|
||||||
$table->id();
|
$table->id();
|
||||||
$table->timestamps();
|
$table->timestamps();
|
||||||
$table->string('title');
|
$table->string('title')->unique();
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user