Answers for "laravel generate auth 8"

PHP
1

how to change laravel 8 login credentials

//add below code to fortify service provider boot function
Fortify::authenticateUsing(function (LoginRequest $request) {
		    $user = User::where('user_name', $request->user_name);

		    if (
			    $user &&
			    Hash::check($request->password, $user->password)
		    ) {
			    return $user;
		    }
	    });
//and change username in fortify config 
'username' => 'user_name',
Posted by: Guest on January-10-2021
-1

laravel 8 make:auth

php artisan migrate
npm install && npm run dev
Posted by: Guest on December-22-2020

Browse Popular Code Answers by Language