src/Stevemo/Cpanel/Permission/Form/PermissionForm.php
public function create(array $data)
    {
        if ( $this->validator->with($data)->passes() )
        {
            $data['permissions'] = explode(',', $data['permissions']);
            $this->permission->create($data);
            return true;
        }
        else
        {
            return false;
        }
    }
public function create(array $data)
    {
        if ( $this->validator->with($data)->passes() )
        {
            $data['permissions'] = explode(',', $data['permissions']);
            $this->permission->create($data);
            return true;
        }
        else
        {
            return false;
        }
    }
public function create ( array $ data ) { if ( $ this -> validator -> with ( $ data ) -> passes ( ) ) { $ data [ 'permissions' ] = explode ( ',' , $ data [ 'permissions' ] ) ; $ this -> permission -> create ( $ data ) ; return true ; } else { return false ; } }
Create a new set of permissions

@author Steve Montambeault
@link   http://stevemo.ca

@param array $data

@return \StdClass
Create a new set of permissions