The use statement with non-compound name 'Auth' has no effect

Created at 13-Oct-2021 , By samar

I have found the error The use statement with non-compound name 'Auth' has no effect after using use Auth; statement in my web.php file under routes directory. You have to just remove the use Auth; from web.php file in Laravel to avoid the error

  • Remove use Auth; statement from routes\web.php

    --PATH routes\web.php
    //Remove below code from <strong>routes\web.php
    use Auth;
    

    I have found the error The use statement with non-compound name 'Auth' has no effect while performing some task in web.php file under routes directory.  You have to just remove the use Auth; from the web.php file in Laravel.

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.