Use Genesis layouts
mainGenesis provides three main layouts located in resources/views/components/layouts. You can use them as Blade components:
- App Layout (
x-layouts.app): For authenticated application pages. - Marketing Layout (
x-layouts.marketing): For public-facing pages like the homepage or blog. - Main Layout (
x-layouts.main): The base HTML structure. Bothappandmarketinginherit from this. Use it directly for pages that need neither header nor footer (e.g., auth pages).
Example usage:
<x-layouts.app>
<!-- content here... -->
</x-layouts.app><!-- App Layout -->
<x-layouts.app>
<!-- content here... -->
</x-layouts.app>
<!-- Marketing Layout -->
<x-layouts.marketing>
<!-- content here... -->
</x-layouts.marketing>
<!-- Main Layout -->
<x-layouts.main>
<!-- content here... -->
</x-layouts.main>