Your ROOT_URL in app.ini is http://167.99.32.63:3000/ but you are visiting http://167.99.32.63/ibrahim/BAGETWEBPANEL/src/commit/5502e10312f1346e86a7121a4cdd08e66c54c696/app/Models/RestaurantSchedule.php You should set ROOT_URL correctly, otherwise the web may not work correctly.
 
 

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);
}
}