Class 'App\Providers\Auth' not found

Created at 26-Aug-2021 , By samar

Sometimes we get an error Class 'App\Providers\Auth' is not found because we did not import the Auth in our class. In my case I have forgotten to import the Auth facade in my AppServiceProvider class in laravel project.

  • Class 'App\Providers\Auth' not found

    //app\Providers\AppServiceProvider.php
    use Auth;
    class AppServiceProvider extends ServiceProvider
    {
    

    Import Auth facade in AppServiceProvider class. Class may be different in providers directory.

Back to code snippet queries related laravel

If you like what you are reading, please consider buying us a coffee ( or 2 ) as a token of appreciation.

Buy Me A Coffee

Don't forget to share this article! Help us spread the word by clicking the share button below.

We appreciate your support and are committed to providing you valuable and informative content.

We are thankful for your never ending support.