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