Files
unified-restaurant-original/backend/app/Models/Receta.php
T
2021-07-12 17:32:52 -04:00

22 lines
421 B
PHP

<?php
namespace App\Models;
use App\Traits\UuidPrimaryKey;
use App\Exceptions\ModelNotFoundException;
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);
}
}