Files
cheerstothe_season_2.0/app/Models/ManageRestaurant.php
sayaliparab 6aa37e8ba0 Changestoday
2024-05-29 14:53:06 +05:30

40 lines
705 B
PHP

<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
class ManageRestaurant extends Model
{
use HasFactory;
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'
];
public function operatingHours()
{
return $this->hasMany(OperatingHour::class, 'manage_restaurant_xid');
}
}