Many tenants, one dispatch desk
Delivery & Fleet at delivery.wilayats.com is a multi-tenant operations platform. Each tenant configures shops, vehicles, riders, zones, and API integrations. Dispatchers work orders, delivery jobs, and route plans. Drivers use a React Native app with maps and live location, signing in with a tenant code so a driver build is not forked per customer.
Tenant isolation covers shops, fleet, riders, orders, outbound webhooks, and API applications. Those API apps have request quotas and request logs, because an integrator who retries in a loop should not take the dispatcher desk down with them.
Roles are the product
Platform admin is separate from tenant admin, operations manager, and dispatch manager. Auto-assign is a workflow on top of those roles, not a hidden script that moves jobs with no owner. Global and tenant dashboards show different slices of the same data so a platform operator can see health without opening a customer’s orders.
The web side is Laravel 13, Inertia.js 2, React 19, and PostgreSQL. The driver client is React Native 0.83: job status, GPS, and the tenant-code login. Redux and Yajra DataTables carry the desk UI. Routing data for the heavier geospatial work lives in the Road Network GIS engine — GeoJSON and Shapefile import, block zones, and a Dijkstra API — rather than being reinvented inside each tenant.
What “live location” has to survive
A driver app that only posts a coordinate is not a dispatch system. The job has a status, the vehicle has an assignment, and the webhook has to tell the shop what changed. Those three updates failing independently is how fleets end up with a map pin that does not match the order the customer sees.
Quotas, logs, and role checks are there so the REST apps can be given to integrators without handing them the dispatcher session. That split is the whole point of a multi-tenant fleet product: one codebase, separate operational boundaries.
In production
Dispatchers run orders, delivery jobs, and route plans per tenant while drivers use a React Native client with maps, tenant-code auth, job status updates, and live location tracking for fleet visibility.
What shipped
- Tenant-isolated shops, fleet, riders, orders, outbound webhooks, and API applications with request quotas and logging
- Global and tenant dashboards with role-based dispatch (Tenant Admin, Operations Manager, Dispatch Manager) and auto-assign workflows
- REST API apps for integrators; React Native driver client with tenant-code auth, job status, and GPS tracking