![Logo loader icon](https://w3codegenerator.com/img/logo-f2.png)
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
-
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.
If you like what you are reading, please consider buying us a coffee ( or 2 ) as a token of appreciation.
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.
Random Code Snippet Queries: Laravel
- The POST method is not supported for this route. Supported methods: PUT.
- Class 'App\Http\Controllers\User' not found
- Order by multiple columns in Laravel
- How to get selected categories on edit record with Select2
- How to get date from created_at field in laravel
- Laravel get all records with pagination
- Laravel migration add foreign key to existing table
- How to return a column with different name in Laravel
- Method Illuminate\Events\Dispatcher::fire does not exist
- How to call controller function from view in Laravel
- How to get all posts which contains comments in laravel
- How to get CSRF token in laravel controller
- Laravel upload file with original file name
- Run artisan command to generate key in laravel
- Composer create project laravel/laravel example app
- How to Run CRON Job on LIVE SERVER on Cpanel in Laravel Project
- Class App\Http\Controllers\Admin\UserController Does Not Exist
- Return view from route Laravel
- How to get route name on visit URL in laravel
- How to pass two variables in HREF in laravel
- Conditional validation in laravel
- How to create belongstomany relation using custom name on custom pivot table
- Declaration of App\Models\Post::sluggable() must be compatible with Cviebrock\EloquentSluggable\Sluggable
- Get laravel version
- How to check find method executed successfully in laravel