copy and paste this google map to your website or blog!
Press copy button and paste into your blog or website.
(Please switch to 'HTML' mode when posting into your blog. Examples: WordPress Example, Blogger Example)
Inertia. js - The Modern Monolith Inertia js lets you quickly build modern single-page React, Vue and Svelte apps using classic server-side routing and controllers
How it works - Inertia. js At its core, Inertia is essentially a client-side routing library It allows you to make page visits without forcing a full page reload This is done using the <Link> component, a light-weight wrapper around a normal anchor link
Server-side setup - Inertia. js The first step when installing Inertia is to configure your server-side framework Inertia maintains an official server-side adapter for Laravel For other frameworks, please see the community adapters Inertia is fine-tuned for Laravel, so the documentation examples on this website utilize Laravel For examples of using Inertia with other
Who is Inertia. js for? Inertia empowers you to build a modern, JavaScript-based single-page application without the tiresome complexity Inertia works just like a classic server-side rendered application You create controllers, you get data from the database (via your ORM), and you render views
Forms - Inertia. js Using Inertia to submit forms works great for the vast majority of situations; however, in the event that you need more control over the form submission, you're free to make plain XHR or fetch requests instead using the library of your choice
Pages - Inertia. js Inertia pages are simply JavaScript components If you have ever written a Vue, React, or Svelte component, you will feel right at home As you can see in the example below, pages receive data from your application's controllers as props
Routing - Inertia. js When using Inertia, all of your application's routes are defined server-side This means that you don't need Vue Router or React Router Instead, you can simply define Laravel routes and return Inertia responses from those routes
Server-side rendering (SSR) - Inertia. js To run the SSR server on Forge, you should create a new daemon that runs php artisan inertia:start-ssr from the root of your app Or, you may utilize the built-in Inertia integration from your Forge application's management dashboard
Demo application - Inertia. js We've setup a demo app for Inertia js called Ping CRM This application is built using Laravel and Vue You can find the source code on GitHub
The protocol - Inertia. js The very first request to an Inertia app is just a regular, full-page browser request, with no special Inertia headers or data For these requests, the server returns a full HTML document This HTML response includes the site assets (CSS, JavaScript) as well as a root <div> in the page's body