we know that FIlter in laravel does not support like
but sometimes we need to read array by name and filtering like '%typeing%' query builder
when we use like on filter it return null because FIlter in laravel does not support like
then here it's use this script for filtering data look like name
collect($array)->filter(function ($item) use ($search)
{
return false !== stristr($item['your desc or name'], $search);
});