Warp Scheduler plugin screenshot
Dark mode ready
Multilingual support
Supports v5.x

Warp Scheduler by Yuichi Okada

Community

A canvas-rendered resource scheduler that keeps thousands of people, rooms or machines on one fast timeline, with drag and drop, recurring events, conflict rules and utilization, all saved through your own Eloquent models and policies.

Tags: Widget
Supported versions:
5.x
Third-party plugin. This is built by the community, not the Filament team. Filament does not review, endorse, or vet the security of plugins outside the filament/ namespace. Review the source and install at your own risk. Found malware or an unresolved security issue the author won't address? Report it .
Yuichi Okada avatar Author: Yuichi Okada

Documentation

A resource timeline of 5,000 people with utilization and a pool of requests

A resource scheduler for Filament that stays fast with thousands of rows: the timeline, calendars and Gantt chart are drawn on a <canvas>, while forms, actions, filters, notifications and permissions are Filament's own.

Try the live demo: demo.warpui.com/scheduler

Scroll through 5,000 people, drag bookings, cover shifts, dispatch jobs and plan a project at demo.warpui.com/scheduler. No sign-up needed; the data is reset every hour.

Calendar plugins for Filament wrap a JavaScript calendar in a widget. That works for a few dozen resources, but a planning board with hundreds or thousands of people, rooms or machines needs more: a resource timeline that does not build a DOM node per cell, recurring events that are expanded on the server, rules that stop double bookings, and a way to see how busy each resource is.

Warp Scheduler keeps your Eloquent models. Point it at a resource model and one or more event models, and you get a resource timeline, resource day and week views, week, work week, day, N-day, month, month agenda, year and list views and a Gantt chart, with drag and drop that saves through your policies.

use Qalainau\FilamentWarpScheduler\EventSource;
use Qalainau\FilamentWarpScheduler\Pages\SchedulerPage;
use Qalainau\FilamentWarpScheduler\Scheduler;

class StaffSchedule extends SchedulerPage
{
    public function scheduler(Scheduler $scheduler): Scheduler
    {
        return $scheduler
            ->resources(Staff::class)
            ->groupResourcesBy(['region', 'department'])
            ->events([
                EventSource::make(Booking::class)
                    ->resource('staff_id')
                    ->start('starts_at')
                    ->end('ends_at')
                    ->title('title'),
            ]);
    }
}

#Contents

#Why

Measured on the demo app with 5,148 timeline rows (5,000 staff in three levels of groups) and 200,000 bookings, in Chrome:

Page HTML, including every resource 44 KB
First events on screen after navigation about 0.2 s
Drawing a frame while scrolling (any zoom) 3 ms or less
Utilization for a month of 200,000 bookings about 0.4 s

Only the rows and the time range on screen are drawn, and events are loaded per block of 100 resources as you scroll.

#Features

A shift board with avatars and a list of people to drag onto shifts

  • Views: resource timeline (day, week, month, quarter and year zoom), resource day and week views (by resource or by date), week, work week, day, N-day, month, month agenda, year and list views, and a Gantt chart. Each view and each timeline zoom can have its own slot size, row height, visible hours and days, and the tabs can be renamed from PHP. The week and month zooms can stack each day's events in time order as full-width blocks, so a busy route stays readable with Monday to Friday on one screen. A second time scale for another time zone, and each person's night shaded in their own time zone.
  • Built for large boards: canvas rendering with vertical and horizontal virtualization, collapsible nested resource groups, lazy loading of events and placeholders while they load.
  • Drag and drop: move events in time and across resources, copy with Alt, resize from either edge, select several with Ctrl/Cmd+click and drag them together, copy and paste, rename in place, and create events by selecting a range. Changes appear at once and are saved on the server, which checks read-only mode, locked events and your model policies. Refused changes roll back with a notification. With batchSave(), moves stay drafts until you save them all at once or undo them all.
  • Board (kanban): show the same records in columns by stage above or beside the timeline. Drag a card to another column to change its stage, onto a resource to schedule it, or drag an event from the timeline back to the board to take it off the timeline. WIP limits, the days each card has waited, columns built from your own enum, swimlanes per owner and the moves allowed between columns.
  • Drop from anywhere: drop unscheduled records from a pool, rows from a Filament table or any element on the page, people from a side list onto shifts, or events from another scheduler. Book a request into the first free slot with one click, or find three free times for a length, people and rooms, days and hours, typed as a sentence for AI or chosen in a form.
  • Your content: subtitles, icons, badges, avatars and solid, outline or dashed styles on events; server-rendered tooltips and a quick-info popup; resource avatars, descriptions and extra columns; holidays, prices per day and labelled blocked time; shifts as header rows.
  • Filament actions: each event source with a schema gets create, edit and delete actions in Filament modals. Add your own actions to the event context menu with eventActions(), and add, edit or delete resources on the board.
  • Recurring events: RFC 5545 rules expanded on the server for the visible range, with the wall-clock time kept across daylight saving changes. Edit or delete one occurrence, this and following, or the whole series. RecurrenceInput adds a repeat section to your form, including the nth weekday of a month and chosen months.
  • Availability and conflicts: business hours, per-resource and date exceptions such as holidays, blocked time, and capacity. Rules reject or only warn, are checked on the server before saving, and are previewed in red or amber while dragging.
  • Utilization: booked time over available time per resource, per group and per hour, day, week or month, shown as meters, group heatmaps and a histogram.
  • Gantt: progress, baselines, dependency arrows (finish-to-start, start-to-start, finish-to-finish and start-to-finish, with lag), the critical path, and successors that move along when a task is pushed later, with optional working-day scheduling and pulling successors earlier. Link tasks by dragging between bars.
  • Data: events shared by several resources (belongsToMany), read-only events from any callback, search, reminders as database notifications, CSV, XLSX and PNG image export and .ics import.
  • Finding your way on a big board: saved views (filters, zoom and dates under a name, shared with the team if you like), a color legend that hides events by color, rows pinned to the top, a switch that hides the rows without events, and week numbers.
  • iCal: download the visible range as .ics, or subscribe from Google Calendar, Apple Calendar or Outlook with a personal link that keeps the user's filters and tenant.
  • Two-way calendar sync: connect a Google or Microsoft calendar to a resource. Changes on either side are synced through queued jobs, push notifications and delta queries.
  • Print and PDF: print the current view or a date range, landscape or portrait, in the light palette, page by page, or save it as a PDF from the print dialog.
  • Filament integration: a page, a dashboard widget, or a trait for any Livewire component. Filter form built from Filament fields, multi-tenancy for SaaS apps, dark mode, panel colors, translations (English, Japanese, German, French, Spanish, Italian, Brazilian Portuguese, Korean and Chinese, simplified and traditional), SPA mode, a compact layout on phones and right-to-left languages. Hooks after every change, and browser events.
  • Accessibility: keyboard navigation and editing, a screen reader list of the events on screen (title, time and resource) that also makes them findable with the browser's find and by automated tests, and live announcements of saves.
  • Browser tests: eventRects() tells where each event is on the screen, and whenIdle() waits until the board has loaded and saved.
Calendar views Gantt chart
The week view of twelve meeting rooms with prices per day A Gantt chart with dependencies, progress and baselines

#Requirements

  • PHP 8.3+
  • Laravel 12 or 13
  • Filament 5.9 or later (Livewire 4)
  • SQLite, MySQL 8.0+, MariaDB 10.11+ or PostgreSQL 14+
  • A queue worker if you use calendar sync

#Tested on

Before each release, the full test suite runs on PHP 8.3, 8.4 and 8.5 × Laravel 12 and 13 × SQLite, MySQL, MariaDB and PostgreSQL, with each database at its newest and its oldest supported version: 42 combinations in all. A version is released only when every combination passes. See the results for each release.

#Installation

Warp Scheduler is a commercial plugin. A license is required. After purchase you receive credentials for the private Composer repository.

Add the repository and authenticate:

composer config repositories.qalainau composer https://qalainau.privato.pub/composer
composer config --auth http-basic.qalainau.privato.pub "your-email" "your-license-key"

Install the package, run the migrations and publish Filament's assets:

composer require qalainau/filament-warp-scheduler
php artisan migrate
php artisan filament:assets

The migrations create the plugin's own tables (warp_scheduler_*) for recurrence rules, availability, blocked time, dependencies, baselines, iCal links and calendar connections. Your event and resource tables are not changed. To edit the migrations, publish them with php artisan vendor:publish --tag=filament-warp-scheduler-migrations. Publish them before you run php artisan migrate for the first time: Warp Scheduler then runs your copy instead of its own. If the tables already exist, change them with a migration of your own instead.

Run php artisan filament:assets again after every update of the package.

#AI coding assistants (Laravel Boost)

Warp Scheduler ships instructions for AI coding assistants such as Claude Code, Cursor and Codex. If your app uses Laravel Boost, the assistant learns how to use Warp Scheduler from them: which classes to extend, how to save changes and refuse them, what is easy to get wrong, and how to test a scheduler.

  • Guidelines (resources/boost/guidelines/core.md): a short summary that Boost adds to CLAUDE.md, AGENTS.md and the other agent files. It also points the assistant to this README in vendor/, so it reads the documentation of the version you have installed instead of guessing.
  • Skill warp-scheduler-development (resources/boost/skills/): the steps for adding a board, saving through your own code, and writing feature and browser tests. The assistant loads it when it works on a scheduler.

Boost does not add guidelines of other vendors' packages on its own. When php artisan boost:install asks "Which third-party AI guidelines/skills would you like to install?", select qalainau/filament-warp-scheduler. To do it without the question, add the package to boost.json and run the command again:

{
    "packages": ["qalainau/filament-warp-scheduler"]
}
php artisan boost:install --guidelines --skills -n

After you update Warp Scheduler, run php artisan boost:update so the assistant gets the instructions of the new version.

#Usage

#Where to put a scheduler

Extend SchedulerPage for a full page or SchedulerWidget for a dashboard widget, and implement scheduler():

use Qalainau\FilamentWarpScheduler\Widgets\SchedulerWidget;

class TodaySchedule extends SchedulerWidget
{
    public function scheduler(Scheduler $scheduler): Scheduler
    {
        return $scheduler->height(360)->initialZoom(TimelineZoom::Day)->resources(...)->events([...]);
    }
}

If you give the widget a view of its own, keep <x-filament-actions::modals /> in it: a widget renders its own create, edit and delete modals, unlike a page.

