laravel web.php auth Undefined type 'Auth'.
use Illuminate\Support\Facades\Auth;
laravel web.php auth Undefined type 'Auth'.
use Illuminate\Support\Facades\Auth;
laravel 9 error Undefined type 'Illuminate\Foundation\Auth\RegistersUsers'
If u found the error in RegisterController or LoginController :
Undefined type 'Illuminate\Foundation\Auth\RegistersUsers'
Or in case of LoginControler the same to AuthenticatesUsers;
Solution: Ignore the Error.
Why? Well, the class is saved in: vendor/laravel/ui/auth-backend
You can see that file in vendor/laravel/ui/auth-backend the method
showRegistrationForm that includes the return of a view called by
showRegistrationForm. If you put a die method just like this, die("..."),
you can see that return is from the die method and is not returning the view.
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