src/Defender/Commands/MakeRole.php
protected function createRole($roleName)
    {
        // No need to check is_null($role) as create() throwsException
        $role = $this->roleRepository->create($roleName);

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

        return $role;
    }
protected function createRole($roleName)
    {
        // No need to check is_null($role) as create() throwsException
        $role = $this->roleRepository->create($roleName);

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

        return $role;
    }
protected function createRole ( $ roleName ) { // No need to check is_null($role) as create() throwsException $ role = $ this -> roleRepository -> create ( $ roleName ) ; $ this -> info ( 'Role created successfully' ) ; return $ role ; }
Create role.

@param string $roleName

@return \Artesaos\Defender\Role
Create role .