Adonis & Inertia - EP3: Creating Layouts and Defining Default Layouts

Опубликовано: 02 Ноябрь 2024
на канале: Adocasts
1,880
21

In this lesson, we'll learn how to create and define layouts within our AdonisJS and InertiaJS app. We'll also learn how we can easily add support for default layouts as well.

👍 If You Enjoy This Video, Consider Hitting The Like Button!

🥁 Subscribe To Stay Notified For New Videos: https://www.youtube.com/adocasts?sub_...

📕 Read & View on Adocasts: https://adocasts.com/lessons/creating...

🧾 Find The Code For This Lesson Here: https://github.com/adocasts/adonisjs-...

With most applications, it makes sense to have at least one layout that we can use across all our pages to easily apply things like navbars, authentication states, and the like. They also help keep things consistent when traveling from page to page. Thankfully InertiaJS supports layouts out of the box! In this lesson, we'll learn how we can create and use layouts with InertiaJS. Then, we'll also learn how we can alter the resolve function that grabs our page component for InertiaJS to define a default layout throughout our application. Lastly, we'll discuss how to define a layout when using a Vue 3 setup script.

InertiaJS-AdonisJS Adapter Package: https://github.com/eidellev/inertiajs...

🎬 Check Out More Videos Here:

The Flow Between Adonis and Inertia:    • Adonis & Inertia - EP2: Understanding...  
Adding InertiaJS to an AdonisJS App:    • Adonis & Inertia - EP1.0: How to add ...  
How To Add A Simple AdonisJS Package:    • How To Make A Simple AdonisJS Package  
AdonisJS Auth in 15 Minutes:    • AdonisJS Authentication in 15 Minutes  
Let's Learn AdonisJS 5:    • Let's Learn Adonis 5  

🕑 Chapters



-------------------------Socials--------------------------

🕸️Website: https://adocasts.com

🐦Twitter:   / adocasts  

👍 GitHub: https://github.com/adocasts