|ProviderWorkingDay newModelQuery() * @method static \Illuminate\Database\Eloquent\Builder|ProviderWorkingDay newQuery() * @method static \Illuminate\Database\Eloquent\Builder|ProviderWorkingDay onlyTrashed() * @method static \Illuminate\Database\Eloquent\Builder|ProviderWorkingDay query() * @method static \Illuminate\Database\Eloquent\Builder|ProviderWorkingDay whereCreatedAt($value) * @method static \Illuminate\Database\Eloquent\Builder|ProviderWorkingDay whereDay($value) * @method static \Illuminate\Database\Eloquent\Builder|ProviderWorkingDay whereDeletedAt($value) * @method static \Illuminate\Database\Eloquent\Builder|ProviderWorkingDay whereId($value) * @method static \Illuminate\Database\Eloquent\Builder|ProviderWorkingDay wherePeriod($value) * @method static \Illuminate\Database\Eloquent\Builder|ProviderWorkingDay whereProviderId($value) * @method static \Illuminate\Database\Eloquent\Builder|ProviderWorkingDay whereUpdatedAt($value) * @method static \Illuminate\Database\Eloquent\Builder|ProviderWorkingDay withTrashed(bool $withTrashed = true) * @method static \Illuminate\Database\Eloquent\Builder|ProviderWorkingDay withoutTrashed() * * @mixin \Eloquent */ class ProviderWorkingDay extends Model { use HasFactory, SoftDeletes; protected $fillable = [ 'provider_id', 'day', 'period', ]; protected $casts = [ 'day' => 'integer', 'period' => WorkingPeriodEnum::class, ]; public function provider(): BelongsTo { return $this->belongsTo(Provider::class); } }