Why I Built AutReply: One Inbox and an AI Assistant for WhatsApp, Instagram and Messenger
The problem I kept seeing, what AutReply does, and the engineering decisions behind its multi-tenant inbox and grounded AI assistant.
11 articles by Mohamed Said on Laravel, PHP, databases, APIs and infrastructure, written from production work.
The problem I kept seeing, what AutReply does, and the engineering decisions behind its multi-tenant inbox and grounded AI assistant.
A practical deep-dive into building multi-tenant SaaS with Laravel — covering tenant resolution middleware, automatic Eloquent scoping, connection switching, and safe singleton isolation without a third-party package.
Row-level multi-tenancy keeps your schema simple but demands discipline. Learn how to enforce tenant isolation with a global scope, middleware, and Pest tests that catch leakage before it ships.
A practical deep-dive into building a multi-tenant SaaS on Laravel and Filament v3/v4: tenant resolution, automatic query scoping, per-tenant Filament panels, and queue isolation — without a third-party tenancy package.
Beyond database scoping, true multi-tenant isolation means queues, file storage, and notifications all respect tenant context. Here is how to wire that up cleanly in Laravel without global state leaks.
Beyond basic query scoping, production multi-tenant SaaS demands isolated queues, per-tenant notification channels, and segregated file storage. This guide tackles all three with concrete Laravel + Filament patterns.
Learn how to scope every Filament v3 resource query, form field, and action to the authenticated tenant without leaking cross-tenant data — using a single, testable TenantScope trait.
Scoped container bindings let you resolve a fresh tenant context per request without global state leakage. Learn how to wire tenant resolution, scope Eloquent models, and keep Filament panels clean across tenants.
Go beyond basic tenant scoping. Learn how to swap Filament panel colours, navigation, and config values per tenant at runtime without polluting the service container or leaking state between requests.
Tell me what you’re building. I reply within two working days.