public function headerSearch(Request $request) { return Searches::headerSearch($request->get('query')); }
/** * Return users that match given email. * * @param SearchUsersRequest $request * @return mixed */ public function search(SearchUsersRequest $request) { return Searches::searchUsers($request->get('email')); }