In any other Livewire component (for example a resource's relation page), implement HasScheduler, HasSchemas and HasActions, use InteractsWithScheduler, InteractsWithSchemas and InteractsWithActions, and render {{ $this->getWarpScheduler() }}. If the component is not a Filament page, also render <x-filament-actions::modals /> so that the create, edit and delete modals can open. The scheduler's properties and methods are prefixed with warpScheduler, so they do not clash with $record or your own properties.

#Resources

$scheduler
    ->resources(fn (array $filters) => Staff::query()->where('active', true))   // a model class, a query or a collection
    ->resourceTitle('name')                                                     // or fn (Staff $record): string
    ->resourceLabel('Staff')                                                    // the column heading
    ->groupResourcesBy(['region', 'site'])                                      // nested groups, attributes or closures
    ->resourceColumnWidth(240)
    ->rowHeight(36);

A resource model can implement SchedulerResource (getSchedulerTitle() and getSchedulerGroups()) instead.

Group headings use natural, case-insensitive order by default. Use keepResourceGroupOrder() (or a boolean closure) to keep the order in which groups first appear in resources(), at every nesting level. Rows within each group always keep the resource order. This is useful for orders sorted by delivery date and grouped by their import file:

$scheduler
    ->resources(fn () => Order::query()->orderBy('delivery_date'))
    ->groupResourcesBy('import_file')
    ->keepResourceGroupOrder();

Use resourceBackground() for the whole resource row, including its title, extra columns and timeline, and the resource's project row in Gantt. Pass a CSS color (#hex, rgb() or a color name), a closure receiving $record, or null for no fill. In dark mode the color is blended over the background at 20% opacity. Holiday/weekend shading, grid lines, event bars and interaction indicators remain above it. The fill is printed too. resourceColor() continues to set the small color marker beside the title.

$scheduler
    ->resourceColor(fn (Order $record): ?string => $record->status_color)
    ->resourceBackground(fn (Order $record): ?string => $record->is_urgent ? '#fee2e2' : null)
    ->resourceColumns([
        'status' => [
            'label' => 'Status',
            'width' => 80,
            'state' => fn (Order $record): string => $record->status_label,
            'color' => fn (Order $record): ?string => $record->status_color,
        ],
    ]);

Extra columns read the attribute named by their key unless state supplies a value. Their optional color sets the text color, including when printing; null keeps the default text color. Choose CSS colors that remain readable in both light and dark mode: column text colors are used as supplied. Background and column colors are evaluated again when period-dependent resources or refreshed rows are loaded.

Set a column's optional action to a name registered in resourceActions() to open that row's action directly when its cell is clicked in the timeline or Gantt. Hidden or unauthorized actions fall back to the resource menu. Right-click still opens the menu; compact layouts do not display these columns. Unknown action names throw an InvalidArgumentException.

->resourceActions([Action::make('viewOrder')->modalContent(...)])
->resourceColumns([
    'product_names' => ['label' => 'Products', 'width' => 150, 'action' => 'viewOrder'],
])

Set a column's optional align to start, center, or end to align both its header and cells in the timeline and Gantt. The default is end (right-aligned); start and end keep 8px of padding. Unknown values throw an InvalidArgumentException.

->resourceColumns([
    'product_names' => ['label' => 'Products', 'width' => 150, 'align' => 'start'],
    'capacity' => ['label' => 'Seats', 'align' => 'center'],
])

#Badges in a column

Give a column badges to show small colored badges in its cells instead of text, for example which materials of an order are ready. The closure returns the row's badges in display order. Each badge is a label, or an array with a label and optional color, background and border:

->resourceColumns([
    'materials' => [
        'label' => 'Materials',
        'width' => 120,
        'align' => 'start',
        'badges' => fn (Order $record): array => $record->materials->map(fn (Material $material): array => [
            'label' => $material->short_name,
            'color' => $material->is_ready ? 'success' : 'danger',
        ])->all(),
    ],
])
  • color is a Filament color name (primary, success, danger, warning, info, gray or one registered with ->colors()) or a CSS color. A color name picks a matching text, background and border for light mode, dark mode and printing. With a CSS color, the background and border are tinted from it unless you set them.
  • background and border are CSS colors used as given in both light and dark mode. Prefer color names when the panel has dark mode.
  • A plain string, or a badge without color, is gray. Empty labels are skipped.
  • Badges stay on one line. When they do not fit the column, the first ones are shown followed by a +N badge for the rest; a single badge that is too long ends with …. Widen the column, or let users widen it with resizableResourceColumns(), to show more.
  • The column follows align, works with action (clicking the cell opens the action), and is drawn the same in the timeline, Gantt and printouts. Compact layouts hide extra columns, badges included.
  • Anything other than a list of strings or arrays with these keys throws an InvalidArgumentException.

Enable resizableResourceColumns() to drag the right edge of the name heading and each extra column heading in the timeline and Gantt (40–1000px). Double-click an edge or press Home to restore its configured width. Focus an edge and use Left/Right (10px, or 50px with Shift) to resize with the keyboard. Widths are saved only in localStorage, separately for each page, scheduler component and signed-in user; unavailable storage does not prevent resizing. Printing uses the current widths. Compact screens keep their existing narrow name column and hide extra columns.

$scheduler->resourceColumnWidth(240)->resourceColumns([...])->resizableResourceColumns();

#Resource actions

Use resourceActions(array|Closure $actions) for Filament actions on a row's model:

use Filament\Actions\Action;
use Filament\Forms\Components\Textarea;

$scheduler->resourceActions([
    Action::make('autoSchedule')
        ->label('Auto schedule')
        ->visible(fn (Order $record): bool => $record->scheduled_items()->doesntExist())
        ->action(fn (Order $record) => app(OrderPlanner::class)->schedule($record)),
    Action::make('memo')
        ->schema([Textarea::make('progress_memo')])
        ->fillForm(fn (Order $record): array => ['progress_memo' => $record->progress_memo])
        ->action(fn (Order $record, array $data) => $record->update($data)),
]);

Right-click a resource name to open its menu. Visible, authorized custom actions appear in their configured order, followed by edit and delete when resourceSchema() enables them. Clicking the name opens the editor if enabled; otherwise it opens the same menu. Group headings and empty space have no resource menu.

Actions mount with ['resource' => $key]. Their $record always comes from resources(), including filters, tenancy and the current period: forged, missing or excluded keys cannot mount an action. Your own resourceActions() are your actions; hide them with ->visible(fn (): bool => static::canWrite()) if they change data. They remain available in read-only mode, like eventActions().

#Pinning rows to the top

Call pinnableResources() to let each user pin the rows they look at most. Right-click a row's heading in the resource timeline (or press the context menu key or Shift+F10 on it) and choose "Pin to top". Pinned rows stay in a band under the time header while the other rows scroll, in the order they were pinned. "Unpin" puts the row back in its place. It is off by default.

$scheduler->pinnableResources();

// Allow up to 5 pinned rows (default: 10)
$scheduler->pinnableResources(max: 5);
Argument Type Default What it does
$condition bool or Closure true Turns pinning on.
$max int or Closure 10 How many rows one user can pin on one page.

Where the pins are kept:

  • When the user is signed in and the warp_scheduler_pins table exists, pins are saved in the database per user, per tenant and per page, so they follow the user to another browser. Run php artisan migrate after updating to create the table.
  • Otherwise (a guest, or before the migration), pins are kept in the browser (localStorage). Nothing fails.

Good to know:

  • A pinned row is moved, not copied: it is drawn only in the band. Events in pinned rows can be dragged, resized and dropped on like in any other row.
  • Pinned rows are shown outside their groups, above the first group.
  • Only rows the user can see are pinned and shown. A pin of a deleted row, a row of another tenant or a row hidden by the filters is ignored.
  • resourceActions() still works: the pin item is added at the top of the same menu.
  • Only the resource timeline has pinned rows. The other views are not changed.

#Resources following the visible period

Declare a parameter named $start or $end in the resources() closure to reload rows when the visible period changes:

use Carbon\CarbonImmutable;

$scheduler->resources(fn (array $filters, CarbonImmutable $start, CarbonImmutable $end) => Order::query()
    ->whereBetween('delivery_date', [$start, $end->subDay()])
    ->orderBy('delivery_date'));

Both bounds are immutable dates in the scheduler's time zone; the period is [start, end) (end excluded). For a datetime column, use >= $start and < $end instead of subtracting a day. Convert to the storage time zone when needed. Parameters are injected by name, and you may omit ones you do not use.

The browser resolves the initial period before displaying any rows. Navigation, zoom, view changes (including resource day and week), and filters reload the resource tree before fetching events. Only the latest requested period is displayed, including an empty result. Groups, extra columns and row colors use the same serialization as the initial payload. The validated period persists in Livewire and also scopes resource actions and the event-fetch allowlist. Invalid dates, reversed/empty periods and periods longer than Scheduler::MAX_FETCH_DAYS keep the previous period.

Closures without $start/$end, model class names and closures returning collections keep their existing behavior. A collection-returning closure with named bounds opts in too. When combining period-dependent resources with resourceSchema(), pass the model explicitly (->resourceSchema([...], model: Order::class)) so creation is available before the first resource response, even when no rows match.

#Events

EventSource::make(Booking::class)
    ->label('Booking')
    ->resource('staff_id')
    ->start('starts_at')
    ->end('ends_at')               // the end is exclusive
    ->title('title')               // or fn (Booking $record): string
    ->allDay('all_day')            // a boolean column, or true for date-only models
    ->color(fn (Booking $record): string => $record->status === 'tentative' ? 'warning' : 'primary')
    ->modifyQueryUsing(fn (Builder $query, array $filters) => $query->where('status', '!=', 'cancelled'))
    ->schema([...])                // the create and edit form
    ->locked(fn (Booking $record): bool => $record->status === 'done')
    ->editable(true)
    ->resizable(true);

An event model can implement Schedulable (getSchedulerColumns()) to declare its columns once. Pass several sources to events() to show several models on the same board.

All-day events are floating dates, like iCalendar: they stay on the same day in every time zone.

#Preparation, cleanup and travel buffers

Use buffers(before: ..., after: ...) for minutes reserved around the event body. For a home visit or salon appointment:

EventSource::make(Visit::class)->buffers(before: 15, after: 30); // preparation / travel and cleanup
EventSource::make(Appointment::class)->buffers(before: 'prep_minutes', after: 'cleanup_minutes');
EventSource::make(Visit::class)->buffers(before: fn (Visit $record): int => $record->travel_minutes);

Each value accepts an integer, a model column name, a record closure, or null (zero). Values become non-negative integer minutes. All-day events always have zero buffers. A column or closure value is capped at max minutes (default 240, set it with buffers(before: 'prep_minutes', after: 'cleanup_minutes', max: 120)): the scheduler reads events that far outside the visible range to find overlapping buffers, without loading every event to find the longest one. Without buffers(), behavior and event payload size stay unchanged.

NoOverlap counts both events over [start - before, end + after); touching endpoints do not overlap. Find a free slot (including FreeSlotFinder::findSlots()) reserves buffers around the candidate as well as existing events, and returns the start and end of the event body. Preparation and cleanup must also fit inside availability and avoid blocked time when searching for a free slot. For a new event without a record, only integer defaults apply; column and closure values are zero until a record is available. Fetching includes events outside the period whose buffers reach into it. Record-dependent buffers require scanning the source's filtered resource records to determine the fetch extension; constant minutes avoid that extra scan.

Faint hatched bands appear before and after the body in the resource timeline and vertical day/week time grids (including resource views). They move with drag and resize previews and keep their own length when the body is resized. Only the body handles clicks and dragging; a band leaves the empty cell beneath it interactive. Bands also adapt to dark mode. Month, Board, Gantt, all-day rows and stacked day-cell layouts do not draw buffers.

Dates are stored as wall-clock times in the app time zone (app.timezone), as Laravel does. The scheduler shows them in its own time zone (timezone(), by default Filament's), and the app, Filament and the scheduler can each use a different zone.

Event content, tooltips and the quick-info popup:

EventSource::make(Booking::class)
    ->subtitle('status')                                   // drawn after (or under) the title
    ->icon(fn (Booking $record) => $record->urgent ? Heroicon::OutlinedBolt : null)
    ->badge(fn (Booking $record): ?string => $record->seats)
    ->tooltip(fn (Booking $record) => view('bookings.tooltip', ['booking' => $record]))  // loaded on hover
    ->details(fn (Booking $record): string => $record->notes); // shown in the quick-info popup

$scheduler->quickInfo();  // clicking an event shows its details and actions instead of opening the modal

Strings are escaped; return an Htmlable (a view or HtmlString) for markup.

#Ordering overlapping events

EventSource::make(Process::class)
    ->resource('order_id')->start('starts_on')->end('ends_on')->allDay()
    ->order('position');

order(string|Closure $order) puts smaller values in the upper lanes before comparing the start, duration and event key. A string names an attribute; a closure receives $record and returns int|float|string|null. Null values follow ordered events and keep the usual time-based order (in the Gantt, the order the tasks were created in instead; see Gantt). The compact payload includes o only when the value is non-null. This also controls overlapping columns/bands in day and week views; those views do not offer manual reordering.

In the resource timeline and Gantt, drag a movable event vertically within the same resource, keeping the horizontal pointer position, and drop above, below or between its overlapping events. A line marks the insertion point. Select an event and press Alt+Up/Down to reorder with the keyboard. Moving horizontally, changing resources, resizing and Alt-drag copying use the usual move behavior. Reordering leaves the start and exclusive end unchanged and does not call moveUsing().

The group consists of visible events, including locked events, of the same source and resource whose intervals intersect the dragged event's original [start, end); adjacent intervals do not overlap. It is not a transitive group of events connected through other events. For all-day events these are floating calendar dates in the scheduler's time zone. Recurring occurrences and unsaved drafts cannot be reordered. For pointer reordering, scroll the group's events into view first.

With a column name, the default save writes 1, 2, 3, … to that column for every event in the group, including locked events, in the submitted order. Locked events keep their dates; their order values can change. To save through your service, or when the value comes from a closure, provide:

->order(fn (Process $record): ?int => $record->position)
->reorderUsing(function (
    Process $record,
    array $orderedKeys,
    \Carbon\CarbonImmutable $start,
    \Carbon\CarbonImmutable $end,
    string $resource,
): void {
    app(ProcessOrderService::class)->reorder($record, $orderedKeys, $start, $end, $resource);
})

$orderedKeys contains every scheduler event key in the group (for example 0:42, or 0:42~7 for a shared event), in the requested top-to-bottom order, including the dragged record and locked records. Groups contain at most 1,000 events. Locked events cannot be dragged, but their order values are saved with the rest of the group. Read-only mode, move permissions and model view/update policies for the dragged event are checked on the server. The server rejects duplicate, missing, stale or foreign keys, other resources/tenants, and events outside the fetched period or the original overlap group. The callback runs in a transaction; throw ChangeRejected to refuse the change.

After a reorder or move the scheduler reloads events while retaining the rows and scroll position. When your application's process order must replace a manual order after a move or creation, recompute positions in your moveUsing() / createUsing() service (or event hooks); the reload reads those values. order() does not infer a process sequence. A column used by several resources represents a record-wide order; use a custom callback/value when each resource needs an independent order.

#Inclusive end dates

For date-only models whose end column stores the last included day, use:

EventSource::make(Absence::class)
    ->resource('staff_id')->start('starts_on')->end('ends_on')
    ->allDay()->inclusiveEnd();

The scheduler uses an exclusive end internally and converts it back when saving moves, resizes, selections and imports. Forms show and save the last included day unchanged. A null end means one day from the start. When start and end use the same column, the event lasts one day and cannot be resized. inclusiveEnd(bool|Closure $condition = true) requires allDay(true); enabling it for timed or mixed sources throws LogicException. Custom moveUsing() callbacks still receive the exclusive end; use slotAttributes() to obtain storage values.

#Events without the time in the box

By default an event box shows its time: before the title on a short box, and as a second line ("07:20 – 08:00") on a box 34px tall or more. When the time is already clear from where the box sits, or the box should only name the job, turn it off with showTime(false). The box then shows the title, and the subtitle as its second line:

EventSource::make(Delivery::class)
    ->title(fn (Delivery $record): string => $record->customer->name)
    ->subtitle(fn (Delivery $record): string => $record->order_number)
    ->showTime(false);   // or fn (Delivery $record): bool => ... per event
  • showTime(bool|Closure $condition = true): whether the box draws the time. A closure receives the record (fn (Delivery $record): bool), so some events can keep their time.
  • Only the box changes. The tooltip, the quick-info popup, the label while dragging, the list views, the board cards and the screen reader text still give the time.
  • All-day events never show a time, so the setting makes no difference to them.

Avatars, solid or dashed events and shifts:

$scheduler
    ->resourceImage(fn (Staff $record): ?string => $record->avatar_url)  // rows become 52px tall by default
    ->shifts(['Morning shift' => ['06:00', '14:00'], 'Evening shift' => ['14:00', '22:00']]);

EventSource::make(Shift::class)
    ->image(fn (Shift $record): ?string => $record->employee->avatar_url)
    ->variant(fn (Shift $record): string => $record->on_leave ? 'dashed' : 'solid');  // soft, solid, outline, dashed

People without an image get their initials. Blocked time shows its reason. Images from other sites must allow CORS to appear in printouts.

A side list of things to drag onto the board (people who can take a shift, for example), with group filters:

$scheduler
    ->sideList(fn (): array => Employee::available()->get()->map(fn (Employee $employee): array => [
        'id' => $employee->id, 'title' => $employee->name, 'subtitle' => $employee->role,
        'image' => $employee->avatar_url, 'group' => $employee->team,
    ])->all(), label: 'Available')
    ->onExternalDrop(function (array $data, CarbonImmutable $start, ?Model $resource, ?Model $event): ?Model {
        // dropped on an event: replace who covers it; dropped on an empty slot: create one
        // return the record you created or changed, so the scheduler can draw it at once
    });

If the callback returns nothing (or creates several records), the scheduler fetches the visible events again.

Resource column, day cells and holidays:

$scheduler
    ->resourceDescription('department')
    ->resourceColor(fn (Staff $record): string => $record->team_color)
    ->resourceColumns(['capacity' => 'Seats', 'floor' => ['label' => 'Floor', 'width' => 56]])
    ->dayCellContent(fn (CarbonImmutable $date): ?string => $prices->for($date))
    ->holidays(fn (CarbonImmutable $from, CarbonImmutable $to): array => Holiday::between($from, $to)->pluck('name', 'date')->all());

Holidays and the days of the week outside workingDays() (Saturday and Sunday by default) are shaded the same way in the timeline, week, day and month views, and holidays are named in the month, week and year views. With Warp DatePicker, useWarpDatePicker() brings its holidays, company days off and business hours instead (see Holidays and business hours from Warp DatePicker).

Events shared by several resources (a meeting with many rooms) use a belongsToMany relationship instead of a column. The event is drawn on every resource; dragging one row moves that assignment, and the time of all of them:

EventSource::make(Meeting::class)->resourcesRelationship('rooms');

Use a multiple Select::make('rooms')->relationship('rooms', 'name') in the form.

To make such events recurring (a weekly meeting with a host and a room), opt in on the event source:

EventSource::make(Meeting::class)
    ->resourcesRelationship('rooms')
    ->recurringAcrossResources();
  • Each occurrence is drawn on every resource of the event, like the other shared events, and the recurrence field (RecurrenceInput) of the form repeats them all.
  • Dragging an occurrence on one row asks “this event / this and following / all events”, as usual. It moves that row's assignment to the row you drop on; the other resources keep theirs, and the time changes for all of them. An occurrence moved on its own keeps its own resources.
  • The conflict rules are checked for every resource of every changed occurrence; if one of them is refused, nothing is saved. Reminders, .ics exports and utilization count each occurrence once.
  • Without recurringAcrossResources(), nothing changes: a shared event with a recurrence rule in the database is still shown once on each of its rows, as a single event.

Reminders send a Filament database notification before an event starts:

EventSource::make(Booking::class)
    ->reminders([15, 60 * 24])                              // minutes before
    ->remindTo(fn (Booking $record) => $record->staff->user)
    ->remindUsing(fn (Booking $record, int $minutesBefore) => ...); // or send them yourself

List the scheduler components in filament-warp-scheduler.reminders.components and run Schedule::command('warp-scheduler:send-reminders')->everyMinute(). Each reminder is sent once; moving an event sends it again for the new time.

Recurring events receive reminders for each occurrence. Deleted occurrences receive none, and moved occurrences receive reminders at their new time. In remindUsing(), $startsAt is the occurrence's start and $record is the original record of the recurring series.

#Import, export and other data

$scheduler
    ->exportable()                 // CSV and XLSX of the visible range (or ->exportable(['csv']))
    ->icsImport()                  // upload an .ics file into a resource
    ->eventsUsing(fn (CarbonImmutable $start, CarbonImmutable $end, array $resources): array => $api->events($start, $end))
    ->resourceSchema([TextInput::make('name')->required()])  // add, edit and delete resources on the board
    ->createResourceIcon(Heroicon::BuildingOffice);            // the icon of the toolbar's add button (default: a plus)

eventsUsing() returns arrays with id, resource, start, end, title and optionally allDay, color and subtitle; those events are read-only. With resourceSchema(), click a resource name to edit it, right-click it to delete it, and use the toolbar button to add one. Model policies apply. The add button shows a plus; give it an icon that fits your resources with createResourceIcon(): Heroicon::UserPlus for people, Heroicon::BuildingOffice for rooms, Heroicon::Truck for vans.

#Saving the board as an image (PNG)

Add png to exportable() to offer "Image (PNG)" in the export menu. The image can be pasted into an email or a chat.

$scheduler->exportable(['csv', 'xlsx', 'png']);
  • exportable() without arguments still offers CSV and XLSX only. PNG is offered only when you list it.
  • The image is made in the browser from the current view and period, with every row (the events of up to the first 2,000 rows are loaded first), in the light palette. The width is the board's width, at least 1,200 and at most 4,000 pixels. The file is named after the first day shown, such as schedule-2026-12-01.png.
  • A very tall board is cut off at 16,000 pixels, and a notice says so. Filter the rows or choose a shorter period.
  • Images from other sites (such as resourceImage() avatars) are loaded again with CORS for the image. Those whose site does not allow CORS, or does not answer within 8 seconds, are left out, and a notice says so.
  • Nothing is sent to the server: warpSchedulerExport() still accepts only csv and xlsx.

#Views and time

$scheduler
    ->views([SchedulerView::ResourceTimeline, SchedulerView::Week, SchedulerView::Month])  // default: all
    ->initialView(SchedulerView::ResourceTimeline)
    ->initialZoom(TimelineZoom::Week)
    ->initialDate('2026-10-01')
    ->timezone('Asia/Tokyo')        // default: FilamentTimezone
    ->firstDayOfWeek(1)
    ->height('70vh')
    ->calendarResourceLimit(300);   // week, day, month and list show all events together

Use date inputs and server-calculated presets to show an exact period in the resource timeline or Gantt:

use Carbon\CarbonImmutable;

$scheduler
    ->dateRangePicker()
    ->dateRangePresets([
        'This fortnight' => fn (CarbonImmutable $today): array => [$today->startOfWeek(), $today->startOfWeek()->addDays(13)],
        'Next week' => fn (CarbonImmutable $today): array => [$today->addWeek()->startOfWeek(), $today->addWeek()->endOfWeek()],
    ])
    ->initialDateRange(fn (CarbonImmutable $today): array => [$today, $today->addDays(13)]);

dateRangePicker(bool|Closure $condition = true) controls the two date inputs; presets can be used independently. dateRangePresets(array|Closure $presets) maps labels to closures, evaluated on the server when clicked with $today in timezone(). initialDateRange(Closure|array|null $range) accepts the same two inclusive bounds (Carbon dates or YYYY-MM-DD strings). The display and resources($start, $end) fetch use [start, end + 1 day) in that time zone. Invalid/reversed dates and periods longer than Scheduler::MAX_FETCH_DAYS are refused with a notification.

After you click a preset, its button looks pressed (aria-pressed="true") for as long as the displayed period is exactly that preset's range. Changing a date by hand, extending the range or pressing Today puts the button back.

An exact period uses daily ticks with a minimum width of 56px and horizontal scrolling when needed. headerRows([HeaderRow::Month, HeaderRow::Day]) adds month headings above the days; year and week rows are also supported, including the active zoomSettings() header rows. Hour and minute rows are skipped. Partial months cover only their visible days, and upper headings stay readable as you scroll. Use dateRangeDayWidth(int|Closure $px) to change the minimum. Short periods expand to fill the available width. On opening or changing the period, the view scrolls just before today if it is in the range, otherwise to the start. Add dateRangeExtendButtons(int|Closure $days = 7) for compact buttons beside the inputs that extend only the start or end by that many calendar days and reload period-dependent resources. Buttons are disabled when the extension would exceed Scheduler::MAX_FETCH_DAYS; their tooltip explains the limit. Enable headerDragScroll(bool|Closure $condition = true) to grab any timeline or Gantt date header row with a mouse, pen or touch and pan horizontally, including in read-only mode. It is off by default. Movements below 4px keep the usual click behavior; Escape restores the starting position. RTL reverses the pan direction. With an exact period and dateRangeExtendButtons(7), reaching within 10px of either scroll boundary extends that side through the same validated server request as the buttons. Prepending days preserves the visible position. Extensions pause during loading and obey the fetch limit; staying at an edge does not repeatedly extend it.

An exact period is independent of the normal zoom steps. Previous/next move by its calendar-day length; Today starts a period of the same length today. Pressing any zoom button returns to normal zoom behavior. The validated period is kept in locked Livewire state across filter changes and component redraws, just like period-dependent resource loading. A selected range (or returning to normal zoom) is also remembered in the server session for the page, component and signed-in user when reopening the page. initialDateRange() supplies the first period before the user makes a choice.

Use dayHeaderColor() and dayBackground() for date-aware colors, computed on the server for the visible period:

$scheduler
    ->dayHeaderColor(fn (CarbonImmutable $date, ?string $holiday): ?string => match (true) {
        $holiday !== null => '#ea580c',
        $date->isSunday() => '#dc2626',
        $date->isSaturday() => '#2563eb',
        default => null,
    })
    ->dayBackground(fn (CarbonImmutable $date, ?string $holiday): ?string => $holiday ? '#fed7aa' : null);

$date is local midnight and $holiday is the name supplied by holidays() (or null). Returning null keeps the existing text color or weekend/holiday shading. Colors apply to daily timeline/Gantt headings and columns, and calendar dates in week and month views, including print. Backgrounds replace that day's weekend/holiday fill: the resource row background is drawn first, then the day color at full opacity (20% in dark mode), then today's highlight, grid lines and event bars. Resource row colors remain visible on days without a day background. Day header text colors are used as supplied.

Slots, visible days and hours, and header rows:

$scheduler
    ->slotDuration(15)              // time grid slots, minutes (default 30)
    ->snapDuration(5)               // drag, resize and selection rounding, minutes
    ->slotHeight(20)                // time grid slot height, px
    ->slotWidth(64)                 // minimum width of the finest timeline tick (slotDuration in the day and week zooms), px
    ->scrollTime('08:00')           // where to scroll when today is not in range
    ->workingDays([1, 2, 3, 4, 5])  // default: days with business hours, else Monday to Friday; the other days are shaded
    ->hideNonWorkingDays()          // or ->hiddenDays([0, 6])
    ->visibleHours('07:00', '21:00') // or ->hideNonWorkingHours() to use the business hours
    ->headerRows([HeaderRow::Month, HeaderRow::Week, HeaderRow::Day])
    ->viewSettings([
        SchedulerView::ResourceTimeline->value => ['hiddenDays' => [0, 6], 'visibleHours' => ['08:00', '20:00']],
        SchedulerView::Week->value => ['slotDuration' => 10],
        SchedulerView::Gantt->value => ['rowHeight' => 44],
    ]);

To change these settings per timeline zoom as well, see Settings per zoom.

#Night shifts: a day that runs past midnight

When the end of visibleHours() is earlier than its start, each day runs from the start time to the end time of the next morning, drawn as one column (week and day views) or one block (the day and week zooms of the timeline):

$scheduler->visibleHours('18:00', '06:00'); // Monday 18:00 → Tuesday 06:00, then Tuesday 18:00 → Wednesday 06:00…
  • A night shift from 22:00 to 04:00 is one box; it is not cut at midnight. Dragging, resizing and the drag time label work across midnight, and the times you save are the real times (Tuesday 03:00 stays Tuesday 03:00).
  • Each night is labelled with the date it starts on. The “Sunday” column shows Sunday evening and Monday morning.
  • Events are fetched up to the end of the last morning, and business hours, blocked time, the current-time line and scrollTime() follow the same night. Conflict rules are checked on the real times, as before.
  • On daylight saving nights the column is one hour shorter or longer (11 or 13 hours for 18:00–06:00 in New York), and the hour labels follow the wall clock.
  • The same works in viewSettings() and zoomSettings() ('visibleHours' => ['18:00', '06:00']).
  • An end of '00:00' means midnight (visibleHours('08:00', '00:00') shows 08:00 to 24:00). The same start and end ('06:00', '06:00') shows 24 hours from that time.
  • hideNonWorkingHours() is unchanged: it uses the earliest start and latest end of the business hours on the same day.

More views are available on demand (the default set is SchedulerView::defaults()):

View Shows
ResourceWeek / ResourceWeekByDate A week of days per resource, or every resource per day
WorkWeek The working days of the week (workingDays())
Days Any number of days (dayCount(3))
MonthAgenda A compact month with the selected day's events listed below
Year Twelve mini months shaded by how busy each day is; click a day to open it

Hidden days and hours are left out of the timeline (hour zooms squeeze the night away), the week and month grids and the time grids. Header rows finer than the zoom are skipped. With only day rows (or coarser) in the Day or Week zoom (headerRows([HeaderRow::Day])), each day is one cell, without hour lines. Exact date ranges also honor headerRows() (including active zoom overrides), using only day or coarser rows and compact day/weekday labels. Use headerDragScroll() to pan by dragging any date header row in resource timelines and Gantt.

#Height of the board

By default the board is a box as high as the window (minus the page header) and scrolls inside. height() sets another fixed height. With 'auto' the box of the resource timeline and the Gantt view is as high as its content instead: the header, every row and the utilization band right under the last row. Four vans make a short board; the page scrolls when the rows are taller than the window.

use Qalainau\FilamentWarpScheduler\Enums\TimelineZoom;

$scheduler
    ->height('auto', max: '80vh')       // as high as the rows, at most 80% of the window
    ->zoomSettings([
        TimelineZoom::Day->value => ['height' => 'auto'],   // or per zoom only
        TimelineZoom::Week->value => ['height' => 640],     // a fixed 640px for the week
    ]);
  • height(int|string|Closure|null $height, int|string|Closure|null $max = null): a number is pixels, a string any CSS length ('70vh', '40rem') or 'auto'. null (the default) is the window-high box.
  • max only counts with 'auto': past it, the rest of the rows scroll inside the box as usual. Use it for long resource lists (the board is drawn as one canvas as high as the box, so hundreds of rows make a very large canvas).
  • height in zoomSettings() (or viewSettings()) takes the same values and overrides height() while that zoom (or view) is shown. Switching the zoom resizes the box at once: a stacked week grows with its stops, the day shrinks back.
  • The box follows the rows as they change: events loading into more lanes, a stacked day getting busier, groups opening and closing, the utilization band switched on or off.
  • 'auto' applies to the views with rows (the resource timeline and the Gantt view). The calendar, month, list and other views keep the default height.

#Choosing the timeline zooms

The resource timeline has five zooms: Day, Week, Month, Quarter and Year. Some boards only make sense at a few of them (a delivery route for one day is a row of thin stripes at Year), so you can choose which zooms the toolbar offers:

use Qalainau\FilamentWarpScheduler\Enums\TimelineZoom;

$scheduler
    ->timelineZooms([TimelineZoom::Day, TimelineZoom::Week])  // the buttons, in this order
    ->initialZoom(TimelineZoom::Day);
  • timelineZooms(array|Closure|null $zooms): TimelineZoom cases or their values ('day', 'week', ...). The default (null or an empty array) offers all five. An unknown value throws a ValueError.
  • With a single zoom, the zoom buttons are not shown at all.
  • If initialZoom() is not one of them, the scheduler starts on the first zoom in the list.
  • A zoom that is not allowed is never shown: switching to one from JavaScript ($refs.stage.warpScheduler.setZoom('year')) goes to the first allowed zoom instead, and so does a page update (a filter, for example) that takes the current zoom out of the list.
  • The other views (week, month, list and so on) have their own range and are not affected.

#Settings per zoom

The slot width, the time steps and the row height that suit a day rarely suit a quarter. viewSettings() changes them per view; zoomSettings() changes them per timeline zoom, on top of the view settings:

use Qalainau\FilamentWarpScheduler\Enums\TimelineZoom;

$scheduler
    ->timelineZooms([TimelineZoom::Day, TimelineZoom::Week, TimelineZoom::Month])
    ->slotWidth(64)
    ->rowHeight(40)
    ->zoomSettings([
        // a delivery day: wide 15-minute ticks, tall rows for two lines of text, drops round to 5 minutes
        TimelineZoom::Day->value => ['slotWidth' => 96, 'slotDuration' => 15, 'snapDuration' => 5, 'rowHeight' => 64],
        // the week: hour ticks, 8px per hour, and compact rows
        TimelineZoom::Week->value => ['slotDuration' => 60, 'slotWidth' => 8, 'rowHeight' => 32],
        // Month is not listed, so it uses slotWidth(64) and rowHeight(40)
    ]);
  • zoomSettings(array|Closure $settings): the keys are zooms (TimelineZoom values: 'day', 'week', 'month', 'quarter', 'year'), the values the same settings as viewSettings(): slotWidth, slotDuration, snapDuration, rowHeight, headerRows, visibleHours, hiddenDays, scrollTime, eventLayout (see Stacking each day's events), height (see Height of the board) (and slotHeight, dayCount, shifts, which the timeline does not use). Only the settings you give change; the others come from the view settings, then from the scheduler-wide methods (slotWidth(), rowHeight() and so on).
  • The order is: scheduler-wide settings, then viewSettings() for the view, then zoomSettings() for the zoom shown.
  • As without zooms, slotDuration (the fine ticks) and snapDuration (the drag rounding) are used by the Day and Week zooms; the Month, Quarter and Year zooms round to whole days.
  • They apply to the views with zooms (the resource timeline and the Gantt view). The week, month, list and other views ignore them.
  • Switching the zoom switches the settings at once: the ticks, the row heights and the drag rounding change with it, and switching back restores them.
  • rowHeight is the height of one lane of a resource row in pixels, at least 20. It can also go in viewSettings() (for example a taller Gantt view).
  • slotWidth is the minimum width of the finest tick: one slotDuration in the Day and Week zooms (30 minutes unless you change it), one day in the Month and Quarter zooms, one week in the Year zoom. The Week above, with slotDuration => 60 and slotWidth => 8, is 8px per hour: 7 × 24 × 8 = 1344px, less with hidden hours and days. If the screen is wider, the range is stretched to fill it. Without slotWidth, each zoom keeps its built-in width.
  • An unknown zoom throws a ValueError, an unknown setting an InvalidArgumentException.
  • Without zoomSettings(), nothing changes from before.

#Stacking each day's events

On a week of delivery routes, a van has ten stops a day, one after another. Placed by time, each stop is a stripe a few pixels wide; widening the slots pushes Friday off the screen. The stacked layout keeps the days as columns and puts each day's events under each other, in time order, as full-width blocks of that day:

use Qalainau\FilamentWarpScheduler\Enums\EventLayout;
use Qalainau\FilamentWarpScheduler\Enums\TimelineZoom;

$scheduler
    ->timelineZooms([TimelineZoom::Day, TimelineZoom::Week])
    ->hideNonWorkingDays()
    ->zoomSettings([
        // the day: stops placed by time
        TimelineZoom::Day->value => ['slotDuration' => 60, 'slotWidth' => 150, 'rowHeight' => 56],
        // the week: Monday to Friday side by side, each day's stops stacked, 40px each (two lines of text)
        TimelineZoom::Week->value => ['eventLayout' => EventLayout::Stacked, 'rowHeight' => 40],
    ]);
  • eventLayout: EventLayout::Timed (the default: events are placed at their time, as long as they last) or EventLayout::Stacked (or the values 'timed' and 'stacked'). Put it in zoomSettings() for one zoom, in viewSettings() for the resource timeline, or use ->eventLayout(EventLayout::Stacked) for every zoom.
  • Only the Week and Month zooms of the resource timeline stack, because their columns are days. The Day, Quarter and Year zooms, the Gantt view and the calendar views always place events by time.
  • Each resource row is as tall as its busiest day: the number of events that day × rowHeight. rowHeight is the height of one block, at least 24px in this layout. At 24px a block shows the title and the subtitle on one line; from 38px the subtitle (or, with the time shown, the start and end) goes on a second line. An event that runs past midnight spans the cells of the days it covers.
  • The header shows only the days (the hour ticks mean nothing here), and the days share the width of the screen. slotWidth is the minimum width of one day, if the days should be wider than the screen allows.

Dragging a block works like this:

  • The column you drop on gives the day, the row the resource, and the place between the blocks of that cell gives the time. A line and a shadow block show where it goes, and a label just under the day's header names the day and the place, such as Tue, Nov 3 · 2nd (in the app language: 11月3日(火)の2番目, Di., 3. Nov. · an 2. Stelle, ...), followed by the reason if a rule refuses the place. The order is what counts here, so the label shows no time.
  • The new start is the start of the event that is at that place now: dropped as the third block of Tuesday, it gets the start of Tuesday's current third event; dropped after the last block, it starts when the last one ends; dropped on an empty day, it keeps its time of day. Inside the same day this is the same rule: dropped back on its own place, nothing changes and nothing is saved. The length stays the same; an all-day event starts at 00:00 of that day.
  • Your moveUsing() (or the plain save, without one) gets that $start and $end, and $resource, as for any other move. The scheduler does not move the other events of the day. If the other stops should make room (renumber a route and recompute its times), do it in moveUsing() and dispatch warp-scheduler-refresh so the board loads the new times. For example, with stops of a fixed length from 07:00, the place in the route is round(minutes since 07:00 / length) + 1:
->moveUsing(function (Delivery $record, CarbonInterface $start, string $resource): Delivery {
    // the place in the day's route that the drop stands for: 07:00 is 1, 07:50 is 2, ...
    $position = (int) round(Carbon::parse($start)->setTimeFromTimeString('07:00')->diffInMinutes($start, false) / 50) + 1;

    $record->moveTo(Van::findOrFail($resource), $start->toDateString(), max(1, $position));
    $this->dispatch('warp-scheduler-refresh');

    return $record;
})
  • Items dropped from the side list, the unscheduled pool or any data-warp-scheduler-draggable element follow the same rule (onExternalDrop() gets that $start); on an empty day they start at the first visible hour.
  • Blocks cannot be resized in this layout (a block is always a whole day wide). Locked events do not move. Alt-drag copies; the original then counts as one of the places. With the keyboard, left and right move an event by a day at the same time, up and down to the next resource.
  • Rules (rules()) are checked against the new time, as for any move.
  • Utilization, quick info, colors and variants, tooltips and printing work as in the timed layout.

#Names of the view and zoom tabs

The tabs say "Timeline", "Week", "Day" and so on in the app locale. To call them something else, such as the name your users have for the board, give the names in PHP; there is no need to publish the language files:

use Qalainau\FilamentWarpScheduler\Enums\SchedulerView;
use Qalainau\FilamentWarpScheduler\Enums\TimelineZoom;

$scheduler
    ->viewLabels([
        SchedulerView::ResourceTimeline->value => 'Route board',            // plain text
        SchedulerView::ResourceWeek->value => 'dispatch.tabs.week',        // a translation key, in the app locale
        SchedulerView::Days->value => 'Next :count days',                  // :count is the number of days
    ])
    ->zoomLabels([
        TimelineZoom::Day->value => fn (TimelineZoom $zoom): string => __('dispatch.tabs.one_day'),
    ]);
  • viewLabels(array|Closure $labels) and zoomLabels(array|Closure $labels): the keys are views (SchedulerView values) or zooms (TimelineZoom values), the values a text, a translation key or a closure. The closure receives the view ($view / SchedulerView $view) or the zoom ($zoom / TimelineZoom $zoom) and returns the name.
  • A text or key goes through __(), so a translation key shows in the current locale and plain text shows as it is.
  • For SchedulerView::Days, :count is replaced by the number of days, and a pluralized key ('{1} :count day|[2,*] :count days') picks the right form.
  • Views and zooms that are not listed, and labels that are null or empty, keep the translated names.
  • The names are used in the view tabs, the zoom tabs and the view menu on narrow screens.

#Time format

Times are written the way the app locale writes them, so en shows "7:20 AM" and en_GB shows "7:20". To write every time on the scheduler the same way as the rest of your app, give a format:

$scheduler->timeFormat('HH:mm');    // 07:20, 19:05
$scheduler->timeFormat('H:mm');     // 7:20, 19:05
$scheduler->timeFormat('h:mm A');   // 7:20 AM, 7:05 PM
  • timeFormat(string|Closure|null $format): uses the tokens of Carbon's isoFormat(): H / HH (0–23, HH with a leading zero), h / hh (1–12), m / mm (minutes), A / a (AM/PM in the app locale, a in lower case). Put any other letters in brackets: 'H[h]mm' gives "7h20". Characters such as :, . and spaces are written as they are. Other letters (dates, seconds) throw an InvalidArgumentException.
  • It applies everywhere the scheduler writes a time: the event boxes, the hour ticks of the timeline and the time grids, the tooltip, the quick-info popup, the label while dragging, the list and agenda views, the screen reader text and the board cards. Dates around the time (such as "Oct 30,") stay in the app locale.
  • The time is the wall-clock time in the scheduler's time zone (timezone()), so it is right on the days the clocks change.
  • null (the default) keeps the locale's own format.

#Two time zones and each resource's time zone

$scheduler
    ->timezone('Asia/Tokyo')
    ->secondaryTimezone('America/New_York')          // a second time scale
    ->resourceTimezone('timezone');                  // a column of the resource model, e.g. "Europe/London"

A week view with times in Tokyo and New York, and a timeline that shades each person's night

  • secondaryTimezone(string|Closure|null $timezone, string|Closure|null $label = null, string|Closure|null $primaryLabel = null): the week, day and resource day views get a second column of hours on the left, and the timeline gets a row under the hours (only when its lowest header row shows hours or minutes). The names above them default to the city of each time zone ("New York", "Tokyo"); pass label and primaryLabel to name them yourself. Time zones that are half an hour apart show minutes ("5:30 AM"). In the week views, the second column follows the clock change of the first day on screen.
  • resourceTimezone(string|Closure|null $timezone, string $nightStart = '22:00', string $nightEnd = '07:00'): each resource's night, from nightStart to nightEnd in its own time zone, is shaded on its timeline row and in its column of the resource day and week views, so you can see who is asleep before you book a call. Give a column of the resource model or fn (Model $resource): ?string => .... Resources without a time zone, or with a name PHP does not know (Asia/Tokyo is known, +09:00 is not), are not shaded. The night hours must be written as HH:MM, or an InvalidArgumentException is thrown.
  • Both only change what is drawn. Events are still saved and shown in the scheduler's timezone(), dragging snaps as before, and the conflict rules do not look at the shading.
  • An unknown second time zone, or the same as timezone(), is ignored.

#Time markers and ranges

Add a deadline line or a busy-season band with timeMarkers() and timeRanges():

$scheduler
    ->timeMarkers([
        ['at' => '2026-12-15 17:00', 'label' => 'Delivery deadline', 'color' => 'danger'],
    ])
    ->timeRanges([
        ['from' => '2026-12-01', 'to' => '2026-12-15', 'label' => 'Busy season', 'color' => 'warning'],
    ]);

Dates accept strings or Carbon instances; strings without an offset use the scheduler's timezone. Colors are optional Filament color names. Lines and translucent bands span all resource rows in the timeline and Gantt, or the matching day/resource columns in day/week time grids. Small labels appear near the header (or beside horizontal lines). Annotations sit behind events, do not intercept clicks or drags, adapt to dark mode, and render labels as plain text.

Both methods also accept fn (CarbonImmutable $from, CarbonImmutable $to): array, just like holidays(). The callback receives the requested period in the scheduler's timezone. Annotations are fetched together with events on navigation; only markers in [from, to) and ranges overlapping that period are returned.

use Carbon\CarbonImmutable;

$scheduler->timeMarkers(fn (CarbonImmutable $from, CarbonImmutable $to): array => [
    ['at' => $from->addDays(2)->setTime(17, 0), 'label' => 'Delivery deadline', 'color' => 'danger'],
]);

#Week numbers

Call weekNumbers() to show the week number, such as "W49", in the headers. It is off by default.

$scheduler->weekNumbers();
  • Resource timeline and Gantt: in the week row of the header, or, when there is only a day row, before the first day of each week and before the first day shown (so a month that starts on a Tuesday numbers its first week too). When the number and the date do not fit in a day cell, the date gets shorter ("W49 30 Mon", then "W49 30"); a number that still does not fit is not drawn.
  • Week and day views: in the top-left corner, above the time column.
  • Month and month agenda views: at the start of each week row.
  • The year and list views do not show week numbers.

Numbers follow ISO 8601: a week belongs to the year of its Thursday, so December 28, 2026 is in week 53 and January 4, 2027 is in week 1. When firstDayOfWeek() is not Monday, each shown week takes the number of the Thursday inside it. The short text is the week_numbers.short translation ("W:number" in English, "第:number週" in Japanese); publish the translations to change it. Screen readers hear "Week 49" next to the title.

#Dependent fields in the event form

The create and edit modals are ordinary Filament forms, so dependent ("cascading") fields work as usual:

->schema([
    Select::make('region')->options($regions)->live()->dehydrated(false)
        ->afterStateUpdated(fn (Set $set) => $set('staff_id', null)),
    Select::make('staff_id')->relationship('staff', 'name', fn (Builder $query, Get $get) => $query
        ->when($get('region'), fn (Builder $query, string $region) => $query->where('region', $region))),
    // ...
])

On phones (screens under 640px wide) the scheduler switches to mobileView() (the list by default; null keeps the current view) and narrows the resource column. When the scheduler itself is narrower than 640px, for example a widget in half a dashboard, it keeps its view but turns the view tabs into a select and hides the unscheduled pool. Right-to-left pages (dir="rtl") are mirrored automatically; rtl() forces it. View and zoom tabs also turn into selects whenever they do not fit the toolbar, without changing the current view or hiding the unscheduled pool.

#Filters

$scheduler->filtersForm([
    Select::make('department')->options([...]),
    TextInput::make('search'),
]);

The fields update the scheduler as soon as they change (text inputs wait for typing to stop). Their state is passed as $filters to resources() and modifyQueryUsing().

#Keeping the filters when users come back

By default the filters return to their default values whenever the page is opened again, for example after editing a record and coming back. Call persistFiltersInSession() to keep them in the session instead, like Filament tables do:

$scheduler
    ->filtersForm([...])
    ->persistFiltersInSession();

The saved values are kept separately for each page, scheduler component and signed-in user, the same way as the dateRangePicker() period. They are saved as soon as a field changes and filled in when the page is opened. It also accepts a closure returning a boolean. Your own updatedWarpSchedulerFilters() hook keeps working.

#Showing how many rows are listed

Call showResourceCount() to show the number of rows next to the title, such as "128 rows". It counts the rows the scheduler received after filtersForm() and a period-dependent resources() are applied, updates whenever they change, and does not count group headings. Rows inside collapsed groups are counted. Narrow screens hide it.

$scheduler->showResourceCount();

On a dashboard, a SchedulerWidget can follow the dashboard's own filters with Filament's InteractsWithPageFilters. When the page filters change, the scheduler fetches its events again. Read them as $this->pageFilters in your closures, or take array $pageFilters in the scheduler's closures such as resources():

use Filament\Widgets\Concerns\InteractsWithPageFilters;

class TeamSchedule extends SchedulerWidget
{
    use InteractsWithPageFilters;

    public function scheduler(Scheduler $scheduler): Scheduler
    {
        return $scheduler
            ->resources(fn (array $pageFilters) => Staff::query()->where('team_id', $pageFilters['team'] ?? null))
            ->events([
                EventSource::make(Shift::class)->resource('staff_id')
                    ->modifyQueryUsing(fn (Builder $query) => $query->where('status', $this->pageFilters['status'] ?? 'confirmed')),
            ]);
    }
}

#A color legend, and hiding events by color

Call legend() with what each event color means. A row of small labels appears under the toolbar, and clicking one hides the events of that color (click again to show them). It is off by default.

$scheduler
    ->legend([
        'success' => 'Confirmed',
        'warning' => 'Tentative',
        '#ef4444' => 'Cancelled',
    ])
    ->events([
        EventSource::make(Booking::class)
            ->color(fn (Booking $record): string => match ($record->status) {
                'confirmed' => 'success',
                'tentative' => 'warning',
                default => '#ef4444',
            }),
    ]);
Argument Type Default What it does
$items array<string, string> or Closure — The keys are the values that color() returns (a Filament color name such as success, or a CSS color such as #ef4444), written the same way. The values are the labels. Labels are plain text; HTML is escaped.
$toggleable bool or Closure true false shows the legend only, without hiding events on click.

Good to know:

  • Hiding is done in the browser: the events are still loaded, only not drawn. Hidden events cannot be clicked or dragged, are not in eventRects() and are left out of the search results. Nothing is saved on the server.
  • The hidden colors are remembered per page in the browser (localStorage).
  • Events whose color is not a key of the legend are always shown.
  • The legend applies to every view of the board (timeline, Gantt, calendar, month, year and list). The board (kanban) and the unscheduled pool are not filtered.
  • To hide events for everyone, or to count them out on the server, use a filter (filtersForm() and modifyQueryUsing()) instead.

#Showing only the rows that have events

Call hideEmptyRowsToggle() to add a switch to the toolbar of the resource timeline. When it is on, rows without any event in the shown period are hidden, and so are group headings with no rows left. On a board with thousands of people, it shows who is working this week without defining a filter.

$scheduler->hideEmptyRowsToggle();
  • The switch starts off and is remembered per page in the browser.
  • The scheduler asks the server which rows have events in the period. The server applies the same filters, tenancy, modifyQueryUsing(), shared resources (belongsToMany) and recurring events as when it loads the events, and reads only the resource keys (about 0.3 seconds for 5,000 people and 200,000 bookings). Event sources with buffers, parent tasks or your own EventSource class are counted by loading their events.
  • It asks again when the period, the zoom or the filters change, after an event is moved, created or deleted, and after polling.
  • Events hidden with the color legend still count as events.
  • Only the resource timeline has the switch. The other views are not changed.

#Saved views

Call savedViews() to add a "Views" menu to the toolbar. Users save what they are looking at under a name and open it again with one click, for example "Sales, this month" or "Vans, next week". It is off by default.

$scheduler->savedViews();

// Also let users share a view with everyone (same page, same tenant)
$scheduler->shareableViews();
Method Type Default What it does
savedViews() bool or Closure false Turns the menu on.
shareableViews() bool or Closure false Adds "Share with everyone" to the save window. Also turns savedViews() on.

What a view keeps:

  • The view and the timeline zoom.
  • The filters of filtersForm().
  • The date range, when one was chosen with dateRangePresets() or the range picker. A preset is saved by its name, so "This month" still means this month next month. Without a chosen range, the view opens around today.
  • The colors hidden with legend(), and the "Only rows with events" switch of hideEmptyRowsToggle(), when those are on.

Who can do what:

  • Views are saved in the warp_scheduler_views table per user, per page (the Livewire class) and per tenant. Run php artisan migrate after updating to create the table. Without it, the menu only shows a notice; nothing fails.
  • A user sees their own views and, with shareableViews(), the views others shared on the same page and in the same tenant. Only the owner can overwrite or delete a view. When shareableViews() is turned off later, shared views of others are no longer listed or opened.
  • Saving with the name of one of your views overwrites it. Names are required, plain text (HTML is escaped) and at most 100 characters. One user can keep 100 views per page.
  • When a view is opened, the server checks it again: a view, zoom, preset or filter value that is no longer allowed is dropped, and the rest still applies.
  • Guests (no signed-in user) do not see the menu.

#Permissions, tenancy and read-only mode

  • If a model has a policy, create, update and delete are checked before any change. Without a policy, changes are allowed, as in Filament resources.
  • In a panel with tenancy, the scheduler only shows and changes the current tenant's resources and events. See Tenancy below.
  • readOnly() disables dragging, creating and deleting; clicking an event opens a read-only view.

#Restricting pages per role

Use this when your app has roles and decides, page by page, who may open a schedule and who may only look at it (for example, reception sees the room schedule but only managers change it). The scheduler has no plugin class, so you decide on the page you extend from SchedulerPage, by overriding two static methods:

use App\Models\User;
use Qalainau\FilamentWarpScheduler\Pages\SchedulerPage;

class RoomSchedule extends SchedulerPage
{
    // Who may open the page: the menu item, the URL and every Livewire call on an open page
    public static function canAccess(): bool
    {
        return parent::canAccess() && (auth()->user()?->canOpen(static::class) ?? false);
    }

    // Who may change anything on it. false = look only
    public static function canWrite(): bool
    {
        $user = auth()->user();

        return $user instanceof User && ! $user->isReadOnlyOn(static::class);
    }
}
  • canAccess() is checked by Filament when the page opens and on every Livewire request, so a page that is closed while someone has it open stops answering too (403). Someone who is not signed in gets false in the example above.
  • When canWrite() returns false, the page opens and shows every event, but the scheduler behaves as with readOnly(): no dragging or resizing, no copy, no create button, no delete, no inline rename, no unscheduled pool, no board card moves, no batch save, no drops from outside or from another scheduler, no auto scheduling, no Gantt links, no baselines, no free-slot search, no ICS import, no calendar connection and no resource editing. Clicking an event opens a read-only view instead of the edit form. Calling one of these from the browser anyway answers 403 and changes nothing.
  • Reading still works: moving through dates and views, filters, search, tooltips, utilization, printing, CSV/XLSX export, the .ics download and the subscribe link.
  • canWrite() only narrows what the page already allows. It cannot widen readOnly(), your policies, locked events or canMove()/canResize() on an event source: a change has to pass all of them.
  • Your own eventActions() are your actions; hide them with ->visible(fn (): bool => static::canWrite()) if they change data.
  • The scheduler widget and schedulers you put on your own Livewire components or resource pages are not affected; use readOnly() there.

#Tenancy

If your app is a SaaS where each customer (a team, a company, a clinic) has its own data, use Filament's multi-tenancy. The scheduler follows the panel's tenant on its own: someone who opens team A never sees, drags or edits team B's resources and events, even by sending another team's IDs from the browser. In a panel without tenancy, nothing changes.

#Example

A panel at /app/{team} where each team has its own rooms and bookings, and a user can belong to several teams:

// app/Providers/Filament/AppPanelProvider.php
use App\Models\Team;

return $panel
    ->id('app')
    ->path('app')
    ->tenant(Team::class, slugAttribute: 'slug');   // the ownership relationship is "team" by default
// app/Models/User.php
use Filament\Models\Contracts\HasTenants;
use Filament\Panel;

class User extends Authenticatable implements HasTenants
{
    public function teams(): BelongsToMany
    {
        return $this->belongsToMany(Team::class);
    }

    public function getTenants(Panel $panel): Collection
    {
        return $this->teams;
    }

    public function canAccessTenant(Model $tenant): bool
    {
        return $this->teams()->whereKey($tenant)->exists();
    }
}
// app/Models/Room.php and app/Models/Booking.php both have a team_id column and:
public function team(): BelongsTo
{
    return $this->belongsTo(Team::class);
}
// app/Filament/Pages/Bookings.php
class Bookings extends SchedulerPage
{
    public function scheduler(Scheduler $scheduler): Scheduler
    {
        return $scheduler
            ->resources(Room::class)
            ->events([
                EventSource::make(Booking::class)
                    ->resource('room_id')
                    ->schema([
                        TextInput::make('title')->required(),
                        Select::make('room_id')
                            ->relationship('room', 'name', fn (Builder $query) => $query->whereBelongsTo(Filament::getTenant()))
                            ->required(),
                        DateTimePicker::make('starts_at')->required(),
                        DateTimePicker::make('ends_at')->required(),
                    ]),
            ]);
    }
}

#What is kept per tenant

  • Resources: resources() is filtered by the tenant relationship, the same way Filament filters a resource's table.
  • Events: only events of the tenant's resources are loaded, searched, exported, printed, counted in the utilization and checked by the conflict rules. If the event model also has the tenant relationship (like Booking::team() above), events are filtered by it too.
  • Changes: dragging, resizing, copying, renaming, deleting, the edit modal, the unscheduled pool, the board, the Gantt dependencies and .ics imports only accept records of the current tenant. A resource of another tenant chosen in a form (for example by editing the request) is refused.
  • New records: events and resources created in the scheduler (the create modal, Alt-drag copies, .ics imports, events pulled from Google or Outlook, the "+" button for resources) are attached to the current tenant: the team_id column is filled, or the tenant is added to a many-to-many relationship.
  • iCal feeds and calendar sync: each subscription link and each connected calendar remembers the panel, the tenant and the user who made it. Feeds and queued sync jobs run with that tenant again, so a feed of team A only lists team A's events, and a change in team B is never pushed to a calendar connected in team A. A link stops working (and a connection stops syncing) when its tenant is deleted or its user leaves the tenant.

#Columns and migrations

The scheduler adds no columns to your tables. You need what Filament's tenancy needs anyway:

  • Your resource model has a relationship to the tenant: a team_id column with a BelongsTo, a morph, or a many-to-many relationship through a pivot table (for example rooms shared by several teams).
  • Recommended: give the event model the same relationship (for example a team_id column on bookings). The scheduler then filters events by it and fills it when it creates events. It is required when a resource can belong to more than one tenant, such as users who are members of several teams, and for the unscheduled pool and the board (see the notes below).

The package's own tables (warp_scheduler_feeds, warp_scheduler_calendar_connections) already have the tenant_type and tenant_id columns. No new migration of your own is needed.

#Adding tenancy to an app that already has data

When you add tenancy to an app that already ran without it, the iCal subscription links and connected calendars saved before have no tenant, so no tenant sees them. Give them to one tenant with:

php artisan warp:assign-tenant "App\Models\Team" 1 --dry-run   # only counts the rows
php artisan warp:assign-tenant "App\Models\Team" 1             # gives them to team 1
  • The first argument is the tenant model class or its morph alias, the second the tenant's key. The command stops if there is no such tenant.
  • It fills tenant_type and tenant_id only on rows where both are empty, in warp_scheduler_feeds and warp_scheduler_calendar_connections. Rows that already have a tenant are not touched.
  • Other Warp plugins installed in the same app register the same command, and it covers their tables too (one run for all of them). Everything is changed in one transaction: if a row would clash with one the tenant already has, nothing is changed.
  • Your own tables (rooms, bookings) are not touched: fill their team_id yourself, as shown above.

Teams, users, resources and events can have UUID or ULID keys (HasUuids, HasUlids) as well as numbers: the package's tables keep these keys in string columns. If you installed version 1.2.1 or earlier, php artisan migrate runs update_warp_scheduler_keys_to_strings, which changes those columns from numbers to strings and keeps your data.

If your event model has a team_id column with empty values from before, fill it from the resource before you update, or those events will be hidden in the panel with tenancy:

// in a migration; works on SQLite, MySQL, MariaDB and PostgreSQL
DB::statement('update bookings set team_id = (select team_id from rooms where rooms.id = bookings.room_id) where team_id is null');

#Other relationship names, and turning it off

The scheduler uses the panel's ownership relationship (->tenant(Team::class, ownershipRelationship: 'company')), like Filament resources. Change it for the scheduler or for one kind of events:

$scheduler
    ->scopeToTenant(relationship: 'teams')        // Room::teams() is many-to-many
    ->events([
        EventSource::make(Booking::class)
            ->scopeToTenant(relationship: 'team'),  // Booking::team() is a BelongsTo
    ]);

If the event model does not have a relationship with that name, events are filtered by their resources only. If you name a relationship on an EventSource that the model does not have, the scheduler throws an exception instead of showing other tenants' events.

To share data between tenants on purpose, turn the filter off for the whole scheduler ($scheduler->scopeToTenant(false)) or only for the events of one source (EventSource::make(Booking::class)->scopeToTenant(false)).

#Good to know

  • When resources() returns a query or a model class, it is filtered for you. When it returns a collection (fn () => collect([...])), filter it yourself.
  • Your form fields are your own: a Select with relationship() lists every record unless the related model has a resource in the panel (Filament then scopes it) or you filter the query as in the example above. The scheduler still refuses to save a resource of another tenant, but the names would show in the list.
  • createUsing(), moveUsing(), onExternalDrop(), onAdopt() and eventsUsing() run your code: set the tenant and filter by it there yourself (Filament::getTenant()).
  • Without a tenant relationship on the event model, events in the unscheduled pool and on the board that have no resource yet cannot be told apart by tenant. Add the relationship to the event model, or filter them in modifyQueryUsing().
  • Reminders (warp-scheduler:send-reminders) run outside the panel for all tenants; each reminder goes to the recipients of its own event.

#Testing with tenancy

In a test, set the tenant the way Filament does in a request, then test the page with Livewire. The page asks the server for the events the same way the browser does, with warpSchedulerFetch(start, end, resourceKeys), so you can check exactly what a tenant sees:

use App\Filament\Pages\Bookings;
use Filament\Facades\Filament;
use Livewire\Livewire;

beforeEach(function () {
    $this->teamA = Team::factory()->create();
    $this->teamB = Team::factory()->create();
    $this->roomA = Room::factory()->for($this->teamA)->create();
    $this->roomB = Room::factory()->for($this->teamB)->create();
    $this->ours = Booking::factory()->for($this->teamA)->for($this->roomA)->create(['title' => 'Ours', 'starts_at' => '2026-10-07 01:00', 'ends_at' => '2026-10-07 02:00']);
    $this->theirs = Booking::factory()->for($this->teamB)->for($this->roomB)->create(['title' => 'Theirs', 'starts_at' => '2026-10-07 01:00', 'ends_at' => '2026-10-07 02:00']);

    $user = User::factory()->create();
    $user->teams()->attach([$this->teamA->id, $this->teamB->id]);
    $this->actingAs($user);

    Filament::setCurrentPanel('app');
    Filament::setTenant($this->teamA);
});

it('only shows team A its own rooms and bookings', function () {
    $ms = fn (string $time): int => Carbon\Carbon::parse($time, 'UTC')->getTimestampMs();
    $page = Livewire::test(Bookings::class);

    // Ask for both teams' rooms, as a tampered browser could
    $events = $page->call('warpSchedulerFetch', $ms('2026-10-05'), $ms('2026-10-12'), [(string) $this->roomA->id, (string) $this->roomB->id])
        ->effects['returns'][0]['events'];

    expect($events)->toHaveCount(1)
        ->and($events[0])->toMatchArray(['k' => "0:{$this->ours->id}", 'r' => (string) $this->roomA->id, 't' => 'Ours'])
        ->and($page->instance()->getWarpScheduler()->getResourceRecords()->pluck('id')->all())->toBe([$this->roomA->id]);
});

Each fetched event has short keys to keep the response small: k is the event key ("{source index}:{record key}", the index of the EventSource in events()), r the resource key as a string, s and e the start and end as Unix timestamps in milliseconds ('YYYY-MM-DD' dates for all-day events, with a: true) and t the title.

The times you pass to warpSchedulerFetch and warpSchedulerMove, and get back, are moments, not wall-clock times. Write them with the scheduler's time zone (timezone(), Filament's by default): Carbon::parse('2026-10-07 09:00', 'Asia/Tokyo')->getTimestampMs(). The examples use 'UTC' because a new app runs the app, Filament and the scheduler in UTC.

Another tenant's IDs are treated as "not there", not as an error. The scheduler does not throw an exception or answer with 403 or 404 when the browser sends the key of another tenant's event or resource. It behaves as if the record did not exist, so write your assertions like this:

What the browser sends What happens
warpSchedulerFetch with another tenant's resource keys Those events are left out of events
warpSchedulerMove, warpSchedulerRename, warpSchedulerSchedule, warpSchedulerUnschedule, warpSchedulerMoveCard with another tenant's event Returns ['ok' => false] and saves nothing
warpSchedulerTooltip with another tenant's event Returns null
mountAction('warpSchedulerOpen0', ['event' => '0:…']) (or warpSchedulerDelete0, warpSchedulerEditResource) The modal does not open: mountedActions stays []
A form that picks another tenant's resource The form is not saved
it('does not let team A move team B\'s booking', function () {
    $ms = fn (string $time): int => Carbon\Carbon::parse($time, 'UTC')->getTimestampMs();
    $page = Livewire::test(Bookings::class);

    expect($page->call('warpSchedulerMove', "0:{$this->theirs->id}", $ms('2026-10-07 03:00'), $ms('2026-10-07 04:00'), (string) $this->roomA->id)
        ->effects['returns'][0]['ok'])->toBeFalse();

    $page->call('mountAction', 'warpSchedulerOpen0', ['event' => "0:{$this->theirs->id}"])
        ->assertSet('mountedActions', []);

    expect($this->theirs->refresh()->room_id)->toBe($this->roomB->id);
});

The page URL itself is Filament's: a user who is not a member of team B gets a 404 for /app/{team-b}/bookings ($this->get(Bookings::getUrl(tenant: $this->teamB))->assertNotFound()).

To see what a tenant sees in a real browser, read the board with eventRects() after whenIdle().

#Actions

$scheduler->eventActions([
    Action::make('markAsDone')
        ->visible(fn (?Model $record) => $record?->status !== 'done')
        ->action(fn (Booking $record) => $record->update(['status' => 'done'])),
]);

Custom actions appear in the event's context menu, and their record is the clicked event.

#Saving through your own code

By default the scheduler saves your Eloquent models itself: it checks your policies and conflict rules, then calls save() or delete(). That is all most apps need.

Some apps keep their business rules in services or actions instead, for example to validate a booking against data the scheduler does not know about, to lock resources so two people cannot book the same slot, to write an audit log, to send notifications, or to save through an external API. For those apps, each kind of change can be handed to your own code. Replace only the saves you need; the others keep the default behavior.

#Example

A booking service that the scheduler calls for every change:

use App\Models\Booking;
use Carbon\CarbonInterface;
use Qalainau\FilamentWarpScheduler\Exceptions\ChangeRejected;

class BookingService
{
    public function create(array $data): Booking
    {
        return $this->save(new Booking, $data);
    }

    public function update(Booking $booking, array $data): Booking
    {
        return $this->save($booking, $data);
    }

    public function reschedule(Booking $booking, CarbonInterface $start, CarbonInterface $end, string $staffId): Booking
    {
        return $this->save($booking, ['staff_id' => $staffId, 'starts_at' => $this->appTime($start), 'ends_at' => $this->appTime($end)]);
    }

    public function copy(Booking $original, CarbonInterface $start, CarbonInterface $end, string $staffId): Booking
    {
        return $this->save($original->replicate(), ['staff_id' => $staffId, 'starts_at' => $this->appTime($start), 'ends_at' => $this->appTime($end)]);
    }

    public function cancel(Booking $booking): void
    {
        $booking->update(['status' => 'cancelled']);
    }

    protected function save(Booking $booking, array $attributes): Booking
    {
        $booking->fill($attributes);

        if ($booking->starts_at->diffInHours($booking->ends_at) > 4) {
            throw new ChangeRejected('Bookings can be at most four hours long.');
        }

        $booking->save();

        return $booking;
    }

    /**
     * The scheduler passes times in its own time zone; the database holds wall-clock times in app.timezone.
     */
    protected function appTime(CarbonInterface $time): CarbonInterface
    {
        return $time->copy()->setTimezone(config('app.timezone'));
    }
}

Tell the event source to use it:

EventSource::make(Booking::class)
    ->resource('staff_id')
    ->createUsing(fn (array $data): Booking => app(BookingService::class)->create($data))
    ->updateUsing(fn (Booking $record, array $data): Booking => app(BookingService::class)->update($record, $data))
    ->deleteUsing(fn (Booking $record) => app(BookingService::class)->cancel($record))
    ->moveUsing(fn (Booking $record, CarbonInterface $start, CarbonInterface $end, string $resource, bool $copy, ?Booking $original): Booking => $copy
        ? app(BookingService::class)->copy($original, $start, $end, $resource)
        : app(BookingService::class)->reschedule($record, $start, $end, $resource));

Since deleteUsing() here only marks the booking as cancelled, hide cancelled bookings with modifyQueryUsing(fn (Builder $query) => $query->where('status', '!=', 'cancelled')).

#Which callback runs when

Callback Called for Receives Returns
createUsing() Saving the create modal, and each event of an .ics import array $data: the form values, including the start, end and resource of the selected slot The new record (required)
updateUsing() Saving the edit modal; renaming in place; moving a card to another board column; dragging a booked card back to a column that takes it off the timeline (unless unscheduleUsing() is set) Model $record, array $data: the form values, or only the changed columns (the title, the stage, or the start and end set to null) Nothing needed
deleteUsing() The delete action, from the context menu or the quick-info popup, and the Delete key Model $record Nothing needed
moveUsing() Every change of time or resource: dragging, resizing, moving with the keyboard, Alt-drag copies, copy and paste, moving several selected events together, successors moved by Gantt dependencies, and placing an event from the unscheduled pool or the board See below Nothing needed, unless you saved a different record than $record (for example a copy made by your service): then return that record. If $record was a new record and you neither saved it nor returned yours, the change is refused

moveUsing() receives these arguments, by name:

  • $record: the event. For a copy it is an unsaved copy of the original event.
  • $start and $end: the new start and end, in the scheduler's time zone (timezone()). The end is exclusive. Eloquent saves a date's wall-clock time as it is, without converting it, so convert them to the app time zone before you save them: $start->copy()->setTimezone(config('app.timezone')), as appTime() does in the example. When the scheduler shows the app's time zone (the default in a new app), this changes nothing; when it shows another one (say Asia/Tokyo for an app in UTC), saving $start as it is puts the booking 9 hours later. The same is true for $start and $end in onExternalDrop() and onAdopt(). The $data of createUsing() and updateUsing() is already in the app time zone.
  • $resource: the key of the resource the event was dropped on.
  • $from: the key of the row the event was dragged from. It only matters for events shared by several resources (resourcesRelationship()), where it tells which assignment to move.
  • $copy: true for Alt-drag copies and pasted events.
  • $original: the event that was copied, or null when it is not a copy.

Before any of these callbacks runs, the scheduler has already checked read-only mode, locked events and your policies, and, for changes made by dragging or in the create and edit modals, the conflict rules. After it returns, the scheduler sends the change to synced calendars and runs your hooks (afterEventCreated(), afterEventMoved() and so on), exactly as for its own saves.

#Refusing a change

Each change runs in a database transaction. To refuse it, throw ChangeRejected with a message for the user:

use Qalainau\FilamentWarpScheduler\Exceptions\ChangeRejected;

throw new ChangeRejected('Room 3 was booked by someone else a moment ago.');

The transaction is rolled back, so nothing your callback wrote is kept, and the message is shown as a notification. What else happens depends on where the change came from:

Change When it is refused
Dragging, resizing, the keyboard, a pasted event The event jumps back to where it was
Several selected events moved together None of them is moved
The create or edit modal The modal stays open with what the user typed, so they can correct it
Delete The event stays, and the confirmation stays open
An .ics import No event of the file is imported (an event that only breaks a conflict rule is skipped instead, and the others are imported)

ChangeRejected can also be thrown from unscheduleUsing(), onExternalDrop() and onAdopt().

A model event that stops the save (a saving, creating or updating listener returning false) is treated the same way: the change is refused with the message "The change was not saved.", and no hooks run. So is a callback that returns false (for example fn (Booking $record, array $data) => $record->update($data) when the update was stopped), or one that returns a new record without saving it (createUsing(), moveUsing() for a copy, onExternalDrop()). Return nothing, true or the saved record for a change that went through. To tell the user why a change was refused, throw ChangeRejected instead of returning false.

#Preventing double bookings when two people book at the same moment

The conflict rules (NoOverlap and the others) are checked before the transaction starts. They stop double bookings in normal use, but when two people drop a booking on the same slot within the same fraction of a second, both checks can pass. If that must never happen, check again inside your callback while holding a lock:

protected function save(Booking $booking, array $attributes): Booking
{
    $booking->fill($attributes);

    // Wait until no one else is booking for this person, then check again
    $staff = Staff::query()->whereKey($booking->staff_id)->lockForUpdate()->firstOrFail();

    $taken = Booking::query()
        ->where('staff_id', $staff->getKey())
        ->when($booking->exists, fn (Builder $query) => $query->whereKeyNot($booking->getKey()))
        ->where('starts_at', '<', $booking->ends_at)
        ->where('ends_at', '>', $booking->starts_at)
        ->exists();

    if ($taken) {
        throw new ChangeRejected("{$staff->name} was booked by someone else a moment ago.");
    }

    $booking->save();

    return $booking;
}

The lock lasts until the scheduler's transaction ends, so the second request waits for the first one and then sees its booking. MySQL and PostgreSQL support lockForUpdate(); SQLite locks the whole database instead. On PostgreSQL an exclusion constraint on the booked time range per resource is an even stronger guarantee.

#Bookings that need several resources

When one booking needs, for example, a person, a room and a machine, save all of the assignments in the same callback. They share the scheduler's transaction, so either all of them are saved or, if one of them fails or you throw ChangeRejected, none of them is.

#Things to know

  • A Select for a belongsTo relationship (Select::make('staff_id')->relationship('staff', 'name')) puts the foreign key in $data like any other field. Fields for relationships with several records, such as Select::make('rooms')->relationship('rooms', 'name')->multiple(), save that relationship themselves after createUsing() or updateUsing() has run. To save those in your own code too, drop ->relationship(), give the field its options(), and the selected keys arrive in $data.

  • moveUsing() can receive a new record that is not saved yet ($record->exists is false): for a copy, when one occurrence of a recurring event (recurring()) is changed and the plugin creates a record for it, when an .ics import has no createUsing(), and when calendar sync creates an event that was added in Google Calendar or Outlook. Save it, or save a record of your own and return it; the plugin then links that record to the series or the external calendar.

  • The series of recurring events (the rule and the skipped or changed occurrences) is stored in the plugin's own tables. If your app manages series itself, store each occurrence as a record of its own instead, with a series identifier in your own columns, and add actions such as "Move this and following" with eventActions().

  • Some changes create the new record by copying an existing one with Eloquent's replicate(): changing one occurrence of a recurring event (or "this and following"), an Alt-drag copy and a pasted copy. replicate() copies every column except the primary key and the timestamps, so a column that must be unique, such as an order number, is copied too and the insert fails on the unique index. Clear or renew it in the model's replicating event:

    class Booking extends Model
    {
        protected static function booted(): void
        {
            // Warp Scheduler copies a booking for a changed occurrence and for copies
            static::replicating(function (Booking $copy): void {
                $copy->number = null;
            });
    
            static::creating(function (Booking $booking): void {
                $booking->number ??= Booking::nextNumber();
            });
        }
    }
    

#Search, drops from outside and other schedulers

$scheduler
    ->searchable()  // a search box in the toolbar; jumps to the event
    ->onExternalDrop(fn (array $data, CarbonImmutable $start, ?Model $resource) => Booking::create([...]))
    ->onAdopt(fn (array $event, CarbonImmutable $start, CarbonImmutable $end, ?Model $resource): bool => ...);

Any element can be dragged onto a scheduler that has onExternalDrop():

<tr draggable="true" data-warp-scheduler-draggable='{"id": 5}' data-warp-scheduler-title="Repair" data-warp-scheduler-duration="90">

data-warp-scheduler-draggable holds a JSON object (passed to onExternalDrop() as $data) or any other value, such as an ID (passed as ['value' => ...]). In Blade, escape the JSON so its quotes cannot end the attribute: {{ json_encode($data) }}. $data (and the $event of onAdopt()) comes from the browser, so treat it like request input: look records up with a query scoped to the user and tenant, check your policy, and do not pass the array to create() or fill() as it is.

Filament 5 tables have no row attributes, so add the attributes to a column with extraAttributes(); the cell becomes the thing to drag. Filament does not HTML-escape attribute values (it only turns " into \"), so escape the JSON yourself with e(), or the attribute ends at the first quote and the drop does nothing:

TextColumn::make('title')
    ->extraAttributes(fn (Job $record): array => [
        'draggable' => 'true',
        'data-warp-scheduler-draggable' => e(json_encode(['id' => $record->id])),
        'data-warp-scheduler-title' => e($record->title),
        'data-warp-scheduler-duration' => $record->minutes,
    ])

Dragging an event onto another scheduler on the same page calls that scheduler's onAdopt(); both reload when it returns true.

The conflict rules (conflictRules()) apply to both. For onExternalDrop() the callback decides the time and length, so the rules are checked against the record it returns, inside the same transaction: if a rule refuses, the change is rolled back and the reason is shown. Return the saved record to have it checked (a callback that returns nothing is not checked). An event with several resources (resourcesRelationship()) is checked on each of them. For onAdopt() the rules are checked before the callback runs, with the time and resource it was dropped on, using the first event source; in a view without resources the callback runs unchecked. A drop onto an event passes that event's start as $start, so a callback that ignores $event books from that time.

#Saving moves together (drafts)

$scheduler->batchSave();

Two events moved as drafts with a dashed outline, and the bar to save or undo them

With batchSave(), an event you drag or resize is not saved at once. It moves on the screen with a dashed outline and a dot, and a bar above the timeline says how many changes are unsaved, with Save all and Undo all. Use it when a dispatcher tries a few arrangements before deciding. Off by default.

  • Save all saves every draft in one database transaction, with the same checks as a drag (policy, locked(), editable(), the conflict rules). If one of them is refused, nothing is saved and the drafts stay so you can fix that one. The hooks (afterEventMoved(), calendar sync) run after all of them are saved.
  • If someone else moved, resized or deleted one of the events after your page loaded it, Save all stops and saves nothing: it does not overwrite their change. A notification names the events, they are shown where the other person put them (or removed), and your other drafts stay. Press Save all again to save the rest.
  • Undo all puts every event back where it was before the first move. Nothing is sent to the server.
  • Moving an event back to where it was takes it out of the drafts.
  • Not drafted, saved at once as before: occurrences of repeating events (you choose this one, the following or all), copies made with Alt, events dropped from the pool, the board or outside, renames and changes made in a form.
  • Up to 200 drafts at a time. Drafts are kept in the browser: the browser asks before you leave the page with unsaved changes, and they are lost if you reload anyway. They survive going to another week and filtering.
  • The browser dispatches warp-scheduler:drafted, warp-scheduler:drafts-saved ({ ok, stale, drafts }) and warp-scheduler:drafts-discarded.

#Finding a free slot

$scheduler->freeSlotSearch();

The free slot search with a sentence turned into conditions and three free times

A Find a free slot button opens a panel above the timeline. Choose the length, the people or rooms that must be free (all of them together, or any one), the dates, the hours of the day and whether to search weekdays only, then press Search. The scheduler shows up to three free times, and Create an event at this time goes to that day and opens your create form with the time and the resources filled in. Off by default.

  • The times are found with the same rules as dragging and the first-free-slot button: business hours, blocked time, capacity (NoOverlap) and your other conflict rules that reject. Times in the past are skipped, and the three times do not overlap.
  • Leave every resource unticked to search all the rows on screen. Only the resources the user can see (after tenancy and filters) are searched; other keys sent from the browser are ignored.
  • For several resources together, the create form gets all of them when the event source has resourcesRelationship(); otherwise the event is created on the first one.
  • The search covers up to 62 days and lengths from 5 minutes to 24 hours. It needs an event source the user can create (schema() and the policy's create); without one, the button is not shown.

#Typing the request as a sentence (AI)

With an AI reader available, the panel also has a field for a sentence such as "a free hour next week in the afternoon for Tanaka and room A". Fill in the conditions turns it into the conditions above (length, resources, dates, hours, days). Check the conditions, then press Search; the scheduler finds the free times.

#Which AI service is used

freeSlotSearch() takes the first of these that your app has, and shows no sentence field when it has none:

  1. Your own binding of ReadsSlotRequests: implement Qalainau\FilamentWarpScheduler\Ai\ReadsSlotRequests and bind it in your service provider.
  2. An AI gateway bound to warp.ai. Warp SaaS binds one for you: it picks the model, counts each request per company, person and feature, and stops at the limits of the company's plan. Without Warp SaaS, write your own (below).
  3. services.anthropic.key: Warp Scheduler calls Claude itself. Deprecated: this keeps working in 1.x, and will be removed in 2.0. Move to a gateway when you can.

With a gateway, name what you count with aiFeature(). Warp SaaS counts and limits each name on its own; without it, requests are counted as scheduler.slot_request. The name can also be a closure; empty names are ignored.

$scheduler->freeSlotSearch()->aiFeature('meeting_search');

Before the controls are shown, Warp Scheduler asks the gateway whether the feature can be used now (unavailable()). When it answers with a sentence, the sentence field and button are disabled and the reason is shown below them. The answer is remembered once per Scheduler object. Direct calls are refused too. When a request fails, the user sees the gateway's sentence (userMessage() on the exception), or the translated AI failure message. Internal exception messages are never shown on the gateway path.

What the gateway receives. One array per press of Fill in the conditions:

Key Value
v 1
plugin, feature 'scheduler', 'slot_request'
meter Your aiFeature() name. Left out without it.
tier 'fast'. The gateway picks the model.
instructions Rules, today's date and weekday, the scheduler's time zone, and the keys and names of up to 500 visible resources. Never the user's sentence.
input The user's sentence, limited to 500 characters. Treat it as data, not instructions.
schema JSON schema for duration, resources, together, from, to, timeFrom, timeTo, weekdays. All properties are required and accept null; extra properties are forbidden.
max_output_tokens 1024
tenant, user The current Filament tenant (or null) and the signed-in user.
locale The app's locale, for the gateway's messages.

The gateway returns ['data' => [...]] in the shape of schema. Invalid types and unknown resources are dropped; dates and lengths use the same limits as the form (62 days, 5 minutes to 24 hours). Each user can send 10 sentences a minute. Events and other records are never sent. Only resources visible after tenancy and filters are sent. The panel explains this under the field. Use freeSlotSearch(ai: false) to hide it.

Writing your own gateway (no counting, no limits). This follows the Warp Input gateway example; any service that answers in a JSON schema works the same way. Model names belong to your gateway, not the scheduler:

// app/Ai/AiGateway.php
namespace App\Ai;

use Illuminate\Support\Facades\Http;
use RuntimeException;

class AiGateway
{
    public function ask(array $request): array
    {
        $response = Http::timeout(90)
            ->withHeaders(['x-api-key' => config('services.anthropic.key'), 'anthropic-version' => '2023-06-01'])
            ->post('https://api.anthropic.com/v1/messages', [
                'model' => $request['tier'] === 'smart' ? 'claude-sonnet-5-5' : 'claude-haiku-5-5',
                'max_tokens' => $request['max_output_tokens'] ?? 2000,
                'system' => $request['instructions'],
                'output_config' => ['format' => ['type' => 'json_schema', 'schema' => $request['schema']]],
                'messages' => [['role' => 'user', 'content' => $request['input']]],
            ])
            ->throw();

        $text = collect($response->json('content'))->firstWhere('type', 'text')['text'] ?? '';
        $data = json_decode($text, true);

        return is_array($data) ? ['data' => $data] : throw new RuntimeException('No answer.');
    }
}

// app/Providers/AppServiceProvider.php, in register()
$this->app->singleton('warp.ai', \App\Ai\AiGateway::class);

Add unavailable(array $request): ?string to grey out the controls (a sentence, or null when usable). Throw an exception with userMessage(): string to show your own message. Messages are trimmed and limited with Str::limit(..., 300). The same warp.ai can serve other Warp plugins without depending on their classes.

Moving from the Anthropic key. Bind a gateway and remove nothing else: freeSlotSearch() uses it as soon as it is bound, and ai.model is no longer used. Your explicit ReadsSlotRequests binding still takes priority.

Deprecated direct Anthropic path. Without a gateway or a custom reader, the existing configuration keeps working:

// config/services.php
'anthropic' => ['key' => env('ANTHROPIC_API_KEY')],

The default stays claude-haiku-4-5; change it with WARP_SCHEDULER_AI_MODEL (or ai.model in the published config). It uses a forced named tool call. The legacy HTTP body and the sentence field's HTML are unchanged without a gateway.

The development app's Find a slot via AI gateway page uses a local fake, with ?limited=1 for the monthly limit and ?fail=1 for a refusal. Real model evaluation cases live in tests/ai-cases/slot_request.json and are registered at warp.ai.cases.scheduler when present (path repositories); they are not run by the automated tests.

#A form field to pick a free time (SlotPicker)

SlotPicker is a form field: pick a day in a small month calendar (days without free times are greyed out), then one of that day's free times. It fills the start, and optionally the end and the resource. Put it in a create form of your panel, or in a booking page you build yourself with Livewire (it also works for visitors who are not logged in).

use Qalainau\FilamentWarpScheduler\Forms\SlotPicker;

SlotPicker::make('starts_at')                          // state: the start, 'Y-m-d H:i:s' in the scheduler's time zone
    ->scheduler(StaffSchedule::class)                   // a page or Livewire component implementing HasScheduler
    ->eventSource(Booking::class)                       // which event source the new event belongs to (default: the first)
    ->duration(fn (Get $get): int => Service::find($get('service_id'))?->minutes ?? 60)   // minutes
    ->resource(fn (Get $get) => $get('staff_id'))       // a resource key, or null for “anyone”
    ->resourceField('staff_id')                         // fill this field with the chosen resource
    ->endField('ends_at')                               // fill this field with the end
    ->step(30)                                          // times every 30 minutes (default)
    ->daysAhead(60)                                     // how far ahead people can book (default 60 days)
    ->minimumNotice(120);                               // not sooner than 2 hours from now (default 0)

Hidden::make('staff_id'); Hidden::make('ends_at');      // or visible fields of your own
  • Free times come from the scheduler you name: its resources (and tenant), business hours, blocked time, existing events, buffers and every conflict rule that refuses (the same checks as Find a free slot). With “anyone”, each time is offered once and goes to the first free resource in the scheduler's order.
  • The field only sends times and resource keys to the browser, never the titles or details of other events.
  • Checked again on the server: when the form is submitted, the chosen time, length and resource are checked again (free, within daysAhead() and minimumNotice(), on the step, a resource of that scheduler). A time that was taken in the meantime, or a value changed in the browser, fails validation with “This time is no longer available. Please choose another time.”
  • Saving is yours (create() of your model, or the scheduler's create action). To be sure two visitors cannot book the same time at the same moment, check again inside your save while holding a lock, as in Preventing double bookings when two people book at the same moment.
  • On a public page, add rate limiting to the route as you would for any form.
  • The times are shown in the scheduler's time zone, written under the field. On the night the clocks go back, the repeated hour is not offered (a 'Y-m-d H:i:s' value could not tell the two apart). Business hours that run past midnight are not supported by the free-time search.
  • The field loads its own small script and stylesheet only on pages where it is used.

#Unscheduled pool

$scheduler->unscheduledPool(label: 'Requests');

EventSource::make(Booking::class)->defaultDuration(fn (Booking $record) => $record->duration_minutes);

Records whose start column is empty are listed beside the timeline and can be dropped on a resource.

Each pool item has a button that books it into the first free slot of the resources on screen within two weeks, respecting business hours, blocked time and the conflict rules.

#Moving an event back to the pool

Drag an event from the timeline onto the pool to take it off the timeline: its start and end are cleared, the resource is kept, and it is listed in the pool again. While an event is dragged, the pool is outlined and says that it can be dropped there (on a touch screen, hold the event, then drag it). This works by default whenever the pool is shown, for each event source that can take an event off the timeline: one with unscheduleUsing(), or one whose start and end columns are nullable in the database. Events of other sources (for example absences with required dates) are not taken.

$scheduler->unscheduledPool()->returnToPool(false); // the pool only gives events, it does not take them back

EventSource::make(WorkOrder::class)
    // what "taking it off the timeline" means for your records (here: also clear the technician)
    ->unscheduleUsing(fn (WorkOrder $record): bool => $record->update(['starts_at' => null, 'ends_at' => null, 'technician_id' => null]));
  • The same rules as moving decide whether an event may go back: locked(), editable() and your policy's update. A refused event goes back to its place on the timeline and a notification says why.
  • unscheduleUsing() replaces how the record is taken off the timeline (the default clears the start and the end). Throw ChangeRejected in it to refuse with your own message. The pool lists records whose start is empty, so leave the start empty there, or the record disappears from both.
  • A repeating event (recurring()) can't be moved back: neither one date nor the whole series. Its notification asks to delete that date or to change the series in the edit modal, because a single date has no record of its own to put in the pool.
  • Only a plain move is taken: not a resize, an Alt-drag copy or several selected events moved together.
  • With calendar sync, the event is removed from the connected Google or Outlook calendar, as when a board card is moved back to a column before scheduled().
  • The browser dispatches warp-scheduler:unscheduled with { event, ok } in event.detail.

#Board (kanban)

Work orders in columns by stage above a timeline of technicians

Give an event source a stage column and list the columns:

use Qalainau\FilamentWarpScheduler\Board\BoardColumn;

$scheduler
    ->events([
        EventSource::make(WorkOrder::class)
            ->resource('technician_id')
            ->start('starts_at')
            ->end('ends_at')
            ->stage('stage'),
    ])
    ->board([
        BoardColumn::make('received'),
        BoardColumn::make('parts')->label('Waiting for parts')->limit(4),
        BoardColumn::make('ready')->label('Ready to book')->limit(5),
        BoardColumn::make('booked')->scheduled()->recent(8),
        BoardColumn::make('done')->color('success')->keepsSchedule()->recent(8),
    ])
    ->agingFrom('created_at', warning: 3, danger: 7);

Board columns shrink to 10rem before scrolling horizontally and expand to fill the available width on wider screens.

The board replaces the unscheduled pool. There are three kinds of column:

Column Holds Moving a card into it
Default Records without a start Takes a scheduled record off the timeline (its start and end are cleared)
scheduled() Records on the timeline (one column) Drop the card on a resource instead; it then moves here by itself
keepsSchedule() Done, invoiced and the like Changes the stage and keeps the record on the timeline

Cards in the default columns can be dragged onto the timeline, or booked into the first free slot with their sparkles button. An event dragged from the timeline onto a column moves there, so dropping a booked job on "Ready to book" takes it off the timeline. Clicking a card opens the same modal as clicking the event.

  • limit(4) turns the column heading red above four cards; limit(4, strict: true) refuses the fifth.
  • recent(8) shows only the first eight cards of a column that keeps growing, nearest first, and counts the rest.
  • agingFrom() shows how many days each card before scheduled() has waited.
  • boardLayout(BoardLayout::Beside) sets the default layout. Users can switch between the board above or beside the timeline, the board only and the timeline only; the choice is kept in the browser.
  • boardWidth('280px') sets the width of the board when it is beside the timeline, and the timeline takes the rest. By default the board takes two fifths of the width. It takes a number and a unit: px, rem, em, %, vw, ch or fr (the timeline is 1fr, so '1fr' gives each half); anything else throws an InvalidArgumentException. A closure is evaluated on every render. It has no effect on the other layouts, and on screens narrower than 64rem the board and the timeline are stacked as before.
  • cardView('work-orders.card') renders each card with your own view, which receives $record, $card and $column.
  • canMoveCard(fn (Model $record, string $from, string $to): bool => ...) decides which moves are allowed; your model policy's update is checked as well.
  • afterCardMoved(fn (Model $record, string $from, string $to) => ...) runs after each move.
  • EventSource::unscheduleUsing(fn (Model $record) => ...) replaces how a record is taken off the timeline. By default the start and end are cleared and the resource is kept.

Columns can come from an enum. Labels and colors are read from HasLabel and HasColor, and an enum that implements BoardStage configures its own columns:

enum WorkOrderStage: string implements BoardStage, HasLabel
{
    case Ready = 'ready';
    case Booked = 'booked';
    case Done = 'done';

    public function configureBoardColumn(BoardColumn $column): void
    {
        match ($this) {
            self::Ready => $column->limit(5),
            self::Booked => $column->scheduled(),
            self::Done => $column->keepsSchedule(),
        };
    }

    // getLabel() ...
}

$scheduler->board(WorkOrderStage::class);

#Swimlanes

$scheduler->board([...])->swimlanes('technician_id');

// or lanes of your own, with the value of the column => the name
$scheduler->board([...])->swimlanes('owner_id', fn (): array => User::query()->where('sales', true)->pluck('name', 'id')->all());

A board in lanes per technician, with the columns that a card may not move to dimmed

swimlanes(string|Closure|null $column, array|Closure|null $lanes = null) splits the board into a lane per owner, technician or anything else in a column of your event model. Off by default.

  • Without $lanes, a column that is the event source's resource column gives a lane per resource on screen, named like the timeline rows; any other column gives a lane per value found on the board.
  • An Unassigned lane holds the cards whose column is empty. It is shown when the column is nullable or when such cards exist.
  • Drag a card to another lane to change that column (to null in Unassigned), and to another column of the same lane to change the stage as before. Both can change in one drag.
  • When the lanes are the resources, moving a card that is on the timeline to another lane moves the event to that resource at the same time: the conflict rules are checked, afterEventMoved() runs and synced calendars are updated. Such a card cannot go to Unassigned.
  • Only the lanes on screen are accepted: a lane value sent from the browser that is not one of them (another tenant's resource, a value missing from $lanes) is refused.
  • Click a lane's name to fold it; the folded lanes are kept in the browser.
  • canMoveCard() and afterCardMoved() also receive ?string $fromLane and ?string $toLane ('' for Unassigned, null without lanes). afterCardMoved() now also runs when only the lane changed.
  • Cards whose column holds a value that is not a lane (a resource that is filtered out, a value missing from $lanes) are not on the board.

#Allowed moves between columns

$scheduler->board([...])->transitions([
    'received' => ['parts', 'ready'],
    'parts' => ['ready'],
    'ready' => ['booked', 'received'],
    'booked' => ['done', 'ready'],
]);

transitions(array|Closure|null $transitions) lists, for each column, the columns its cards may move to. Off by default (null: any move).

  • While a card is dragged, the columns it may not move to are dimmed and do not take it.
  • The server checks again: a move that is not listed is refused with "Cards in Booked cannot be moved to Waiting." and nothing changes. A column that is not a key may not move anywhere.
  • A card dropped on the timeline moves to the scheduled() column, so list that move ('ready' => ['booked']) or the drop is refused. This also applies to the first-free-slot button and to events dragged from the timeline onto a column.
  • Moving a card within its column to another lane is always allowed.
  • Values can be strings or cases of a backed enum.

#Testing drags, the pool and the board

A drag ends in one Livewire call, so a feature test can make the same call as the browser with Livewire::test() and check the database. The calls and what they take:

Drag Call Arguments
An event to another time or resource warpSchedulerMove event key, start and end (ms), resource key
A pool item or board card onto the timeline warpSchedulerSchedule event key, start (ms), resource key; the end comes from defaultDuration()
An event from the timeline onto the pool warpSchedulerUnschedule event key
A board card to another column warpSchedulerMoveCard event key, the column's value, and with swimlanes() the lane's value ('' for Unassigned)
Save all with batchSave() warpSchedulerSaveDrafts a list of [event key, start, end, resource key, start, end and resource key when the page loaded it]
Search with freeSlotSearch() warpSchedulerFindSlots the conditions: duration, resources, together, from, to, timeFrom, timeTo, weekdays
use App\Filament\Pages\Bookings;
use App\Filament\Pages\Dispatch;
use Carbon\Carbon;
use Livewire\Livewire;

it('books a request from the unscheduled pool', function () {
    $room = Room::factory()->create();
    $request = Booking::factory()->for($room)->create(['title' => 'Request', 'starts_at' => null, 'ends_at' => null]);
    $ms = fn (string $time): int => Carbon::parse($time, 'UTC')->getTimestampMs();

    $result = Livewire::test(Bookings::class)
        ->call('warpSchedulerSchedule', "0:{$request->id}", $ms('2026-10-09 09:00'), (string) $room->id)
        ->effects['returns'][0];

    expect($result['ok'])->toBeTrue()
        ->and($request->refresh()->starts_at->toDateTimeString())->toBe('2026-10-09 09:00:00');
});

it('takes a booking off the timeline when it is dropped on the pool', function () {
    $booking = Booking::factory()->create(['starts_at' => '2026-10-07 09:00', 'ends_at' => '2026-10-07 10:00']);

    $ok = Livewire::test(Bookings::class)
        ->call('warpSchedulerUnschedule', "0:{$booking->id}")
        ->effects['returns'][0]['ok'];

    expect($ok)->toBeTrue()
        ->and($booking->refresh()->starts_at)->toBeNull();
});

it('refuses what the user may not do and tells why', function () {
    $done = Booking::factory()->create(['status' => 'done', 'starts_at' => '2026-10-07 09:00', 'ends_at' => '2026-10-07 10:00']);

    $page = Livewire::test(Bookings::class)->call('warpSchedulerUnschedule', "0:{$done->id}");

    expect($page->effects['returns'][0]['ok'])->toBeFalse()
        ->and($done->refresh()->starts_at)->not->toBeNull();

    $page->assertNotified();
});

it('moves a work order to another board column', function () {
    $order = WorkOrder::factory()->create(['stage' => 'received']);

    $result = Livewire::test(Dispatch::class)
        ->call('warpSchedulerMoveCard', "0:{$order->id}", 'parts')
        ->effects['returns'][0];

    expect($result)->toBe(['ok' => true, 'unscheduled' => false])
        ->and($order->refresh()->stage)->toBe('parts');
});
  • The event key is "{index of the EventSource in events()}:{record key}", as in the events that warpSchedulerFetch returns. Write the times in the scheduler's time zone; see Testing with tenancy for both, and for checking that another tenant's IDs are refused.
  • A refused drag returns ['ok' => false], saves nothing and sends the notification the user sees; it does not throw.
  • warpSchedulerMoveCard returns 'unscheduled' => true when the card left the timeline (moved back to a column before scheduled()).
  • warpSchedulerSchedule and warpSchedulerUnschedule work only when the page shows the pool (unscheduledPool()); warpSchedulerSchedule also works with a board.
  • warpSchedulerSaveDrafts returns ['ok' => false, 'stale' => [event keys]] when someone else changed one of the events, and warpSchedulerFindSlots returns ['ok' => true, 'slots' => [...]] with start and end in milliseconds and the resource keys of each free time.
  • To test the sentence field without calling Anthropic, bind a fake: app()->instance(ReadsSlotRequests::class, $fake).

#Recurring events

EventSource::make(Booking::class)
    ->recurring()
    ->schema([
        // ...
        RecurrenceInput::make(),
    ]);

Rules are stored in warp_scheduler_recurrences. Changing an occurrence asks whether to apply it to that occurrence, to it and the following ones, or to the whole series.

#Reading the occurrences in your own code

Use the stored recurrence to read individual occurrences for your own reminders, reports or exports, without creating a Scheduler instance. Qalainau\FilamentWarpScheduler\Models\Recurrence stores the schedulable morph relation to the series' original record, its rule (RRULE string), timezone and exceptions relation. RecurrenceRule::parse() and occurrencesBetween() are public API: their arguments and return value follow semantic versioning. The other methods of RecurrenceRule are internal.

RecurrenceRule::parse($recurrence->rule)
    ->occurrencesBetween($dtStart, $timezone, $allDay, $from, $to, limit: 1000);
  • $dtStart: the start of the series' first occurrence, from the original record, not the start of the requested range.
  • $timezone: the recurrence's stored time zone. Timed occurrences keep their wall-clock time in this zone, including across daylight saving changes.
  • $allDay: whether the series uses dates only. When true, the time zone argument is ignored: the calendar dates of $dtStart, $from and $to are interpreted as midnight UTC without converting their dates. Returned dates also use UTC.
  • $from and $to: Carbon dates delimiting the occurrence starts to read, including both bounds. For a half-open timed range, exclude starts at $to yourself. For all-day ranges, pass the last included date as $to.
  • $limit: maximum number of starts returned per call, before filtering exceptions; defaults to 1000. A result at the limit may be incomplete. Use smaller ranges or a larger limit when needed.

The result is a list of CarbonImmutable starts. Compute each end yourself as the start plus the original event's duration: elapsed milliseconds for timed events, or calendar days for all-day events (whose end date is exclusive).

The rule does not apply exceptions for you. Skip any start found in $recurrence->exceptions->pluck('original_start'), regardless of the exception type: both a deleted occurrence (skipped) and the original of a moved or edited occurrence (overridden) must be excluded. The key is a Y-m-d string for all-day events, or a Unix timestamp in milliseconds as a string for timed events: (string) $start->getTimestampMs(). A replacement is saved as an ordinary event record, linked by the exception's override morph relation; read it through your normal event query as well. Eager-load exceptions.override when reading replacement records to avoid lazy loading.

For example, put this in routes/console.php and run php artisan bookings:remind-tomorrow. It lists tomorrow's recurring starts in Tokyo time; replace the info() call with your application's reminder notification. This assumes the Booking model casts starts_at and ends_at to datetimes and all_day to boolean. Query ordinary bookings separately for one-off events and replacements, and apply your application's tenant and recipient scope to both queries.

use App\Models\Booking;
use Carbon\CarbonImmutable;
use Illuminate\Support\Facades\Artisan;
use Qalainau\FilamentWarpScheduler\Models\Recurrence;
use Qalainau\FilamentWarpScheduler\Recurrence\RecurrenceRule;
Artisan::command('bookings:remind-tomorrow', function (): void {
    $from = CarbonImmutable::tomorrow('Asia/Tokyo');
    $to = $from->endOfDay();
    $recurrences = Recurrence::query()->with(['schedulable', 'exceptions.override'])
        ->where('schedulable_type', (new Booking)->getMorphClass())->get();
    foreach ($recurrences as $recurrence) {
        $booking = $recurrence->schedulable;
        if (! $booking || ! $booking->starts_at) {
            continue;
        }
        $allDay = (bool) $booking->all_day;
        $dtStart = $allDay
            ? CarbonImmutable::parse($booking->starts_at->toDateString(), 'UTC')
            : CarbonImmutable::instance($booking->starts_at);
        $skipped = $recurrence->exceptions->pluck('original_start')->flip();
        $starts = RecurrenceRule::parse($recurrence->rule)
            ->occurrencesBetween($dtStart, $recurrence->timezone, $allDay, $from, $to);
        foreach ($starts as $start) {
            $original = $allDay ? $start->toDateString() : (string) $start->getTimestampMs();
            if (! $skipped->has($original)) {
                $this->info("Reminder: {$booking->getKey()} at {$start->toIso8601String()}");
            }
        }
    }
});

For reports or exports that include events overlapping the range, move $from backwards by the original event's duration before expanding (subtract days for all-day events, milliseconds for timed events). Then compute each end and retain only occurrences that overlap your actual range; for a half-open range, start < rangeEnd && end > rangeStart. The reminder example above only needs starts within tomorrow, so it does not widen the range.

#Availability and conflicts

$scheduler
    ->businessHours(['mon' => '09:00-18:00', 'tue' => ['09:00-12:00', '13:00-18:00']])
    ->conflictRules([
        NoOverlap::make()->capacity('capacity'),          // a number, a column or a closure
        WithinAvailability::make()->warn(),
        NoBlockedTime::make(),
        CustomRule::using(fn (Placement $placement): ?string => $placement->start->isWeekend() ? 'No weekend bookings.' : null),
    ]);

The rules apply to every way an event is placed: dragging and resizing, the create and edit modals, the unscheduled pool, the board, drafts, drops from outside and other schedulers, and .ics imports. An .ics import skips the events that break a rule and imports the others; the notification lists the skipped events. In the Gantt chart, the successors moved by dependencies() are checked too: if any of them would break a rule, the whole change is refused and nothing moves.

When every event source is allDay(true), hours of the day mean nothing, so the shading is drawn per day: a day with any working time is left white, and only days without working time (weekends, holidays, days off) are shaded. A scheduler with a timed source keeps the hourly shading.

Weekly hours and date exceptions per resource (or for all resources, such as holidays) can also be stored in warp_scheduler_availabilities, and blocked time in warp_scheduler_blocks. To compute availability yourself, for example with spatie/opening-hours or laraveljutsu/zap, return intervals from availabilityUsing(fn (Model $resource, CarbonImmutable $from, CarbonImmutable $to) => [[$start, $end], ...]).

#Matching skills: only people who can do the job

Give each event the skills it needs and each resource the skills it has, then add RequiresSkills:

use Qalainau\FilamentWarpScheduler\Conflicts\RequiresSkills;

$scheduler
    ->resourceSkills(fn (Technician $resource): array => $resource->skills->pluck('name')->all())
    ->conflictRules([
        RequiresSkills::make(),             // refuse; or ->warn() to save and show a warning
    ]);

EventSource::make(Visit::class)
    ->requiredSkills(fn (Visit $record): array => $record->required_skills ?? []);   // e.g. ['Forklift', 'First aid']
  • An event fits a resource when the resource has every skill the event needs. An event that needs no skills fits everyone; an event without a resource (in the unscheduled pool) is not checked.
  • Skills are compared as exact strings ('Forklift' and 'forklift' are different).
  • While you drag an event, an unscheduled pool item or a board card, the rows of the people who do not fit are dimmed, and dropping there shows the usual red (or yellow with ->warn()) placement. The default message is “Aiko Sato does not have the required skills: Forklift.”; change it with ->message().
  • Like the other rules, RequiresSkills is checked on the server at every entry point listed above, from your models (the skills sent to the browser are never trusted). The skills are only sent to the browser when the rule is used.
  • With RequiresSkills, onExternalDrop() and onAdopt() must return the saved model so its skills can be checked; a callback that returns only true or false is refused and rolled back.

#Showing where an event can go while dragging

$scheduler->highlightAvailableTime();

When a drag starts, every loaded row is painted where the dragged event (with its length and buffers) could be dropped without breaking a rule that refuses: green where it fits, yellow where only a ->warn() rule is broken, and no paint where it would be refused. The rules checked are the ones the browser knows (NoOverlap, WithinAvailability, NoBlockedTime and RequiresSkills; a CustomRule is only checked when you drop). It is computed once when the drag starts, for the visible period and the loaded rows, and works in the resource timeline and the week and day views (not in the Gantt chart, whose rows are tasks, nor in the month, year and list views). The server still checks every drop.

#Holidays and business hours from Warp DatePicker

Warp DatePicker is not released yet (coming soon). Until you install it, nothing changes: the board does not use it unless you call useWarpDatePicker().

With Warp DatePicker installed, the board can use the same calendar as your date fields — public holidays, company days off and business hours, set once on the panel:

$scheduler->useWarpDatePicker();                                            // the panel's calendar
$scheduler->useWarpDatePicker('osaka');                                     // one place of FilamentWarpDatePickerPlugin::calendars()
$scheduler->useWarpDatePicker(fn (?Room $resource): ?string => $resource?->site_key);   // a calendar per resource
  • Public holidays and company days off are shaded and named in the month, week and year views, unless you set holidays().
  • The working weekdays come from the calendar unless you set workingDays(), and the weekly business hours (for shading and hideNonWorkingHours()) unless you set businessHours() — only when the calendar is in the scheduler's time zone, so the shading never lands on the wrong hours.
  • Availability (WithinAvailability, free slots, utilization): on a day without rows in warp_scheduler_availabilities, a resource is available during the calendar's business hours of that day — none on holidays and company days off, without the lunch break, shorter before a holiday, and in the calendar's own time zone (a Los Angeles warehouse is 8:00–17:00 Los Angeles time on a board shown in New York time). If the calendar has no business hours, business days use businessHours() (or the whole day). Rows of the table still come first, so a one-off Saturday shift stays a table row.
  • Half days off of the calendar (a stocktaking afternoon) are blocked time with their name, for every resource of that calendar (NoBlockedTime refuses them).
  • With a closure, $resource is null for what belongs to the whole board (the named holidays and working weekdays); return null there for the panel's calendar.

Warp DatePicker is not a dependency of Warp Scheduler: without it, useWarpDatePicker() stops with a message saying to install it.

#Utilization

$scheduler->utilization();

EventSource::make(Absence::class)
    ->countsTowardsUtilization(false)  // not booked time
    ->reducesAvailability();           // and the person cannot work then

Utilization is the booked time divided by the available time (the working hours from the availability, times the capacity of NoOverlap; the whole day when no working hours are set).

  • An all-day event counts as the available time of its day: a whole-day job for someone who works 08:00–18:00 is 10 hours, not 24.
  • countsTowardsUtilization(false) leaves the events of a source out of the booked time.
  • reducesAvailability() takes their time off the available time (vacation, sick leave). On a day off the person has no available time, so the row shows no percentage for that day; in a week the other days still count. Bookings on that day still count as booked time, so a week with bookings during a vacation shows a higher percentage.

#Undo and redo

$scheduler->undoRedo();            // remembers the last 20 changes
$scheduler->undoRedo(limit: 50);

Adds Undo and Redo buttons to the toolbar, and the keys Ctrl+Z / ⌘Z (undo) and Ctrl+Shift+Z / ⌘⇧Z / Ctrl+Y (redo) while the scheduler has the focus (not while typing in a field).

  • What can be undone: moving and resizing by dragging (also to another row), moving or copying several events at once (undoing a copy removes the copies), dropping an event from the unscheduled pool or back into it, renaming in place, moving a board card, and deleting an event (with the Delete key or the delete action).
  • Not undone: changes made in the create and edit modals, .ics imports, occurrences of recurring events, moves that also shifted linked Gantt tasks (dependencies()), saving drafts, the automatic scheduling of the pool, drops from outside (onExternalDrop(), onAdopt()) and reordering inside a slot. Those changes are saved as usual and are simply not added to the history.
  • The history is kept on the server, in the session, for each user, page and scheduler (and tenant). The browser only says “undo” or “redo”; the values come from the server.
  • Undoing goes through the same checks as a normal change: permissions (your policy and movable() / editable()), tenancy, the conflict rules and your save callbacks (moveUsing() and the others). When one of them refuses, nothing changes and the usual message is shown.
  • If someone else changed the same event after your edit, it is not undone (“This event changed after your edit, so it can't be undone.”) and that step is dropped from the history.
  • Undoing a delete restores a soft-deleted model, or creates the row again with the same key and columns (this needs the create permission; when the key is already used, it is not restored).
  • A new change clears the redo history. Read-only schedulers (readOnly()) show no buttons.

#Summary rows

Show totals under the timeline: how many bookings or how much money per day, week or month. You decide what to count:

use Illuminate\Support\Collection;

$scheduler
    ->summaryRow(fn (Collection $records): int => $records->count(), label: 'Bookings')
    ->summaryRow(fn (Collection $records): string => '$'.number_format($records->sum('price')), label: 'Revenue', groups: true);
  • Each call adds one row at the bottom of the resource timeline and the Gantt chart, in the order you call it. With utilization() as well, the summary rows sit above the utilization chart.
  • The cells follow the zoom, like utilization: hours in the day zoom, days in the week and month zooms, weeks in the quarter zoom and months in the year zoom.
  • $records holds the Eloquent models of every event source whose start falls in that cell, after your filters, tenancy and modifyQueryUsing(). The callback also receives $start and $end (the cell, in the scheduler's time zone) and $resource (the group key for a group subtotal, null for the total row).
  • The totals are counted on the server for the whole visible period, including rows that are not loaded yet. They are fetched again after a drag, a resize or an edit.
  • groups: true also draws the subtotal of each resource group (groupResourcesBy()) on the group's row.
  • Return a string, a number or null (an empty cell). Text is drawn as plain text and shortened with “…” when it does not fit the cell.
  • Each occurrence of a recurring event is not a separate model, so $records contains the stored records only.
  • The label defaults to the translated “Total”. Summary rows are not drawn in the week, day, month, year and list views.

#Hooks

$scheduler
    ->afterEventCreated(fn (Model $record) => activity()->log("Created {$record->title}"))
    ->afterEventMoved(fn (Model $record, EventSource $source) => ...)
    ->afterEventUpdated(fn (Model $record) => ...)
    ->afterEventDeleted(fn (Model $record) => ...);

They run after drags, forms, renames, imports and drops. In the browser, the scheduler element dispatches warp-scheduler:navigated, warp-scheduler:event-clicked, warp-scheduler:slot-selected, warp-scheduler:moved, warp-scheduler:copied, warp-scheduler:renamed, warp-scheduler:dropped, warp-scheduler:adopted, warp-scheduler:scheduled, warp-scheduler:unscheduled, warp-scheduler:card-moved, warp-scheduler:drafted, warp-scheduler:drafts-saved, warp-scheduler:drafts-discarded and warp-scheduler:slots-found with the details in event.detail:

<div x-on:warp-scheduler:moved="console.log($event.detail)">{{ $this->getWarpScheduler() }}</div>

To make every scheduler on the page fetch its events and redraw its board after something else changed them, dispatch warp-scheduler-refresh, from Livewire ($this->dispatch('warp-scheduler-refresh')) or from the browser (window.dispatchEvent(new CustomEvent('warp-scheduler-refresh'))).

#Gantt

$scheduler
    ->views([SchedulerView::Gantt, SchedulerView::ResourceTimeline])
    ->dependencies()
    ->baselines();

EventSource::make(Task::class)->resource('project_id')->progress('progress');

Each resource is a project and its events are the tasks.

Each task has its own row. The rows of a project stay in the order the tasks were created in (event source, then record ID), so a task keeps its row when you drag it to other dates or when the tasks after it move along. To choose the order yourself, use order() on the event source (see Ordering overlapping events): tasks with a value come first, smallest first, then the tasks without one in the order they were created in.

EventSource::make(Task::class)->resource('project_id')->progress('progress')->order('position');

#Milestones

Events with identical start and end timestamps automatically appear as diamonds in Gantt and resource timelines. Use milestone() to choose the condition explicitly:

EventSource::make(Task::class)
    ->resource('project_id')
    ->milestone(fn (Task $record): bool => $record->is_milestone);

milestone(true) marks every event, milestone(false) disables diamonds, and milestone() (or null) restores automatic detection. A diamond uses the event color with its title on the right. Dragging shifts both timestamps equally; milestones have no resize handles in these views. Dependency arrows attach to the diamond center, and zero-duration successors retain zero duration when rescheduled. Day/week vertical calendars and month views keep their existing short-event rendering. For a point in time, store identical start and end timestamps; the condition controls appearance and does not rewrite stored dates.

#Parent tasks and subtasks

EventSource::make(Task::class)
    ->resource('project_id')
    ->progress('progress')
    ->parent('parent_id');                    // the key of the parent task in the same event source, or fn (Task $record) => ?key
    // ->parent('parent_id', rollUp: false);  // draw the parent from its subtasks without saving its dates

The parent is read from your model; this adds no table or column. Without parent(), the Gantt chart is unchanged.

  • A task with subtasks becomes a parent row: bold, with a triangle to collapse or expand it (or ← / → on the row). Its subtasks are indented below it (subtasks of subtasks too, up to 5 levels deep). The collapsed state is remembered in the browser. A collapsed parent shows its subtasks as light marks on its bar.
  • The parent's bar runs from its earliest subtask to its latest one. With progress(), its progress is the average of its subtasks weighted by their length.
  • Dragging the parent's bar moves all of its subtasks by the same amount, saved at once with the same checks as moving several events (permissions, tenancy, conflict rules for each subtask: if one is refused, nothing moves); linked successors (dependencies()) are moved afterwards. A parent bar has no resize handles.
  • With rollUp (the default), moving, creating or deleting a subtask saves the parent's start and end so they match its subtasks, through your save callbacks (moveUsing()), and moves the parent's own successors.
  • A task can't be inside its own subtask: such a change is refused (“A task can't be inside its own subtask.”), and a loop already in your data is drawn as plain rows. A subtask whose parent is in another project, or not found, is a plain row.
  • Dependencies can link parents and subtasks; a link from a parent uses the end of its whole bar.
  • Parent rows are found from every task of the visible projects (not only those in the visible period), so a parent's bar is right even when some subtasks are outside the period.

#Splitting a task

$scheduler->taskSplitting();

Right-click a task bar in the Gantt chart and choose Split here: the task becomes two parts with a gap of one step after the split (one day in the day-based zooms, the next working day with dependencies(workingDays: true)). The parts are joined by a dotted line and each can be dragged on its own; drag the first part to move the whole task. Dropping a part onto the next one joins them again; when one part is left, the task is a plain task again.

  • The task's start and end columns keep the whole span (the start of the first part and the end of the last one), so your queries, exports and successors keep working. Successors (dependencies()) follow the end of the last part, startNoEarlierThan() applies to the first part, and a parent task's bar covers all the parts.
  • Every change goes through the usual checks (permissions, tenancy, the conflict rules for each part, your save callbacks), in one database transaction with the task's columns. Parts of a task can't overlap.
  • The parts are stored in a new table, warp_scheduler_task_segments. Run php artisan migrate after updating (also when you published the earlier migrations: the new one runs from the package). Without taskSplitting(), the table is never read, so nothing changes even if you have not migrated. With taskSplitting() but without the table, the Gantt chart still works and Split here shows a message asking you to run the migration.

#Start-no-earlier-than dates and deadlines

EventSource::make(Task::class)
    ->resource('project_id')
    ->startNoEarlierThan('not_before')    // a date or datetime column of your model, or fn (Task $record) => ?CarbonInterface
    ->deadline('due_on');                  // the same

The values are read from your model; this adds no table or column. A task whose value is null has no constraint or deadline, so nothing changes for it.

  • Start no earlier than: the task can't be dragged, resized or saved in the edit modal to start before that date (“Integration can't start before 2026-11-24 09:00.”). When dependencies() moves it as a successor, it stops at that date instead: a successor starts at the later of what its predecessors require and its own date, and pullForward never pulls it before its date. With workingDays: true, the date moves to the next working day.
  • Deadline: only shown, never enforced. A small flag marks the date on the task's row, and a task that ends after it gets a red “!” at its end, also in the resource timeline. The tooltip and the accessible text say “Deadline: …” and “Overdue by 2 days”. An all-day task may end on its deadline day; a timed task is late from the deadline's time, and each started 24 hours count as a day.
  • A start date is marked with a small bracket on the task's row, and the tooltip says “Not before …”.
  • A column name that does not exist on the model, or a value that is not a date, stops with a message naming the model and the column.

#Scheduling on working days and pulling tasks earlier

$scheduler
    ->dependencies(workingDays: true, pullForward: true)
    ->useWarpDatePicker();

// Or supply the calendar directly:
$scheduler
    ->dependencies(workingDays: true, pullForward: true)
    ->workingDays([1, 2, 3, 4, 5])
    ->holidays(['2026-11-03' => 'Culture Day']);

Both options default to false and accept booleans or closures. With workingDays: true, all-day successors start on a working day and keep their duration in working days. Lag is also counted in working days: 1440 minutes means one working day, with fractions rounded up. All-day end dates are exclusive. workingDays() sets the weekdays; otherwise the Warp DatePicker calendar's working weekdays are used, falling back to Monday through Friday. holidays() supplies days off; otherwise useWarpDatePicker() skips the calendar's holidays and company closures. Timed tasks continue to move in seconds.

With pullForward: true, successors also move earlier when their predecessors do. Each successor is placed at the latest constraint from all its predecessors (FS, SS, FF or SF, including lag). Without this option, successors only move later. The two options can be used separately or together. The server returns the rescheduled tasks to redraw them after saving; the drag preview still uses calendar time.

#Calculating dates yourself

By default, when a task is moved later (by dragging it, or with new dates in the edit modal), the scheduler moves its successors along in calendar time: a successor of a task that now ends on Friday evening starts on Friday evening, even if nobody works at the weekend. For working-hour calculations or other custom rules beyond the working-day option above, turn this off and move the successors yourself:

$scheduler
    ->dependencies(reschedule: false)
    ->afterEventMoved(function (Task $record, $livewire) {
        // Your own planning code, for example with your working-day calendar
        app(ProjectPlanner::class)->rescheduleSuccessorsOf($record);

        // Draw the tasks your code moved
        $livewire->dispatch('warp-scheduler-refresh');
    });

With reschedule: false the scheduler still draws the arrows, lets users link tasks by dragging, and highlights the critical path. It only stops moving the successors, both while dragging and when saving. The dependencies are stored in the warp_scheduler_dependencies table (predecessor_type, predecessor_id, successor_type, successor_id, type and lag_minutes), so your planning code can read them from there.

reschedule also accepts a closure, for example to let users choose with a filter field:

$scheduler
    ->filtersForm([Toggle::make('reschedule')->label('Move the tasks after it')->default(true)])
    ->dependencies(reschedule: fn (array $filters): bool => (bool) ($filters['reschedule'] ?? true));

#iCal and printing

$scheduler->icalFeed();

The toolbar gets a download button and a subscription link. Feeds are served from /warp-scheduler/feeds/{token}.ics with the owner's permissions, filters and tenant. The print button is always available.

printOptions() asks for the paper orientation and, in the timeline, Gantt and list views, a date range before printing.

#Calendar sync

$scheduler->calendarSync();

Create an OAuth app with Google and/or Microsoft, register these redirect URIs and set the credentials in .env:

{APP_URL}/warp-scheduler/oauth/google/callback
{APP_URL}/warp-scheduler/oauth/microsoft/callback
WARP_SCHEDULER_GOOGLE_CLIENT_ID=
WARP_SCHEDULER_GOOGLE_CLIENT_SECRET=
WARP_SCHEDULER_MICROSOFT_CLIENT_ID=
WARP_SCHEDULER_MICROSOFT_CLIENT_SECRET=
WARP_SCHEDULER_MICROSOFT_TENANT=common

Run a queue worker and schedule the fallback sync and the renewal of push notifications:

Schedule::command('warp-scheduler:sync-calendars')->everyFifteenMinutes();
Schedule::command('warp-scheduler:renew-calendar-watches')->daily();

Push notifications need a public https URL. Without one, the scheduled sync keeps calendars up to date.

#Polling

Opt in to receiving other people's changes while the page is visible, using the same poll() syntax as Floor:

$scheduler
    ->poll('30s'); // re-read the events in the visible period and resources

Polling is off by default. poll() uses 30 seconds; pass '2m', an integer number of seconds, or a closure returning one of these. The minimum is 5 seconds, as in Floor. poll(null) disables it. getPollInterval() returns milliseconds or null.

Polling uses the current filters and updates only resources whose events or constraints changed. It keeps the scroll position, view, selection and open quick info, without reloading the page or re-rendering Livewire. It pauses during dragging, resizing, range selection, form or confirmation modals, unsaved batchSave() drafts and saving, and while the tab is hidden. When the pause ends it reads once immediately. Requests do not overlap; failed reads keep the current display and retry at the next interval.

#Browser tests and screen readers (JavaScript)

The board is drawn on a canvas, so the events are not elements you can click or read by themselves. The scheduler also puts them in the page for screen readers, automated checks and screen recordings.

#The list of the events in the page

Each event box on screen has a matching <li> in a hidden list (.fi-warp-sch-event-layer, role="list") at the same place as the box. Its text is the title, then the subtitle, the date and time, and the resource, as the screen shows them (for example Training, Delta, Nov 5, 14:30 – 15:30, Delta). So:

  • Screen readers read every event on screen with its time and resource.
  • The browser's find (Cmd/Ctrl + F) finds the titles and highlights them on the board.
  • element.innerText and Playwright's page.getByText('Training') find the events.

Each <li> also has data-key (the event key), data-record-id, data-resource, data-start and data-end (local time, see below). The list follows what is drawn: after a drag, an edit, a refresh, a zoom or a scroll, it is rebuilt shortly after the drawing, and events that are no longer drawn are removed. Only the events on screen are in the list (up to 600).

The list does not take clicks (they go to the canvas). To click an event, use the position from eventRects().

#eventRects() and whenIdle()

The engine is on the .fi-warp-sch-stage element as warpScheduler:

const scheduler = document.querySelector('.fi-warp-sch-stage').warpScheduler

await scheduler.whenIdle()

scheduler.eventRects({ resource: '1', date: '2026-11-02' })
// [{ key: '0:275', recordId: '275', resource: '1', resourceTitle: 'Van 1', title: 'Connelly\'s Café',
//    subtitle: '#1 · 07:20', start: '2026-11-02T09:00', end: '2026-11-02T09:50', allDay: false,
//    x: 1064, y: 420, w: 61, h: 48, centerX: 1094.5, centerY: 444 }]
  • eventRects(filter = {}) — the events drawn now. Every filter is optional: resource (the resource key; numbers and strings both work), date ('YYYY-MM-DD': events on that day in the scheduler's time zone, including ones that start the day before), key (the event key), recordId (the record key) and title (the exact title).
    • start and end are the wall-clock time in the scheduler's time zone (timezone()), as 'YYYY-MM-DDTHH:mm' without an offset — the same time the board shows, whatever the time zone of the browser. All-day events start at T00:00 and end at T00:00 of the day after the last day.
    • x, y, w, h are the box in viewport pixels, the same as getBoundingClientRect(), cut to the part that is visible on the board (not under the resource column or the header). centerX and centerY are its center: with Playwright, page.mouse.click(rect.centerX, rect.centerY) clicks that event.
    • Events scrolled out of view are not returned. Scroll first (or go to another date with the arrows), wait with whenIdle(), then call it again.
    • An event that is drawn in several pieces (for example across two weeks in the month view) is returned once per piece.
  • whenIdle({ timeout = 15000 } = {}) — a promise that resolves when nothing is loading, saving or waiting to be drawn, and the list of the events is up to date. It resolves true, or false when timeout milliseconds pass first. Call it after anything that changes the board (opening the page, a drag, closing a modal, a zoom, a filter) and before eventRects() or reading the list. It also waits for the work that starts a moment after you act: the search (250 ms after the last key), summary rows and utilization (loaded 300 ms after a zoom or a move), the window of an event that can be renamed (opened 250 ms after the click, in case it is a double click), and 150 ms after any key press or click.

A Playwright test that drags a booking to the next van and checks the result:

const stage = page.locator('.fi-warp-sch-stage')
const scheduler = (fn, arg) => stage.evaluate((el, arg) => fn(el.warpScheduler, arg), arg)

await page.goto('/app/acme/dispatch')
await stage.evaluate((el) => el.warpScheduler.whenIdle())

const [stop] = await stage.evaluate((el) => el.warpScheduler.eventRects({ resource: '1', date: '2026-11-02', title: 'Connelly\'s Café' }))

await page.mouse.move(stop.centerX, stop.centerY)
await page.mouse.down()
await page.mouse.move(stop.centerX, stop.centerY + 56, { steps: 10 })   // one row down
await page.mouse.up()
await stage.evaluate((el) => el.warpScheduler.whenIdle())

const moved = await stage.evaluate((el, key) => el.warpScheduler.eventRects({ key }), stop.key)
expect(moved[0].resource).toBe('2')
await expect(page.getByText('Connelly\'s Café, ')).toContainText('Van 2')

The values in these examples are only examples; take the row height and keys from your own board.

With several schedulers on one page, pick one with document.querySelectorAll('.fi-warp-sch-stage')[n]. Other properties of warpScheduler are internal and can change in any release; use only eventRects() and whenIdle().

#Keyboard

Key Action
Tab / Shift+Tab Select the next or previous event on screen
Enter / Space Open the selected event
Arrow keys Move the event (time, day or resource, depending on the view)
Shift + arrow keys Change the length
Delete / Backspace Delete the event
Escape Cancel a drag, close a menu or clear the selection
Ctrl/Cmd + click Add an event to the selection; dragging one selected event moves them all
Ctrl/Cmd + C, X, V Copy or cut the selected events and paste them at the pointer
F2 / double-click Rename the event in place

On touch screens, press and hold an event to drag it.

#Limitations

  • Week, day, month, year and list views show every event together and are limited to calendarResourceLimit() resources. Use the filters for larger boards.
  • Events shared by several resources (resourcesRelationship()) are recurring only with recurringAcrossResources(). Overlap checks of such a series cover its first 1,000 occurrences.
  • Events from eventsUsing() are read-only. A date range for printing works in the timeline, Gantt and list views.
  • Images from other sites appear in printouts only when those sites allow CORS.
  • Recurring events from Google or Outlook are imported as single occurrences. Recurring series created in the scheduler are exported with their rule.
  • When both sides of a sync changed the same event, the more recent change wins.
  • The drag preview checks conflicts against the events already loaded. The server always checks again before saving.
  • Printing renders up to 40 pages of the current view.

#Troubleshooting

Nothing is drawn. Run php artisan filament:assets after installing or updating, and check that the page shows no JavaScript errors.

No events appear. Check the column names in EventSource and that the events belong to resources returned by resources().

Calendar changes do not arrive. Make sure a queue worker is running and warp-scheduler:sync-calendars is scheduled. The last error of each connection is stored in warp_scheduler_calendar_connections.last_error.

#Changelog

See CHANGELOG.md.

#Content Security Policy (CSP nonce)

If your app sends a Content Security Policy without 'unsafe-inline' in script-src and gives each response a nonce with Laravel's Vite::useCspNonce() (in a middleware, before the page is rendered), the plugin's inline scripts carry that nonce, so nothing is blocked. This is the small script that registers the plugin's Alpine components early on every panel page. Livewire and Filament add the same nonce to their own scripts. Without a nonce, the plugin outputs exactly the same HTML as before.

use Illuminate\Support\Facades\Vite;

// In a middleware, before $next($request):
Vite::useCspNonce();

$response = $next($request);
$response->headers->set(
    'Content-Security-Policy',
    "script-src 'self' 'nonce-".Vite::cspNonce()."' 'unsafe-eval'",
);

Keep 'unsafe-eval': the Alpine.js bundled with Livewire evaluates x-data and x-on expressions with new Function.

#Support

Ask a question or report a bug at https://warpui.com/support?plugin=scheduler. Do not post your license key in your question.

#License

Warp Scheduler is commercial software. See LICENSE.md for the license terms.

The author

Yuichi Okada avatar Author: Yuichi Okada

Laravel / FilamentPHP developer building SaaS for SMEs.

Plugins
24
Stars
55

From the same author

Univer Sheet plugin thumbnail

Univer Sheet

Integrate Univer Sheet into Filament — full spreadsheet editor for forms, read-only display for infolists, and compact preview for table columns.

Yuichi Okada avatar Author: Yuichi Okada
100 / 100 package health score out of 100
14 stars
Tag: Form Editor Field Tag: Table Column
Dark mode ready Multilingual support
Free
Get it now
Team Chat plugin thumbnail

Team Chat

Add Slack-like team chat to any Filament panel — channels, DMs, threads, reactions, @mentions, file sharing, and unread tracking, all self-hosted with zero external dependencies.

Yuichi Okada avatar Author: Yuichi Okada
100 / 100 package health score out of 100
17 stars
Tag: Panels Tag: Kit
Dark mode ready No multilingual support
Free
Get it now
Bonsai Theme plugin thumbnail

Bonsai Theme

High-density, compact UI theme for Filament v5. Inspired by Japanese business applications (sales, inventory, order management) that prioritize information density, Bonsai Theme reduces padding, gaps, and font sizes across all Filament components to fit more data on screen. No Tailwind build required. The theme ships as pre-compiled CSS and is loaded automatically.

Yuichi Okada avatar Author: Yuichi Okada
100 / 100 package health score out of 100
4 stars
Tag: Theme
Dark mode ready No multilingual support
Free
Get it now
Inbox plugin thumbnail

Inbox

A Gmail-style internal messaging system for your Filament panel. Provides inbox, sent, starred, and trash pages with full message threading, reply/reply all, forwarding, read receipts, rich text editing, file attachments, bulk actions, search & filters, database notifications, stats widget, dark mode, multi-tenancy support, and i18n (8 languages). Built natively for Filament v5 with Laravel events, configurable user model, and test factories included.

Yuichi Okada avatar Author: Yuichi Okada
100 / 100 package health score out of 100
16 stars
Tag: Widget Tag: Panels
Dark mode ready Multilingual support
Free
Get it now