Answers for "laravel 9 error Undefined type 'Illuminate\Foundation\Auth\RegistersUsers'"

PHP
8

laravel web.php auth Undefined type 'Auth'.

use Illuminate\Support\Facades\Auth;
Posted by: Guest on May-17-2020
0

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.
Posted by: Guest on April-09-2022

Code answers related to "laravel 9 error Undefined type 'Illuminate\Foundation\Auth\RegistersUsers'"

Browse Popular Code Answers by Language