Answers for "class auth not found laravel"

PHP
4

php artisan make:auth Command "make:auth" is not defined.

composer require laravel/ui
php artisan ui vue --auth
php artisan migrate
Posted by: Guest on November-02-2020
0

Route::auth(); giving error in laravel 7

Do this step from the upgrade guide 
https://laravel.com/docs/7.x/upgrade#authentication-scaffolding

############
composer require laravel/ui "^2.0"
Posted by: Guest on November-10-2020
1

Class 'App\Http\Controllers\Auth' not found

Because your controller is namespaced unless you specifically import the Auth namespace, PHP will assume it's under the namespace of the class, giving this error.

To fix this, add use Auth; at the top of AdminHomeController file along with your other use statements or alternatively prefix all instances of Auth with backslash like this: \Auth to let PHP know to load it from the global namespace.
Posted by: Guest on November-17-2020

Code answers related to "class auth not found laravel"

Browse Popular Code Answers by Language