diff --git a/app/Recipe.php b/app/Recipe.php new file mode 100644 index 0000000..98acda5 --- /dev/null +++ b/app/Recipe.php @@ -0,0 +1,17 @@ +hasMany('App\RecipeIngredient'); + } +} diff --git a/app/RecipeIngredient.php b/app/RecipeIngredient.php new file mode 100644 index 0000000..6a0f2d7 --- /dev/null +++ b/app/RecipeIngredient.php @@ -0,0 +1,17 @@ +belongsTo('App\Recipe'); + } +} diff --git a/database/factories/RecipeFactory.php b/database/factories/RecipeFactory.php new file mode 100644 index 0000000..c146cb1 --- /dev/null +++ b/database/factories/RecipeFactory.php @@ -0,0 +1,17 @@ +id(); $table->unsignedInteger('recipe_id'); + $table->unsignedInteger('order'); + $table->boolean('alternative'); $table->string('name'); $table->float('quantity'); $table->string('measurement');