Delivered remotely for a business based in Phoenix, United States. Names withheld by agreement.
Project Overview
Enterprises running safety-critical operations across dozens of facilities—manufacturing plants, logistics hubs, clinics, and field depots—carry strict statutory duties around physical equipment. Pressure vessels, lifting gear, fire-suppression hardware, and calibration instruments must undergo scheduled inspections, component replacements, and documented sign-offs. When proof lives inside personal drives and regional spreadsheets, corporate safety teams cannot verify readiness until an auditor arrives at the gate.
Out of Phoenix, we designed and delivered a multi-tenant compliance SaaS built with Laravel, MySQL, Redis, Bootstrap, and AWS S3. The system unifies hierarchical asset tracking, versioned inspection forms, automated reminder cadences, corrective remediation workflows, and tamper-evident evidence storage inside one auditable cloud workspace.
Compliance & Operational Friction
Managing physical compliance across dispersed teams breaks down in four predictable ways:
- Invisible expiration blind spots: Component shelf lives and calibration intervals vary wildly across sites; without centralized tracking, critical gear quietly lapses past statutory deadlines.
- Unverifiable historical state: Proving an asset was compliant on a past incident date is nearly impossible when spreadsheets overwrite prior statuses in place.
- Noisy, ignored notifications: Firing individual alerts for every upcoming expiry buries urgent failures under routine administrative clutter, training staff to ignore automated emails.
- Disorganized external audits: Gathering signed certificates, technician photos, and remediation closure logs for visiting regulators drains days of manual coordination.
Architectural Strategy
We chose a shared-schema multi-tenant design in Laravel and MySQL rather than provisioning isolated databases per customer. Strict organization scoping at the model and policy layers keeps database migrations clean while allowing rapid onboarding of new enterprise tenants.
All heavy asynchronous work—nightly compliance scans, paced digest emails, and multi-site PDF binder assembly—runs off the HTTP path via Redis queues on AWS. Meanwhile, SQLite serves dual duty as a zero-dependency runner for fast CI verification and as a portable snapshot container for offline regulatory archives.
Core Capabilities
- Multi-Level Location & Asset Tree: Maps tenants down through regions, buildings, zones, and parent-child equipment assemblies with serial numbers and commissioning histories.
- Immutable Checklist Revisions: Technicians complete mobile-friendly inspections capturing pass/fail criteria, numeric readings, mandatory photos, and digital signatures bound to exact template versions.
- Staged Escalation & Digest Engine: Configurable lead-time rules notify facility leads ahead of due dates and escalate unresolved expirations to regional safety directors.
- Remediation & Lockout Workflows: Failing checkpoints trigger corrective tasks with owner assignments, blocking compliant status restoration until verified proof closes the loop.
- Encrypted Evidence Repository: Calibration certificates and repair records live inside versioned AWS S3 storage with integrity hashes and expiring download links.
- Scoped Inspector Portals: External auditors receive time-limited, read-only views scoped strictly to requested sites or equipment categories without exposing broader tenant data.
Technical Architecture
User interactions in the Bootstrap web portal and REST API pass through Laravel middleware that resolves tenant context and enforces role-based policies before touching MySQL. Background schedulers chunk large asset tables into Redis queue batches so renewal sweeps and document exports scale smoothly without blocking interactive requests.
Flow: Tenant Browser (Bootstrap UI / API) → Laravel Tenant Scoping & Policy Layer → MySQL Asset & Audit Store → Redis Chunked Queues & Digest Workers → AWS S3 Encrypted Evidence Vault (+ SQLite Snapshot Exports)
Each evidence upload computes a cryptographic checksum stored alongside the MySQL metadata row, while outbound report binders compile asynchronously in worker memory and stream directly into private S3 buckets.
Technology Stack
| Category | Technology detail |
|---|---|
| Application & API Core | Laravel on PHP 8 enforcing tenant-scoped business rules and authorization gates |
| Tenant & Asset Database | MySQL housing organization trees, equipment registers, inspections, and audit history |
| CI & Snapshot Engine | SQLite running isolated integration tests and portable offline compliance bundles |
| Queues & Cache Layer | Redis driving scheduled reminder sweeps, digest batching, and report generation |
| Frontend Workspace | Bootstrap responsive grids, filterable equipment registers, and mobile inspection forms |
| Evidence Storage | AWS S3 buckets with encryption at rest, versioning, and time-limited signed URLs |
| Cloud Hosting | AWS infrastructure providing managed compute, networking, and automated backups |
| Export & Binder Pipeline | Queued PDF compliance packets and CSV register builders executing off the web thread |
| Access & Audit Logging | Role-tiered permissions, scoped guest links, and append-only entity change tracking |
Design Decisions & Trade-offs
| Compliance Risk | Architectural Resolution |
|---|---|
| Preventing checklist edits from corrupting prior signed inspection logs | Snapshotted versioned checklist definitions directly onto each completed inspection record; increased storage slightly while guaranteeing historical audit accuracy. |
| Running nightly compliance checks across large estates without memory spikes | Processed MySQL asset queries in fixed cursor chunks dispatched to Redis workers; traded single-transaction simplicity for predictable memory and database load. |
| Keeping dense asset tables usable on both office desktops and field tablets | Built the interface with Bootstrap server-rendered grids and responsive form controls; avoided heavy SPA state overhead in favor of dependable speed on low-powered devices. |
| Securing sensitive certificates without making file downloads cumbersome | Stored all artifacts in private AWS S3 buckets served only through short-lived signed URLs after policy checks; eliminated public exposure while keeping downloads one click away. |
Security & Auditability
Shared multi-tenant infrastructure demands rigorous boundary defense. Global Eloquent scopes pair with explicit Laravel policies and automated cross-tenant test assertions so unauthorized ID enumeration fails uniformly across web routes, API endpoints, and background export jobs.
Every state transition—asset onboarding, inspection sign-off, corrective closure, and certificate replacement—appends an immutable audit entry capturing user identity, timestamp, and field diffs. Outbound notification logs and job execution records provide operators full visibility when verifying whether an alert actually fired prior to a deadline.
Performance & Reliability
As customer asset inventories grow over years of continuous operation, server-side pagination, composite tenant-and-due-date MySQL indexes, and Redis dashboard aggregate caches keep equipment registers responsive.
Long-running tasks such as multi-hundred-page PDF compliance binders and bulk CSV exports execute asynchronously on Redis workers, writing outputs to AWS S3 rather than holding web worker threads open. Scheduled mail runs apply deliberate rate pacing to keep email reputation healthy and avoid provider throttling during peak renewal periods.
Operational Outcomes
Consolidating distributed asset oversight onto a single Laravel, MySQL, Redis, and AWS S3 platform transformed compliance from reactive firefighting into repeatable governance:
- Unified estate visibility: Safety leaders evaluate readiness, overdue assets, and open corrective tickets across every regional site in one view.
- Proactive renewal discipline: Automated digest alerts surface expiring components early enough to schedule maintenance before statutory windows lapse.
- Streamlined regulatory inspections: Auditors review scoped portal views or download verified PDF evidence packets in moments rather than waiting on manual spreadsheet gathering.
- Defensible historical records: Versioned checklists, checksummed S3 artifacts, and append-only audit logs prove compliance posture accurately long after an inspection closes.