Video
Description
A flexible, performant, and developer-friendly schedule management system with deep Laravel integration.
use Zap\Facades\Zap; // 1. Working hoursZap::for($doctor) ->named('Office Hours') ->availability() ->forYear(2025) ->addPeriod('09:00', '12:00') ->addPeriod('14:00', '17:00') ->weekly(['monday', 'tuesday', 'wednesday', 'thursday', 'friday']) ->save(); // 2. Block lunchZap::for($doctor) ->named('Lunch Break') ->blocked() ->forYear(2025) ->addPeriod('12:00', '13:00') ->weekly(['monday', 'tuesday', 'wednesday', 'thursday', 'friday']) ->save(); // 3. Create an appointmentZap::for($doctor) ->named('Patient A - Consultation') ->appointment() ->from('2025-01-15') ->addPeriod('10:00', '11:00') ->withMetadata(['patient_id' => 1, 'type' => 'consultation']) ->save(); // 4. Get bookable slots (60 min, 15 min buffer)$slots = $doctor->getBookableSlots('2025-01-15', 60, 15); // 5. Next available slot$nextSlot = $doctor->getNextBookableSlot('2025-01-15', 60, 15);
💡 Use the
zap()helper instead of the facade when you prefer:zap()->for($doctor)->...
Related Content on Laravel Daily
Video
Recent Courses on Laravel Daily
AI Agents/IDEs for Laravel: May 2026 (Claude Code, Codex, OpenCode, etc)
7 lessons
52 min
Roles and Permissions in Laravel 13
14 lessons
57 min
Laravel 13 Eloquent: Expert Level
41 lessons
1 h 34 min