Laravel 8 dB como consulta

$filterData = DB::table('countries')->where('name','LIKE','%'.$term.'%')
                      ->get();
Jittery Jay