Laravel undefined Typ DB
Try use Illuminate\Support\Facades\DB; instead of use DB;
Wide-eyed Wolf
Try use Illuminate\Support\Facades\DB; instead of use DB;