how to make user authentication in laravel code example
Example 1: laravel setup auth
// Laravel 5.x
php artisan make:auth
Example 2: laravel force login by id
Auth::login($user);
// Laravel 5.x
php artisan make:auth
Auth::login($user);