H
H
HeartOfProgrammer2016-05-07 20:31:19
Laravel
HeartOfProgrammer, 2016-05-07 20:31:19

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?
e6f929f48a3147b287a061fee8b0f477.png
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

1 answer(s)
A
Andrzej Wielski, 2016-05-07
@HeartOfProgrammer

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 question

Ask a Question

731 491 924 answers to any question