The use statement with non-compound name 'DB' has no effect
Created at 24-Sep-2021 ,
By samar
I have found error The use statement with non-compound name 'DB' has no effect in Laravel. To remove the error we have to just remove the use DB; statement from routes\web.php file
-
Remove use DB; statement from routes\web.php
//Remove below code from route\web.php use DB;
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
- Print last executed query in laravel
- How to print form data in laravel
- How to customize pagination view in laravel
- On delete set foreign id column value null using migration in laravel 8
- How to get the id of last record from collection object in laravel view
- Update existing pivot table data in laravel
- Php artisan make model, factory, migration and controller in single command
- How to insert dynamic values to additional column with pivot column in pivot table on multiple records
- Method Illuminate\Http\Request::validated does not exist
- How to restore multiple records after soft-deletes in Laravel
- 419 page expired error in Laravel
- Link storage folder in laravel 8
- Laravel migration add foreign key to existing table
- How to create belongstomany relation using custom name on custom pivot table
- How to Access Array in blade laravel
- How to make Copy or Duplicate table row in laravel
- Class 'Facade\Ignition\IgnitionServiceProvider' not found
- Laravel change date format
- Permission denied error while creating storage link in Laravel
- JQuery each loop on json response after ajax in laravel
- Post table seeder laravel 10
- How to get data from two tables in laravel
- How to get route method name in Laravel
- Add class to body in laravel view
- How to create projects method with belongstomany relationship in user model