Files
unified-restaurant-original/backend/app/Models/Receta.php

21 lines
378 B
PHP

<?php
namespace App\Models;
use App\Traits\UuidPrimaryKey;
use Illuminate\Database\Eloquent\Model;
class Receta extends Model {
use UuidPrimaryKey;
protected $table = 'recetas';
public function ingrediente() {
return $this->belongsTo(Ingrediente::class);
}
public function producto() {
return $this->belongsTo(Producto::class);
}
}