You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

28 lines
515 B

<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
class RestaurantSchedule extends Model
{
use HasFactory;
/**
* The table associated with the model.
*
* @var string
*/
protected $table = 'restaurant_schedule';
protected $casts = [
'day'=>'integer',
'restaurant_id'=>'integer',
];
public function restaurant()
{
return $this->belongsTo(Restaurant::class);
}
}