Untitled
unknown
plain_text
3 years ago
572 B
9
Indexable
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\SoftDeletes;
class Reservation extends Model
{
use SoftDeletes;
protected $fillable = [
'status',
'source',
'segment',
'start',
'end',
'cancelled_at',
'created_at_in_pms',
'locale',
];
public function user()
{
return $this->belongsTo(User::class);
}
public function room()
{
return $this->belongsTo(Room::class);
}
}
Editor is loading...