src/Stevemo/Cpanel/Permission/Repo/PermissionRepository.php
public function create(array $data)
    {
        $perm = $this->model->create(array(
            'name'        => $data['name'],
            'permissions' => $data['permissions']
        ));

        if ( ! $perm )
        {
            return false;
        }
        else
        {
            $this->event->fire('permissions.create', array($perm));
            return $perm;
        }
    }
public function create(array $data)
    {
        $perm = $this->model->create(array(
            'name'        => $data['name'],
            'permissions' => $data['permissions']
        ));

        if ( ! $perm )
        {
            return false;
        }
        else
        {
            $this->event->fire('permissions.create', array($perm));
            return $perm;
        }
    }
public function create ( array $ data ) { $ perm = $ this -> model -> create ( array ( 'name' => $ data [ 'name' ] , 'permissions' => $ data [ 'permissions' ] ) ) ; if ( ! $ perm ) { return false ; } else { $ this -> event -> fire ( 'permissions.create' , array ( $ perm ) ) ; return $ perm ; } }
Put into storage a new permission

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

@param array $data

@return bool|\Illuminate\Database\Eloquent\Model|\StdClass|static
Put into storage a new permission