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

Updated 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