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;
    

Back to code snippet queries related laravel

If you like what you are reading, please consider buying us a coffee ( or 2 ) as a token of appreciation.

Buy Me A Coffee

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.