src/Defender/Commands/MakePermission.php
protected function createPermission($name, $readableName)
    {
        // No need to check is_null($permission) as create() throwsException
        $permission = $this->permissionRepository->create($name, $readableName);

        $this->info('Permission created successfully');

        return $permission;
    }
protected function createPermission($name, $readableName)
    {
        // No need to check is_null($permission) as create() throwsException
        $permission = $this->permissionRepository->create($name, $readableName);

        $this->info('Permission created successfully');

        return $permission;
    }
protected function createPermission ( $ name , $ readableName ) { // No need to check is_null($permission) as create() throwsException $ permission = $ this -> permissionRepository -> create ( $ name , $ readableName ) ; $ this -> info ( 'Permission created successfully' ) ; return $ permission ; }
Create permission.

@param string $name
@param string $readableName

@return \Artesaos\Defender\Permission
Create permission .