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

Updated 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