public static function getGroupIdName($users)
	{
		$users = explode(",", $users);
		$usersArray = array();
		foreach ($users as $user)
		{
			$user = User::find($user);
			if ($user)
				$usersArray[] = array('name' => $user->name, 'user_id' => $user->user_id);
		}
		return $usersArray;
	}
public static function getGroupIdName($users)
	{
		$users = explode(",", $users);
		$usersArray = array();
		foreach ($users as $user)
		{
			$user = User::find($user);
			if ($user)
				$usersArray[] = array('name' => $user->name, 'user_id' => $user->user_id);
		}
		return $usersArray;
	}
public static function getGroupIdName ( $ users ) { $ users = explode ( "," , $ users ) ; $ usersArray = array ( ) ; foreach ( $ users as $ user ) { $ user = User :: find ( $ user ) ; if ( $ user ) $ usersArray [ ] = array ( 'name' => $ user -> name , 'user_id' => $ user -> user_id ) ; } return $ usersArray ; }
Get id of groups permission
@param $projectId int
@return array
Get id of groups permission