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.
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.
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.
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.
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.
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: 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.
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.
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.
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.
Hidden gem: one line turns dropped fields, typo'd attributes and N+1 queries into loud errors in development. Tested on Laravel 13.38.
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.
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.
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 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.
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.
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.
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.
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.
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.
Wayfinder writes a TypeScript function per controller action. The Inertia form takes that function. You do not add a second router.
router.reload can ask Laravel for one prop. Deferred props wait until after the first paint. Merge appends on those partial visits only.
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.
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.
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.
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.
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.
Newsletter
One short email with new guides, release notes worth reading and hand-picked community links. No spam, unsubscribe any time.