laravel auth
composer require laravel/ui
php artisan ui vue --auth
npm install && npm run dev
laravel auth
composer require laravel/ui
php artisan ui vue --auth
npm install && npm run dev
laravel 8 authentication
/*
This have a problem, for example:
1. you login in browser/device 1 with "remember me" enabled,
2. and login with the same user on another browser/device 2 also with "remember me" enabled.
if you logout that user in browser/device 2,
a user in browser/device 1 'remember me' token will be invalid
and automatically logouted by default if token invalid.
to prevent this, in the logout function use this instead:
*/
public function logout(){
// Auth::logout();
Auth::logoutCurrentDevice(); // use this instead of Auth::logout()
request()->session()->invalidate();
request()->session()->regenerateToken();
return redirect('/login');
}
laravel 8 make:auth
composer require laravel/ui --dev
php artisan ui vue --auth
laravel 8 auth
composer require laravel/ui
laravel 8 make:auth
php artisan migrate
npm install && npm run dev
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us