Randy_Johnson's avatar

Laravel Auth Pages

Whats going on with laravel auth pages, why are they no longer wrapped with a layout?

1 like
4 replies
imranbru's avatar

They actually are still wrapped, but assuming you're using a modern starter kit like Breeze or Jetstream, they default to using the <x-guest-layout> component instead of your primary app layout. It's designed that way so your login and register screens get a clean slate (usually a centered card) without your main authenticated navigation and sidebars bleeding in.

If you want them to share your global layout, just pop open your auth views (like resources/views/auth/login.blade.php) and swap out <x-guest-layout> for <x-app-layout>.

1 like
Randy_Johnson's avatar

I'm using Inertia React and it looks like this

1 like
Randy_Johnson's avatar

Okay, its no big deal, but it just affects my flow.

2 likes

Please or to participate in this conversation.