// Why do this ..
$users=User :: where(function($query)use($value){
$query->orWhere('name','like',"{$value)")
->orWhere('email','like',"{$value}")
->orWhere('title','like',"{$value}")
->orWhere('role','like',"{$value}%")
->orWhere('status','like',"{$value}%")
})->get();
//...when you can do the same with this?
$users User :: search($value)->get();