DB tidak ditemukan di Laravel
use Illuminate\Support\Facades\DB
//or
use DB;
Isaac
use Illuminate\Support\Facades\DB
//or
use DB;