src/Reflex/Lockdown/Lockdown.php
public function createPermission($name, $key = null, $description = null)
    {
        $key        =   snake_case(isset($key) ? $key : $name);
        $description=   isset($description) ? $description : $name;
        $values     =   compact('name', 'key', 'description');

        return $this->permissionProvider->create($values);
    }
public function createPermission($name, $key = null, $description = null)
    {
        $key        =   snake_case(isset($key) ? $key : $name);
        $description=   isset($description) ? $description : $name;
        $values     =   compact('name', 'key', 'description');

        return $this->permissionProvider->create($values);
    }
public function createPermission ( $ name , $ key = null , $ description = null ) { $ key = snake_case ( isset ( $ key ) ? $ key : $ name ) ; $ description = isset ( $ description ) ? $ description : $ name ; $ values = compact ( 'name' , 'key' , 'description' ) ; return $ this -> permissionProvider -> create ( $ values ) ; }
Create a permission
@param  string $name
@param  string $key
@param  string $description
@return boolean
Create a permission