Edit File: ProviderWorkTime.php
<?php namespace App\Models; use Illuminate\Database\Eloquent\Factories\HasFactory; use Illuminate\Database\Eloquent\Model; class ProviderWorkTime extends BaseModel { use HasFactory; protected $fillable = [ 'day_id', 'provider_id', 'from', 'to', 'is_holiday', ]; protected $casts = [ 'is_holiday' => 'boolean' ]; public function day() { return $this->belongsTo(Day::class, 'day_id'); } public function provider() { return $this->belongsTo(Provider::class); } }
Back to File Manager