Files
cheerstothe_season_2.0/app/Models/OperatingHour.php

26 lines
531 B
PHP
Raw Normal View History

2024-05-28 18:52:27 +05:30
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
class OperatingHour extends Model
{
use HasFactory;
2024-05-29 17:11:02 +05:30
protected $fillable=[
'id',
'manage_restaurant_xid',
'day_of_week',
'restaurant_id',
'start_time',
'end_time',
'created_at',
'updated_at',
];
public function restaurant()
{
return $this->belongsTo(ManageRestaurant::class, 'manage_restaurant_xid');
}
2024-05-28 18:52:27 +05:30
}