Well, there are two solutions for your problem:
- Create 2 headers for your website: Admin Header and Guest Header. In the landing blade page (landing.blade.php or whatever), you can check if the user is authenticated or not (Auth::check( ) returns true if the user is authenticated, false if guest) and the extend the header you want based on the if condition. I'm not sure about the syntax (but I'll check it for you) but it should be something like this:
@if(Auth::check())
extends('headers.admin.blade.php')
@else
extends('headers.guest.blade.php')
@endif
where headers is the name of the folder in /resources/views that you create, and it contains 2 blade templates: admin and guest.
The other solution is having one header, but the components are different. For example,You either want the login button, or you want the user's name. So in this case, inside the header you write:
@if(Auth::check( ))
<div> {{ Auth::user->name }} </div>
@else
<div> <button> Login </button> </div>
@endif
When you create a new Laravel project, you can check the default home page. It contains the logic for the second solution, and you can get the exact syntax from there to avoid any mistakes. You can also find it online (search for Laravel default home page).
Good luck, and tell me when it works.