Using AI Coding Agents on a Laravel Codebase
AI coding in Laravel that holds up in review: guideline files, skills and MCP for context, well-sized tasks, tests as guardrails and a review checklist.
Practical guides from our team on building SaaS products with Laravel. We write about multi-tenancy, architecture, authentication and the frontend choices that come with them.
60 articles
AI & developer toolingBy Annu Gupta··8 min read
AI coding in Laravel that holds up in review: guideline files, skills and MCP for context, well-sized tasks, tests as guardrails and a review checklist.
Multi-tenancyBy ERAG··6 min read
How to delete a tenant in Laravel safely: what stancl/tenancy removes, what it leaves behind, the soft delete trap, and a deletion flow you can retry.
SaaS & operationsBy ERAG··7 min read
Deploy a Laravel SaaS step by step: server needs, wildcard DNS and TLS, a deploy script with tenant migrations, queue workers with Supervisor and the scheduler.
SaaS & operationsBy ERAG··8 min read
A practical SaaS pricing guide for developers: value metrics, pricing models, tiers, trials vs freemium, annual plans, and how to turn plans into code.
Inertia & frontendsBy Annu Gupta··7 min read
Show an Inertia flash message as a toast after a Laravel redirect: Inertia::flash(), the flash event, typed payloads and Vue, React and Svelte examples.
Inertia & frontendsBy ERAG··8 min read
A practical guide to the Inertia Form component: field names, errors, slot props, reset and dirty state, file uploads, events and when to use useForm instead.
Inertia & frontendsBy Annu Gupta··8 min read
Inertia v3 for Laravel explained: the new Vite plugin, useHttp, optimistic updates, instant visits, layout props, breaking changes and an upgrade checklist.
Inertia & frontendsBy Annu Gupta··7 min read
How Inertia layouts work: persistent, nested and default layouts, plus layout props with setLayoutProps, with Vue, React and Svelte examples for Laravel apps.
AI & developer toolingBy ERAG··7 min read
Laravel Boost gives AI coding agents real context on your app: what boost:install writes, guidelines, skills, the MCP tools and how to keep it all up to date.
Architecture & code qualityBy ERAG··7 min read
A practical spatie laravel data guide: build typed Data objects, validate requests, map snake_case fields, handle relations and send clean props to Inertia.
Authentication & securityBy ERAG··6 min read
Laravel email verification explained: MustVerifyEmail, signed links, the verified middleware, Fortify routes, a resend page and handling email changes.
Authentication & securityBy ERAG··7 min read
A Laravel Fortify tutorial for Inertia apps: install Fortify, pick features, render Inertia pages and wire up login, registration and password reset.
SaaS & operationsBy ERAG··7 min read
Set up Laravel Herd subdomains for a multi-tenant app: .test domains, herd link and herd secure, APP_URL and SESSION_DOMAIN, alternatives and common pitfalls.
Users & permissionsBy ERAG··8 min read
Handle Laravel Inertia permissions on the frontend: define menu items with a permission, filter them on the server and render only what each user can open.
LocalizationBy Annu Gupta··7 min read
How to handle Laravel Inertia translations: share PHP lang files with Vue, React or Svelte, set the locale per user, translate validation and plurals.
Architecture & code qualityBy ERAG··6 min read
Set up Larastan and Pint in a Laravel project: code style presets, PHPStan levels, baselines, Laravel-specific rules and a simple local and CI workflow.
Authentication & securityBy Annu Gupta··8 min read
A Laravel login throttle guide: how Fortify limits sign-ins, choosing a throttle key, layered limits, friendly errors for Inertia and other auth routes.
SaaS & operationsBy ERAG··7 min read
A Laravel database backup strategy for database-per-tenant SaaS apps: what to back up, dumping every tenant, retention, and restoring a single customer.
Multi-tenancyBy ERAG··7 min read
A Laravel multi-tenancy subdomain guide for stancl/tenancy: identification middleware, central domains, tenant routes, sessions, wildcard DNS and links.
SaaS & operationsBy Annu Gupta··8 min read
Laravel maintenance mode in a multi-tenant SaaS: php artisan down options, bypass cookies on subdomains, and pausing all workspaces or a single tenant.
Multi-tenancyBy ERAG··8 min read
How Laravel tenancy queue jobs keep their tenant: the stancl queue bootstrapper, a central jobs table, dispatching per tenant, URLs, locks and scheduling.
Authentication & securityBy Annu Gupta··8 min read
Set up Laravel multiple guards for admins and customers: auth.php config, admin login, route middleware, redirects, logout, Inertia props and Fortify.
Authentication & securityBy ERAG··8 min read
How Laravel passkeys work with WebAuthn and Fortify: the register and login flows, relying party and allowed origins for subdomains, and password fallback.
Authentication & securityBy ERAG··7 min read
Laravel password rules explained: Password::defaults(), length vs complexity, breached-password checks, passwordrules hints and password confirmation.
Users & permissionsBy ERAG··7 min read
Build a Laravel permissions seeder driven by config files: file layout, idempotent seeding, role defaults, pruning old permissions, tenants and safe deploys.
Users & permissionsBy ERAG··7 min read
Define Laravel default roles in an enum, seed them safely and block renames and deletes on the server with a policy, a model guard and clear UI badges.
Inertia & frontendsBy Annu Gupta··7 min read
Laravel React Inertia guide for SaaS apps: typed page components, static layout props, withApp providers, useForm, ref-as-prop modals and the React Compiler.
Architecture & code qualityBy Annu Gupta··7 min read
An honest look at the Laravel repository pattern: when a repository earns its place, when it only adds noise, and lighter options like scopes and builders.
Users & permissionsBy ERAG··7 min read
A practical Laravel Spatie permission guide: roles, permissions and guards, assigning and checking them, super admins, caching, seeding and Inertia UI checks.
SaaS & operationsBy ERAG··7 min read
Should you start from a Laravel SaaS boilerplate or build from scratch? The work involved, hidden costs on both sides and a checklist to help you decide.
SaaS & operationsBy ERAG··8 min read
A SaaS launch checklist for Laravel apps: product, security, billing, legal pages, operations, monitoring and support, with links to detailed guides for each.
Authentication & securityBy Annu Gupta··8 min read
A Laravel SaaS security checklist: authentication, sessions, tenant isolation, authorization, data exposure, secrets, uploads, dependencies and monitoring.
SaaS & operationsBy ERAG··7 min read
What a Laravel SaaS starter kit should include, how to compare kits and what to check before you buy: multi-tenancy, auth, permissions, license and updates.
SaaS & operationsBy ERAG··8 min read
Add Laravel Stripe subscription billing to a multi-tenant SaaS with Cashier: bill the tenant, Checkout, webhooks, plan gating, the billing portal and tax.
Architecture & code qualityBy ERAG··7 min read
Laravel Pest testing for SaaS apps: what to test, setup, feature tests, permissions, Inertia pages, datasets, fakes, architecture tests and a fast suite.
Architecture & code qualityBy ERAG··8 min read
The Laravel service layer explained: what belongs in a service class, how to use transactions, when to send emails and jobs, and mistakes to avoid.
Users & permissionsBy ERAG··7 min read
Build a Laravel super admin role with Spatie: Gate::before or Gate::after, checks the bypass misses, the first super admin and how to stop privilege escalation.
Inertia & frontendsBy Annu Gupta··7 min read
Laravel Svelte 5 tutorial with Inertia v3: runes in pages, module-script layout props, the reactive page object, snippets in forms and shared .svelte.ts state.
Multi-tenancyBy ERAG··7 min read
How Laravel tenancy cache and file storage stay separate per tenant: cache tags, supported stores, calls that skip scoping, tenant disks, S3 and public URLs.
Multi-tenancyBy ERAG··7 min read
Add a Laravel tenant custom domain the safe way: storing and verifying domains, customer DNS, TLS certificates on demand, sessions, passkeys and links.
Multi-tenancyBy ERAG··8 min read
Laravel tenant migrations and seeders with stancl/tenancy: central vs tenant folders, tenants:migrate, safe deployments, idempotent seeders and fixing failures.
Architecture & code qualityBy ERAG··7 min read
How to write Laravel thin controllers: the four jobs a controller has, Form Requests, authorization attributes, clean responses and a fat controller refactor.
Authentication & securityBy ERAG··8 min read
Laravel two factor authentication with Fortify: how TOTP works, the enable, QR code and confirm flow, recovery codes, the login challenge and security tips.
Architecture & code qualityBy ERAG··8 min read
Use the Laravel TypeScript transformer to turn PHP classes, enums and laravel-data objects into TypeScript types, with setup, attributes, writers and CI tips.
Users & permissionsBy ERAG··7 min read
Build a secure Laravel user invitation flow with temporary signed URLs, the signed middleware, queued emails, expiring single-use links and an accept page.
LocalizationBy ERAG··8 min read
Store a Laravel user locale, validate and save the choice, apply it on every request and send emails and queued notifications in each user's language.
LocalizationBy ERAG··7 min read
Laravel validation messages translation explained: the lookup order, lang files for every locale, field names, custom messages, arrays and custom rules.
Inertia & frontendsBy ERAG··7 min read
A Laravel Vue Inertia walkthrough for SaaS dashboards: typed props, layout breadcrumbs, a debounced search, useForm, modal refs and permission checks in Vue 3.
Architecture & code qualityBy Annu Gupta··7 min read
How Laravel Wayfinder turns your routes and controllers into typed TypeScript functions: setup, the Vite plugin, .url(), parameters, forms and practical tips.
Architecture & code qualityBy ERAG··7 min read
A practical guide to Laravel modular architecture for SaaS: feature modules, service providers that load routes, one-way dependencies and adding a module.
Multi-tenancyBy ERAG··7 min read
Single database, schema or database per tenant? How database-per-tenant multi-tenancy works in Laravel with stancl/tenancy, plus the pitfalls to avoid.
LocalizationBy Annu Gupta··8 min read
Plan a multilingual Laravel app: what to translate, URL strategy and hreflang SEO, database content, dates and currencies, right-to-left text and workflow.
Inertia & frontendsBy Annu Gupta··6 min read
shadcn Laravel guide: set up shadcn/ui, shadcn-vue or shadcn-svelte in an Inertia app, configure components.json, theme with Tailwind v4 and wrap form fields.
Multi-tenancyBy Annu Gupta··8 min read
Single database vs multi database tenancy in Laravel: the decision factors, costs, scaling, cross-tenant reporting and how to move between models later.
Multi-tenancyBy ERAG··7 min read
A hands-on stancl tenancy tutorial: install stancl/tenancy 3, create a Tenant model, add tenant migrations and routes, and create your first tenant database.
SaaS & operationsBy Annu Gupta··8 min read
Stripe vs Paddle vs Lemon Squeezy for a Laravel SaaS: merchant of record vs payment processor, who handles sales tax and VAT, and the Laravel package for each.
SaaS & operationsBy ERAG··7 min read
How to suspend a SaaS account the right way: status fields, blocking middleware, what stays reachable, background jobs, customer messages and reactivation.
Multi-tenancyBy Annu Gupta··7 min read
How to test Laravel tenancy with Pest: test database setup, creating tenants, isolation tests, tenant domains, fakes, cache and files, and faster test runs.
AI & developer toolingBy Annu Gupta··7 min read
A git upstream merge workflow for starter kits: set up origin and upstream, preview changes, merge on a branch, resolve conflicts and run the post-merge steps.
Inertia & frontendsBy Annu Gupta··6 min read
How to choose between Vue, React and Svelte for a Laravel SaaS built with Inertia: what really changes, an honest comparison and a simple decision guide.