Agrega Productos y sus recetas

This commit is contained in:
2021-07-12 19:10:43 -04:00
parent df5238850e
commit d3713e2f93
10 changed files with 408 additions and 1 deletions

View File

@@ -10,6 +10,7 @@ class Receta extends Model {
use UuidPrimaryKey;
protected $table = 'recetas';
protected $fillable = ['unidades', 'producto_id', 'ingrediente_id'];
public function ingrediente() {
return $this->belongsTo(Ingrediente::class);