M
M
MrChen2016-07-22 12:36:48
Laravel
MrChen, 2016-07-22 12:36:48

How to properly build authentication on Laravel?

Hello! I am using Laravel. My goal is to make a personal user account. I need to do the same so that other users can view each other's profiles. I do not really understand how to implement user verification (that is, whether this person who wants to enter his account or some other). Can you tell me how to implement validation using Laravel?
PS I didn't find anything related to Remember Token in Laravel.

Answer the question

In order to leave comments, you need to log in

3 answer(s)
N
Nikolay, 2016-07-22
@zzzmaikzzz

Authorization
Authentication

A
Alexander Ablizin, 2016-07-22
@mcmraak

Viewing each other's profiles by users is not related to authentication. The task of authentication is to check the data entered for it (authentication), compare this data with the corresponding user and open a session for him (i.e. remember that it is he who is currently performing some actions). In order to view the data of other users, you need to write a controller that works with the user model.
https://laravel.ru/docs/v5/authentication
Everything about Remember Token in Russian is here.

N
nozzy, 2016-07-22
@nozzy

php artisan make:auth
and you have ready-made controllers, models (with Remember Token) and views

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question