src/Permission/Manager.php
public function add($key, $callable = null)
    {
        if (null !== $callable) {
            $group = new PermissionGroup($callable);
            $group->key($key);

            $this->permissions->put($key, $group);
        } else {
            $group = new PermissionGroup();

            $group->key($key);
            $this->permissions->put($key, $group);
        }
        return $group;
    }
public function add($key, $callable = null)
    {
        if (null !== $callable) {
            $group = new PermissionGroup($callable);
            $group->key($key);

            $this->permissions->put($key, $group);
        } else {
            $group = new PermissionGroup();

            $group->key($key);
            $this->permissions->put($key, $group);
        }
        return $group;
    }
public function add ( $ key , $ callable = null ) { if ( null !== $ callable ) { $ group = new PermissionGroup ( $ callable ) ; $ group -> key ( $ key ) ; $ this -> permissions -> put ( $ key , $ group ) ; } else { $ group = new PermissionGroup ( ) ; $ group -> key ( $ key ) ; $ this -> permissions -> put ( $ key , $ group ) ; } return $ group ; }
Add Permission into Collection.

@param string $key
@param callable $callable
@return \AvoRed\Framework\Permission\Manager
Add Permission into Collection .