Laravel 8 дБ, как запрос
$filterData = DB::table('countries')->where('name','LIKE','%'.$term.'%')
->get();
Jittery Jay
$filterData = DB::table('countries')->where('name','LIKE','%'.$term.'%')
->get();