LinkedInLearning / laravel-9-essential-training-3007804

This repo is for the Linkedin Learning course: Laravel 9.0 Essential Training
Other
77 stars 70 forks source link

Breeze authentication links not showing #1

Open joefrancois opened 2 years ago

joefrancois commented 2 years ago

Hello,

I tried to follow the course and was doing pretty well until it was time to install breeze to provide authentication. using HTTP://localhost/register I can register and login, however, the links never showed. I looked closely at welcome.blade.php and couldn't find anything out of the ordinary. I had to move on to another tutorial, but I just thought you might want to know.

Regards,

joefrancois commented 2 years ago

Hello,

I had another look at the code. It seems if I remove the hidden from the class it works

@if (Route::has('login'))
                <div class="hidden fixed top-0 right-0 px-6 py-4 sm:block">  // I removed the hidden
                    @auth
                        <a href="{{ url('/dashboard') }}" class="text-sm text-gray-700 dark:text-gray-500 underline">Dashboard</a>
                    @else
                        <a href="{{ route('login') }}" class="text-sm text-gray-700 dark:text-gray-500 underline">Log in</a>

                        @if (Route::has('register'))
                            <a href="{{ route('register') }}" class="ml-4 text-sm text-gray-700 dark:text-gray-500 underline">Register</a>
                        @endif
                    @endauth
                </div>
joefrancois commented 2 years ago

Some more news, it seem that I have some browser issues