Laravel Zap logo
Schedule Patterns

Time Periods

addPeriod() — define time slots within a day.

Time Periods

Define the time slots within a day. Use one or more addPeriod() calls after setting recurrence and date range.

$schedule = Zap::for($doctor)
    ->named('Office Hours')
    ->availability();

// Single period
$schedule->addPeriod('09:00', '17:00');

// Multiple periods (split shifts)
$schedule->addPeriod('09:00', '12:00');
$schedule->addPeriod('14:00', '17:00');

Times are in 24-hour format. Combine with any recurrence (e.g. Daily & Weekly, Monthly) and Date Ranges, then save().