40 lines
705 B
PHP
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');
|
|
}
|
|
}
|