Class 'App\Models\DB' not found code example
Example 1: App\\Http\\Controllers\\DB' not found
use Illuminate\Support\Facades\DB
Example 2: laravel db not found
use Illuminate\Support\Facades\DB;
Example 3: Class 'App\Models\DB' not found
//In top put use DB to use DB in laravel
use DB;