public function getUserGroups($lang = "")
    {
        // check if user has permissions to access this link
        if(!User::hasAccess('Permissions', 'read')) {
            return $this->noPermission();
        }
        return array('data' => \App\Models\UserGroup::all());
    }
public function getUserGroups($lang = "")
    {
        // check if user has permissions to access this link
        if(!User::hasAccess('Permissions', 'read')) {
            return $this->noPermission();
        }
        return array('data' => \App\Models\UserGroup::all());
    }
public function getUserGroups ( $ lang = "" ) { // check if user has permissions to access this link if ( ! User :: hasAccess ( 'Permissions' , 'read' ) ) { return $ this -> noPermission ( ) ; } return array ( 'data' => \ App \ Models \ UserGroup :: all ( ) ) ; }
All users group

@return array
All users group