inertia-laravel 3.8: forgetFlashed() and toasts that survive a deploy
inertia-laravel 3.8 adds Inertia::forgetFlashed() and stops flash data from vanishing on a 409 after a deploy, on empty responses and on Inertia::location(). Tested.
Author
Founder and maintainer of Laravel & VueJs, writing for the Laravel & VueJs team.
Anass started Laravel & VueJs as a place to share good Laravel and Vue content, grew it into a community with Facebook groups, a Telegram channel and a free jobs group, and built the project's first site as an open source Laravel, GraphQL and Nuxt CMS. Today he maintains the site (now an open source Astro project) and writes most of its guides.
Articles
inertia-laravel 3.8 adds Inertia::forgetFlashed() and stops flash data from vanishing on a 409 after a deploy, on empty responses and on Inertia::location(). Tested.
Keep Inertia SSR on and wrap browser-only Vue widgets in WhenMounted. Fallback in the first HTML, children after mount. Inertia 3.8+. 11 lab tests.
Dispatch a job 10 times in 30 seconds and only the last one runs. #[DebounceFor] for queued jobs and listeners, with maxWait. Laravel 13.6+. 20 Pest tests.
AI SDK 1.4.1 changes the OpenAI transcription default, reports failing sub-agents as failed tools and names bad API keys. Laravel 12.73 ships 12.x fixes.
Cache::rememberWithWarmth() returns the value and a warm flag, so you can send an X-Cache header or count misses. Laravel 13.15+. 15 Pest tests.
Cache::memo() reads a key once and serves it from memory for the rest of the request or job. Tags work since Laravel 13.33. 15 Pest tests.
Load below-the-fold Inertia props as the user scrolls, 600px early, with WhenVisible and Inertia::optional(). The server wiring the docs skip. 15 Pest tests.
Laravel 13.43 patches mass assignment, XSS and file validation bypasses, and adds JsonSchema::rules(), #[RetryFor] and RawTemplate. Plus Reverb 1.14 limits.
Format 1,230,000 as 1.23 million or 1.23M in PHP, before Vue ever sees the raw count. Default precision rounds 1,500 to 2 thousand. 23 Pest tests.
A username can be an email or a handle. Rule::anyOf() passes if any one ruleset fully matches, and rejects everything else. 22 Pest tests.
One call runs a closure once at a time across workers, another allows at most N, on any lock store. 25 Pest tests and 6 real processes.
Laravel 12.72 brings the signed URL and validation fixes to 12.x, AI SDK 1.4 agents survive a failing tool, and Reverb 1.13 fixes multi-app whispers.
Inertia::deepMerge() merges nested props on partial reloads, and matchOn() updates rows by id instead of duplicating them. 23 Pest tests.
Inertia::once() sends a prop the first time and the Vue client reuses it. Cover fresh(), until(), as(), shareOnce() and the auth gotcha. 19 Pest tests.
wherePivot() filters approved members, but attach() leaves approved at 0. withPivotValue() stamps the pivot on attach, create and sync. 18 Pest tests.
Hidden gem: hasOne()->latestOfMany() eager loads one order per customer instead of every order. Plus ofMany() closures, whereRelation, and the id trap. 17 Pest tests.
Hidden gem: a drafts() relation built with withAttributes() filters reads and sets status on create, make, save and factories. 15 Pest tests inside.
Laravel 13.41 fixes signed links that never expired and a nested validation bypass, plus $request->uuid(), ulid(), Uri::origin() and MigrationFailed.
A rate-limited API returns 429. What happens to your queued job? We ran a real database queue worker to see how release(), Tries, MaxExceptions, Backoff and retryUntil interact. 6 tests.
Build a Laravel MCP server with laravel/mcp: tools with schemas and validation, Sanctum tokens, per-user tools, a Vue page that issues the token, and tests. 11 tests.
Add search to a Laravel + Vue app with Scout's database engine: LIKE, prefix and Postgres full-text columns, relevance ranking and an Inertia search page. 10 tests on PostgreSQL 18.
Build an infinite feed in Laravel and Vue with Inertia::scroll() and <InfiniteScroll>: append pages, reset on filter, manual load more and chat mode. 7 Pest tests.
Inertia::defer() and the Vue <Deferred> component: send the page in 16 ms, load slow stats after, group requests, rescue failures and test it with Pest. 7 tests inside.
Hidden gem: swap sleep() for Laravel's Sleep class and your retry, backoff and polling tests run in milliseconds and assert every wait. 19 Pest tests inside.
Laravel 12.71.0 backports the signed Concurrency result envelope from 13.40, so a task's own output can no longer forge the value your app unserializes.
Hidden gem: Http::pool() sends outgoing API calls at the same time, so three 500 ms calls take 0.5 s, not 1.5 s. Plus Http::batch() and 6 gotchas we tested.
Laravel 13.40 adds Queue::whenJobRunsLongerThan(), Schedule::whenTaskRunsLongerThan(), $middleware->insertAfter(), strict request casting and a Concurrency security fix.
Inertia 3.11 and inertia-laravel 3.7 add Inertia::live(): props that refresh when a broadcast event arrives. Setup, throttling, payloads and gotchas, tested.
Hidden gem: once() runs a closure one time per object and returns the cached result after that. One line replaces private cache properties, plus 5 gotchas we tested.
Boost 2.10.4 rebuilds a conflicted rules index, drops the application-info tool and stops suggesting commands your app lacks. Laravel 12.70.2 gets Cloud errors.
Inertia 3.10 adds router.query(), method="query" on Link and Form, and query() on useForm and useHttp. inertia-laravel 3.6 makes redirects safe. Tested with Vue 3.
Hidden gem: whereAny() searches many columns in one grouped call, so a chained orWhere can't leak other teams' rows. Plus whereAll, whereNone and 4 gotchas.
Laravel 13.39 adds #[Table(key: false)], working restoreOrCreate() on relations, Rule::array()->min(), session:garbage-collect and job durations on JobAttempted.
Hidden gem: add chaperone() to a hasMany and every child gets its parent for free. 22 queries became 2 in our Laravel 13.38 lab.
Laravel 12.70.1 patches Markdown mail escaping, Inertia Laravel 3.5.2 keeps your Vary header, and AI SDK 0.11.3 adds conversation pages.
Node.js 22.23.4, 24.22.1 and 26.12.1 fix four High CVEs, including a Brotli RCE. npm audit will not catch them. How to update Vite, SSR, Sail and CI.
Hidden gem: one line turns dropped fields, typo'd attributes and N+1 queries into loud errors in development. Tested on Laravel 13.38.
PHP 8.5.12, 8.4.27, 8.3.36 and 8.2.35 fix two critical unauthenticated remote code execution bugs (CVSS 9.2). What happened, who is exposed, and how to patch Laravel servers on Docker, Forge, Vapor, Cloud and Coolify.
Hidden gem: Concurrency::run() runs closures in child PHP processes and returns all results together. Measured gains, the ~200 ms overhead, and the one-closure-per-line trap. Tested on Laravel 13.37.
Hidden gem: onWatcherCleanup() aborts the previous keystroke's request and debounce timer before a watcher re-runs, and on unmount. With watch pause()/resume(). Tested on Vue 3.5.44.
Laravel 13.38 adds PreventStaleDatabaseReads, Connection::usingWritePdo(), CountCrashesAsExceptions for listeners/mail/notifications and a route-cache-safe /up.
Hidden gem: the Context facade stamps a request id, user and route on every log line and carries them into queued jobs. Hidden values stay out of logs. Tested on Laravel 13.37.
Laravel AI SDK 1.3 types structured responses for PHPStan, caps remote files at 100 MB and hardens file IDs. Two changes can break your app on upgrade.
Hidden gem: one line in AppServiceProvider turns every forgotten with() into one batched query. 51 queries became 2 in our Laravel 13.37 test.
AI SDK 1.2.2/1.2.3 add failure events and wider classification, Wayfinder 0.1.23 builds without a database, and Laravel 12.70 backports fixes.
Laravel 13.37 adds Rule::numeric(strict: true), queue:failed --queue, multi-id queue:forget, JPEG XL in the Image API, and withWhereHas column selection with a callback.
Wayfinder 0.1.22 and Precognition 2.1.1 add first-class QUERY support, so Route::query() finally works end-to-end with typed clients and live validation.
Hidden gem: Cache::flexible serves slightly stale data instantly and refreshes after the response. No user waits on a cache miss. Tested on Laravel 13.35.
Laravel 13.36 adds Rule:: builders for almost every validation rule, DB::olap() for PlanetScale, and a flag that stops queue workers sticking to the write database.
Laravel AI SDK 1.2.1 adds Stop::when, Stop::unless and StepResult::stop() to end agent runs early. Tested stop button, token budgets and a Vue 3 + Inertia 3 UI.
Hidden gem: Laravel's defer() runs CRM syncs, webhooks and analytics after the user gets their page. No queue worker, one line. Tested on Laravel 13.35.
Laravel AI SDK 1.1 and 1.2 add Agent Skills, approval for built-in tools, Cohere chat, MoveFile and OpenAI image classification. Tested code, a Vue approval prompt and upgrade notes.
The small releases you might have missed: Inertia 2.3.29 security backports, Laravel 12.69.3 queue and S3 fixes, Inertia Laravel 3.5.1 and Boost 2.10.1 to 2.10.3.
Laravel and Vue guides for an Inertia app, grouped by area: forms, auth and Fortify, pages, data, files, queues, deployment and the Laravel AI SDK.
Three ways to export a CSV from a Laravel + Vue app: stream it with lazyById, write it in a queued job, and avoid the chunk() bug and formula injection. 7 tests.
Use Laravel signed URLs for email links, teammate invites and expiring downloads in a Laravel + Vue app, plus the proxy bug that turns valid links into 403s. 7 tests.
Use Laravel Pennant feature flags in an Inertia + Vue app: define a flag, share only the flags a page needs, gate routes and writes on the server, and test both states.
Soft deletes for a Laravel + Inertia app: keep deleted rows off the index, build a trash screen, restore from Vue with withTrashed(), and prune old rows.
Route model binding for a Laravel + Vue app: bind by id or slug, scope child models to their parent, customise missing models and render a real 404 page in Vue.
data() becomes ref, methods become functions, and an Inertia page still receives props through defineProps. Vue Router stays out of the starter kit.
Move Inertia form rules into a Laravel form request, then handle the rules every app needs: unique on update, password confirmation, PHP enums and a custom rule.
One page for Inertia 3 forms in Vue: the Form component, useForm, validation errors, resets, scroll and state, upload progress, remembered drafts and router.post.
Add Laravel Boost to a Vue and Inertia app so Cursor or Claude follows the Inertia Vue guidelines for the versions you have installed.
Install laravel/ai, prompt one agent from a controller, and show the reply on an Inertia Vue page. The provider key stays on the server.
Three ways to put Vue on a Laravel 13 app, and the one to pick when the team, the API, and the first feature are still small.
The Vue starter kit already keeps one layout alive between pages. Wrapping each page in AppLayout builds a new shell every time.
Old tutorials install Ziggy and call route(). The Vue starter kit generates Wayfinder functions. Do not install both.
The starter kit already appends the app name. Set VITE_APP_NAME, then give each page a title and one meta description.
Inertia 3 can flash a toast for one visit. The Vue starter kit already displays it. A Laravel with() call does not reach that toast.
Dispatch the job, store pending, ready, or failed, and reload that row in the Vue page until the file can be downloaded.
Routes, a login redirect, and a guest guard for a Vue app that is not Inertia. Load the user before the router runs.
Sanctum is the cookie and the API token. Passport is the OAuth server for a third party that brings its own client id.
Both packages still install. laravel new no longer offers them. The Vue starter kit already has the screens those tutorials are trying to publish.
The sort column is an allow-list. The direction is asc or desc. The database orders the rows, and the existing paginator links keep the query string.
Livewire keeps the UI in Blade. Inertia keeps it in Vue and leaves the routes in Laravel. The starter kit you pick is the decision.
The starter kit already runs Vite. The pieces people break are the @ alias, a secret in a VITE_ variable, and a public/hot file left on the server.
Public pages that need HTML on the first response use the SSR bundle and a process that stays up. An app that is entirely behind login can skip it.
A policy decides whether this user can update this post. The Vue page receives that boolean. The controller still calls authorize.
defineProps on the Inertia page is the type of the controller payload. A missing key fails the check on your machine, before a blank v-for in the browser.
A notification written to the database is a prop on the next Inertia visit. Live delivery is the Reverb guide, not a second copy of Echo.
Wayfinder writes a TypeScript function per controller action. The Inertia form takes that function. You do not add a second router.
The GitHub button is a normal link. The callback reads the Socialite user, finds or creates a local user, and logs that session in.
A resource is the JSON shape a SPA or Nuxt reads. An Inertia page can keep passing the model. Axios sees the rows on response.data.data.
router.reload can ask Laravel for one prop. Deferred props wait until after the first paint. Merge appends on those partial visits only.
Nuxt renders the public site. Laravel stays the API. The cookie rules stay in the Sanctum guide. This page is the Nuxt call.
Inertia's Form component already validates one field as the user leaves it. A precognitive request runs the rules and does not run the controller.
Laravel holds the strings. vue-i18n renders them. The instance is created once, so a locale change has to push new messages into it.
Pest hits the Laravel routes. Vitest and Vue Test Utils hit one component. The starter kit does not ship a Vitest script until you add one.
Sail runs PHP, the database, and npm in Docker. The Vue dev server is a Sail command, and HMR fails when the browser cannot see that container.
The Vue starter kit already ships Fortify screens. Install Fortify when the front end is a separate SPA, or when those actions need a new field.
A same-origin Inertia app does not need CORS. A separate SPA does, and a 419 is a different failure from a blocked response.
paginate, simplePaginate, and cursorPaginate return different JSON. The Vue page can only render the links that object actually has.
Create, edit, and delete posts from a Vue page, with validation errors, search, and pagination. Continues the official Vue starter kit.
Cookie sessions for a first-party Vue app, CSRF, stateful domains, and the token path that is only for a phone or a third party.
The production build Laravel Cloud documents, the Inertia SSR bundle, the queue, and the public/hot file that breaks a live site.
Install Reverb, broadcast a public event through the queue, and subscribe from a Vue page with useEchoPublic.
Send an image with the Inertia Form component, validate it, store it on the public disk, and show upload progress.
Page props already hold the posts. Pinia is for client state that should survive the next visit, such as a draft.
Laravel 13.35 adds Route::query() for the new HTTP QUERY method, response()->markdown(), Schedule::alwaysOnOneServer(), percentage memory limits for queue workers, array-based fake assertions and an opt-in defaults() method for Eloquent models. Before and after code for each.
Inertia 3.9 adds a background option for usePoll, a type field on the navigate event so you can refresh stale pages after the back button, and 3.9.1 ships two security hardening fixes. Here is what changed, with Vue 3 examples.
Build two everyday features with Inertia 3's new tools: a like button that updates instantly and rolls back on failure, and a debounced live search with useHttp. Laravel 13 back end, typed Vue 3 front end, tests included.
Inertia 2 stopped getting bug fixes on September 26, 2026. Here is the step-by-step upgrade we tested on a real Laravel 13 + Vue app: dependencies, the new Vite plugin, renamed APIs, Axios, SSR and a final audit.
Laravel & VueJs started as an open source CMS built with Laravel, Nova, GraphQL and Nuxt. Here is what it was, what it is now, and how you can help shape it.
Our mission is to help web developers level up with Laravel and Vue. Here is how to join the community, follow our channels, advertise, or write for the blog.
PHP versions, extensions, Node.js, databases and the packages worth knowing: a practical checklist for a modern Laravel + Vue stack, and how it compares with the stack this site started on.
Create a project with the official Vue starter kit, then add your first model, controller and typed Vue page with Inertia. Every command you need, start to finish.
What we shipped with the move to laravel-vuejs.space, and what comes next: more tutorials, a newsletter, a better jobs board and an easier way to contribute.