Files
unified-restaurant-original/backend/app/Models/BodegaIngreso.php
2021-07-20 15:27:55 -04:00

22 lines
468 B
PHP

<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\SoftDeletes;
class BodegaIngreso extends Model {
protected $table = 'bodega_ingresos';
protected $hidden = ['created_at', 'updated_at', 'deleted_at', 'pivot'];
public function restaurante() {
return $this->belongsTo(Restaurante::class);
}
public function ingrediente() {
return $this->belongsTo(Ingrediente::class);
}
}