Annu Gupta
Annu Gupta writes for the SaaS Laravel blog, published by ERAG.
Annu's articles focus on the frontend side of a Laravel SaaS: Inertia with Vue, React and Svelte, forms, layouts and translations. They also cover authentication and security, and the tooling around a Laravel project.
Articles by Annu Gupta
20 articles on the SaaS Laravel blog, newest first.
AI & developer tooling·
Using AI Coding Agents on a Laravel CodebaseAI 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.
Inertia & frontends·
Flash Messages and Toasts with InertiaShow 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 & frontends·
Inertia.js v3: What's New for LaravelInertia v3 for Laravel explained: the new Vite plugin, useHttp, optimistic updates, instant visits, layout props, breaking changes and an upgrade checklist.
Inertia & frontends·
Persistent Layouts in InertiaHow Inertia layouts work: persistent, nested and default layouts, plus layout props with setLayoutProps, with Vue, React and Svelte examples for Laravel apps.
Localization·
Laravel Translations in Inertia AppsHow to handle Laravel Inertia translations: share PHP lang files with Vue, React or Svelte, set the locale per user, translate validation and plurals.
Authentication & security·
Rate Limiting Login Attempts in LaravelA Laravel login throttle guide: how Fortify limits sign-ins, choosing a throttle key, layered limits, friendly errors for Inertia and other auth routes.
SaaS & operations·
Maintenance Mode for Multi-Tenant Laravel AppsLaravel maintenance mode in a multi-tenant SaaS: php artisan down options, bypass cookies on subdomains, and pausing all workspaces or a single tenant.
Authentication & security·
Laravel Multiple Guards for Admins and CustomersSet up Laravel multiple guards for admins and customers: auth.php config, admin login, route middleware, redirects, logout, Inertia props and Fortify.
Inertia & frontends·
Building a Laravel SaaS with React and InertiaLaravel 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 quality·
Repositories in Laravel: When They HelpAn 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.
Authentication & security·
Laravel SaaS Security ChecklistA Laravel SaaS security checklist: authentication, sessions, tenant isolation, authorization, data exposure, secrets, uploads, dependencies and monitoring.
Inertia & frontends·
Laravel and Svelte 5 with InertiaLaravel 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.
Architecture & code quality·
Typed Routes with Laravel WayfinderHow Laravel Wayfinder turns your routes and controllers into typed TypeScript functions: setup, the Vite plugin, .url(), parameters, forms and practical tips.
Localization·
Building a Multilingual Laravel App for SaaSPlan a multilingual Laravel app: what to translate, URL strategy and hreflang SEO, database content, dates and currencies, right-to-left text and workflow.
Inertia & frontends·
shadcn for Laravel: Vue, React and Svelteshadcn 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-tenancy·
Single vs Multi-Database Tenancy in LaravelSingle database vs multi database tenancy in Laravel: the decision factors, costs, scaling, cross-tenant reporting and how to move between models later.
SaaS & operations·
Stripe vs Paddle vs Lemon Squeezy for LaravelStripe 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.
Multi-tenancy·
Testing Multi-Tenant Laravel Apps with PestHow 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 tooling·
Keeping a Starter Kit Up to Date with GitA 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 & frontends·
Vue, React or Svelte for Your Laravel SaaS?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.