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

40 lines
705 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 ManageRestaurant extends Model
{
use HasFactory;
2024-05-29 14:53:06 +05:30
protected $table='manage_restaurants';
protected $fillable=[
'id',
'name',
'description',
'restaurant_id',
'address',
'image',
'bio',
'try_on_1',
'try_on_2',
'try_on_3',
'try_on_4',
'exclusion',
'latitude',
'longtitude',
'is_active',
'created_by',
'modified_by',
'deleted_at',
'created_at',
'updated_at'
2024-05-28 18:52:27 +05:30
2024-05-29 14:53:06 +05:30
];
2024-05-28 18:52:27 +05:30
public function operatingHours()
{
return $this->hasMany(OperatingHour::class, 'manage_restaurant_xid');
}
}