21 lines
378 B
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);
|
|
}
|
|
}
|