CanScheduleAvailability
trait CanScheduleAvailability (View source)
Methods
void
validateScheduling(Collection $models)
Return whether or not the models provided are suitable for scheduling.
void
void
unschedule(Relation $relation, mixed $models, array $pivotData = [])
Unschedule models for a relation.
Details
abstract protected void
validateScheduling(Collection $models)
Return whether or not the models provided are suitable for scheduling.
protected void
schedule(Relation $relation, mixed $models, DateTime $starts = null, DateTime $ends = null, array $pivotData = [])
Schedule models for a given relation.
protected void
unschedule(Relation $relation, mixed $models, array $pivotData = [])
Unschedule models for a relation.