Delivered remotely for a business based in Birmingham, United Kingdom. Names withheld by agreement.
Project Overview
Across the Midlands logistics corridor centered in Birmingham, fleet operators running vans, rigids, and articulated trailers face strict UK DVSA roadworthiness standards alongside relentless vehicle utilization targets. Yet many depots still rely on disconnected spreadsheets for Periodic Maintenance Inspections (PMIs), paper job cards smudged with grease on workshop benches, and parts rooms where stockouts are discovered only after a vehicle is already up on a lift.
We engineered a vehicle maintenance management platform built on Laravel, React, and MySQL. Designed for both internal fleet depots and multi-vendor repair networks, the system coordinates preventive inspection cadences, real-time bay scheduling, digital technician workflows, and auditable spare-parts inventory from a single operational workspace.
Workshop & Lifecycle Friction
Digitalizing multi-bay commercial garages uncovered four persistent operational gaps:
- Reactive breakdown cycles: Odometer readings arrived sporadically via fuel cards or manual entries, causing scheduled A/B/C services to slip past legal PMI windows until minor wear triggered costly recovery callouts.
- Unaccounted technician time and parts shrink: Paper job cards rarely captured exact wrench-on/wrench-off hours or miscellaneous consumables, skewing true vehicle lifecycle cost calculations.
- Inventory race conditions: Multiple technicians working concurrent bays frequently discovered physical bin counts disagreed with spreadsheets because parts weren't reserved when work orders opened.
- Missed OEM warranty recoveries: Without automated part-serial and installation-date cross-checks, workshops routinely paid out of pocket for premature component failures still covered by supplier warranties.
Architectural Strategy
We built a clean domain-driven Laravel API backed by MySQL 8's transactional guarantees, paired with a responsive React and TypeScript interface styled via Tailwind CSS for both office planners and ruggedized shop-floor tablets.
Rather than treating inventory counts as simple mutable integers, parts movement follows an immutable stock-ledger pattern. Every goods receipt, bin transfer, job-card reservation, return, or stocktake adjustment writes a signed ledger entry inside an atomic MySQL transaction, while summary quantities update reliably under row-level locks. Laravel Horizon monitors background queues on Redis to evaluate incoming odometer telemetry against maintenance rules and dispatch timely re-order alerts.
Core Capabilities
- Dual-Trigger Preventive Maintenance Engine: Combines calendar compliance intervals (6-week / 12-week DVSA safety inspections) with mileage and engine-hour thresholds fed via webhook or manual check-in.
- Digital Job Cards & Bay Scheduler: Drag-and-drop bay timelines let Birmingham workshop foremen assign technicians by certification level, track live labor timers, and mandate pass/fail inspection sign-offs.
- Bin-Level Parts & Barcode Lifecycle: Supports multi-depot warehouse bins, barcode part checkout directly onto open job cards, min/max reorder points, and automated Purchase Order (PO) drafting.
- Warranty & Core-Return Tracking: Flags repeat component replacements within configurable mileage or date windows so service advisors recover OEM claims before closing work orders.
- Vendor Estimate & Invoice Approval: Lets external repair shops submit itemized quotes against pre-authorized spend limits while enforcing variance checks before finance export.
Technical Architecture
Fleet planners and technicians interact with a TypeScript React SPA served over HTTPS and authenticated via Laravel Sanctum. Odometer feeds from external telematics providers hit dedicated Laravel webhook endpoints, queuing lightweight evaluation jobs onto Redis via Laravel Horizon. When an asset crosses a service threshold—or a driver logs a defect—Laravel creates a scheduled work order, reserves required kit parts in MySQL, and pushes real-time bay updates to the workshop dashboard.
Flow: Odometer Webhooks & Shop-Floor React Tablets → Laravel API & Policy Layer → MySQL InnoDB Transactional Ledger + S3 Inspection Archive → Redis & Laravel Horizon Workers → Proactive PM Alerts, PO Triggers & Compliance PDF Reports
Keeping heavy PDF compliance-pack generation and multi-depot stock valuations inside Horizon background workers keeps interactive bay updates instantaneous for mechanics on the floor.
Technology Stack
| Category | Technology detail |
|---|---|
| Backend Framework | Laravel (PHP 8.4) REST API orchestrating work orders, PM schedules, and compliance records |
| Workshop & Parts UI | React, TypeScript, and Tailwind CSS SPA optimized for desktop planners and shop-floor tablets |
| Relational Database | MySQL 8 with InnoDB row locking managing vehicle assets, job cards, stock ledgers, and audit trails |
| Queue & Job Supervisor | Laravel Horizon backed by Redis processing odometer triggers, supplier PO alerts, and PDF exports |
| Cache & Locking | Redis powering atomic inventory reservation locks, session state, and dashboard metric caching |
| Authentication | Laravel Sanctum issuing role-scoped tokens for internal workshops and external repair vendors |
| Document Storage | S3-compatible object storage archiving signed inspection sheets, fault photos, and vendor invoices |
| Barcode & Telemetry API | Webhooks ingesting odometer updates and barcode scanner events for instant parts checkout |
Engineering Trade-offs & Solutions
| Engineering Challenge | Solution & Trade-off |
|---|---|
| Concurrent parts checkouts corrupt naive inventory counters | Wrapped allocations inside MySQL DB::transaction blocks with pessimistic lockForUpdate() on part-bin rows and an append-only movement ledger, trading slight lock contention on hot SKUs for zero negative-stock anomalies. |
| Rigid single-depot schemas break when fleets share regional parts stores | Modeled depots, bays, and bin locations relationally from day one with inter-depot stock transfers, trading extra schema joins for accurate multi-site visibility. |
| Large quarterly DVSA compliance PDF bundles time out synchronous PHP requests | Offloaded multi-asset inspection compilation to Laravel Horizon workers delivering S3 signed links via notification, trading instant click-to-download for rock-solid worker stability. |
| Shop tablets lose Wi-Fi briefly inside steel-framed service pits | Added resilient request queuing and optimistic form state inside the React inspection checklist so technicians never lose typed defect notes during brief signal drops. |
Compliance, Audit & Access Controls
Maintenance histories represent legal roadworthiness evidence in the UK commercial transport sector. Once a lead inspector signs off a PMI sheet or defect rectification in React, Laravel freezes the underlying checklist responses, timestamps the technician's authenticated identity, and archives generated PDF certificates alongside photographic defect proof in encrypted object storage.
Laravel Policies enforce strict role separation: mechanics record labor and consume assigned parts, storekeepers authorize goods receipts and stock adjustments, and external contractors see solely their assigned purchase orders without visibility into peer vendor rates or fleet-wide cost analytics.
Performance & Workshop Scalability
Workshop dashboards need instantaneous visibility across hundreds of active vehicles, pending recalls, and low-stock triggers without running full-table scans on historical labor logs. Composite MySQL indexes cover asset service-due projections and active job-card statuses, while Redis caches depot KPI rollups with event-driven invalidation whenever a work order closes or stock crosses reorder thresholds.
Laravel Horizon scales worker concurrency separately across high-priority queues (live odometer threshold alerts and barcode lookups) and low-priority batch queues (monthly cost-per-mile rollups and ERP accounting exports), ensuring back-office reporting never slows down active bay operations.
Operational Outcomes
Bringing preventive schedules, shop-floor job cards, and spare-parts accounting into a unified Laravel and React platform transformed depot predictability:
- Proactive compliance visibility: Upcoming safety inspections and service intervals surface automatically well ahead of due dates, keeping vehicles legally roadworthy without spreadsheet chasing.
- Accurate parts accountability: Bin-locked allocations and FIFO cost ledgers eliminate phantom stock discrepancies and tie every filter or brake pad cleanly to an asset's lifetime cost profile.
- Reduced bay bottlenecks: Foremen balance technician certifications, lift availability, and confirmed parts readiness before pulling vehicles off active routes.
- Recovered warranty value: Automated repeat-failure flags ensure eligible OEM component replacements are claimed systematically rather than written off.