IntToEpochCast::class, 'morning_end' => IntToEpochCast::class, 'afternoon_start' => IntToEpochCast::class, 'afternoon_end' => IntToEpochCast::class, 'interval' => IntToEpochCast::class, 'min_order_preparation' => IntToEpochCast::class, ]; /** * Map attribute names to enum classes. * * @var array */ protected $enumCasts = [ 'day' => WeekDay::class ]; /** * The attributes that are mass assignable. * * @var array */ protected $fillable = [ 'morning_start', 'morning_end', 'afternoon_start', 'afternoon_end', 'interval', 'min_order_preparation', 'max_orders_per_interval', ]; // * RELATIIONSHIPS /** * BelongsTo shop relation * * @return \Illuminate\Database\Eloquent\Relations\BelongsTo */ public function shop() { return $this->belongsTo(Shop::class); } }