trait CanScheduleAvailability (View source)

Methods

void
validateScheduling(Collection $models)

Return whether or not the models provided are suitable for scheduling.

void
schedule(Relation $relation, mixed $models, DateTime $starts = null, DateTime $ends = null, array $pivotData = [])

Schedule models for a given relation.

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.

Parameters

Collection $models

Return Value

void

protected void schedule(Relation $relation, mixed $models, DateTime $starts = null, DateTime $ends = null, array $pivotData = [])

Schedule models for a given relation.

Parameters

Relation $relation
mixed $models
DateTime $starts
DateTime $ends
array $pivotData

Return Value

void

protected void unschedule(Relation $relation, mixed $models, array $pivotData = [])

Unschedule models for a relation.

Parameters

Relation $relation
mixed $models
array $pivotData

Return Value

void