Laravel tipe db yang tidak ditentukan
Try use Illuminate\Support\Facades\DB; instead of use DB;
Wide-eyed Wolf
Try use Illuminate\Support\Facades\DB; instead of use DB;