Add 'use \Illuminate\Support\Facades\DB' to prevent missing DB class