In laravel, you can use the auth facet class to authenticate
If you are not using the authentication that comes with the framework, you can do it as follows
When the login page user fills in the information and submits, in the controller
use Illuminate\Support\Facades\Auth
After using auth, you can use
Auth::attempt (array)
for authentication. The password verification of attempt is to directly verify the encrypted bcrypt . For
example:
if(Auth::attempt($result))
{
return redirect()->route('admin.user.index');
}
return redirect()->back();
If the requirements are met, redirect just return