Files
cheerstothe_season_2.0/app/Models/ManageRestaurant.php
sayliraut b4ee82e0f2 changes
2024-05-30 15:28:17 +05:30

42 lines
844 B
PHP

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