Build Modern Laravel Apps Using Inertia.js
Inertia.js is an incredible tool that glues a server-side framework, like Laravel, to a client-side framework, like Vue. With Inertia, you can continue using server-side routing, and controllers, and authentication, and validation. With Inertia, you don't need to learn how to build an API, and you definitely don't need to use OAuth. Instead, relax and continue creating apps the way you traditionally would.
I really think you're going to enjoy Inertia as much as I do. In fact, Laracasts itself uses Inertia under the hood; I wouldn't have it any other way.
Series episodes
The Basics (18)
What is Inertia.js
5m 36sDiscover what Inertia.js is and isn’t in this quick intro—get clear insights to help you build modern, seamless single-page apps with ease.
Install and Configure Inertia
6m 23sInstall and configure Inertia with Laravel and Vue—set up adapters, create your layout, and compile assets for a seamless modern app build.
Pages
5m 49sCreate your first Inertia Page component—build dynamic, client-side views like Blade templates for a smoother, modern Laravel app experience.
Inertia Links
7m 14sLearn how to create seamless page links with Inertia's Link component—no full refresh, just smooth AJAX navigation for faster, modern web apps.
Progress Indicators
1m 57sAdd Inertia’s progress indicator to show a sleek loading bar during long server requests, enhancing user feedback and improving your app’s experience.
Perform Non-GET Requests
6m 44sLearn how to use Inertia’s Link component to perform non-GET requests like POST, enabling actions such as logging out with seamless, interactive buttons.
Preserve the Scroll Position
4m 4sLearn how to preserve scroll position in Inertia.js using the preserve-scroll attribute, keeping user context intact during page updates for a smoother experience.
Active Links
6m 45sLearn how to highlight active navigation links using Inertia’s $page.url and $page.component, improving user experience with clear visual feedback.
Layout Files
7m 22sLearn how to create layout files to centralize consistent UI elements like navigation, simplifying your app and improving user experience across pages.
Shared Data
6m 48sDiscover how to easily share data across components using Inertia’s friendly approach, streamlining your app’s state management and improving development flow.
Global Component Registration
4m 28sLearn how to register global components in your app to simplify usage—like making Inertia’s Link available everywhere without repetitive imports.
Persistent Layouts
3m 56sLearn how to create persistent layouts in your app to keep state alive across pages—perfect for features like uninterrupted podcast playback while browsing.
Default Layouts
2m 35sLearn how to set up default layouts in your app to avoid manually importing and assigning layouts for every page, streamlining your development process.
Code Splitting and Dynamic Imports
5m 16sDiscover how dynamic imports enable code splitting to load JavaScript asynchronously, improving your app’s performance as users navigate your site.
Dynamic Title and Meta Tags
9m 16sMake your HTML head dynamic with Inertia's Head component - set titles and meta tags easily for better SEO and UX.
An Important SPA Security Concern
6m 53sLearn key SPA security tips to protect private data when fetching with AJAX. Ensure your app safely handles Eloquent data without exposing sensitive info.
Pagination
13m 8sEasily add pagination to your Laravel app. Learn how to display user-friendly pagination links below your users table for smooth navigation and better UX.
Filtering, State, and Query Strings
13m 36sImplement real-time search filtering with query strings and state. Learn to refresh user tables instantly as you type for a smooth, dynamic experience.
Forms (3)
Inertia Forms 101
10m 47sMaster form handling with Vue, Inertia, and Laravel. Learn to asynchronously submit user creation forms for a powerful, flexible, and familiar experience.
Display Failed Validation Messages
5m 32sLearn how to display clear, red validation messages below inputs on failure. Improve your form UX by handling errors gracefully and engaging users effectively.
Inertia's Form Helper
7m 23sPrevent multiple form submissions and simplify handling with Inertia’s form helper. Learn how to disable buttons and streamline form interactions easily.
Authentication and Authorization (2)
Authentication With Inertia
17mAuthenticate seamlessly with Inertia and Laravel—no tokens or OAuth needed. Learn familiar, simple form submission for smooth, server-side authentication.
Authorization Tips
9m 3sLearn smart authorization techniques to avoid duplicating logic. Pass authorization from controllers as props for cleaner, efficient server and client code.




