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

23 lines
488 B
PHP

<?php
namespace App\Models;
use App\Traits\UuidPrimaryKey;
use App\Exceptions\ModelNotFoundException;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\SoftDeletes;
class BoletaExenta extends Model {
use UuidPrimaryKey, SoftDeletes;
protected $table = 'boletas_exentas';
public function venta() {
return $this->belongsTo(Venta::class);
}
public function restaurante() {
return $this->belongsTo(Restaurante::class);
}
}