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

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

Answers 1