Public demo. Move, edit and delete anything you like — the data is reset every hour. warpui.com About Warp Scheduler Docs Ask a question filamentphp.com
Skip to content

Booking rules: refuse or warn

Eight people with four rules in conflictRules(). Three rules refuse a booking; one only warns and lets you keep it.

Try this

  1. Drop a booking on a person who already has one at that time: it goes back, and a message says it overlaps another booking.
  2. Drag a booking before 8:00 or after 18:00: it stays, and a message asks you to check it, because that rule only warns.
  3. Go to next Thursday and drag a booking into the red stripes "System maintenance" (12:00–14:00): it goes back.
Show 2 more
  1. Switch to Week and drag a booking onto Saturday: it goes back with the app's own message, "No bookings at the weekend."
  2. Find a person with 2 in "Cap.": two bookings at the same time are allowed for them.

What you see

  • Refused (the booking goes back): overlapping another booking, maintenance time, weekends.
  • Warning only (you decide): outside working hours, Monday to Friday 08:00–18:00, shaded gray.
  • Each rule is one line in conflictRules(). Add ->warn() to a rule to warn instead of refusing. "View code" shows all four.
Show 1 more
  • "Cap.": how many bookings a person can have at the same time (1 or 2).