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

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

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

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

    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