Please enable JavaScript.
Coggle requires JavaScript to display documents.
INERTIAJS - Coggle Diagram
INERTIAJS
-
7. Client-side setup
-
-
-
-
-
-
-
-
return Inertia::render('Home', ['test' => 'working']);
-
-
-
-
-
-
-
Persistent layouts
While it's simple to implement layouts as children of the page components, it does force the layout instance to be destroyed and recreated between visits. This means you cannot have persistent layout state when navigating between pages.
Default layouts
This will automatically set the page layout to Layout if a layout has not already been set for that page. If needed, you can disable the default layout on specific pages by setting the layout to null.
You can even go a step further and conditionally set the default page layout based on the page name, which is available to the resolve() method. For example, maybe you don't want the default layout applied to your public pages.
-
-