Beispiel #1
0
 public function searchRoleByName(Request $request)
 {
     $userRole = $request->input('roleName');
     $roles = Role::GetRoleByName($userRole)->take(5)->lists('name');
     return $roles;
 }