Answer the question
In order to leave comments, you need to log in
How to hide "Register" and "Login" links after user registration or after user login?
I am using laravel 5.1. Authentication and forms "Registration" and "Login". When registering a new user, it redirects to the main page, the same story with the entrance. And on the main page these links "Registration" and "Login" remain, how can I remove them through laravel?
PS Such is the question, through which tool in laravel can this be fixed?
Answer the question
In order to leave comments, you need to log in
In the template, use the blade to make a condition
@if(Auth::check())
Профиль, Выход
@else
Регистрация, вход
@endif
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question