PHP Class Artesaos\Defender\Repositories\Eloquent\EloquentRoleRepository

Inheritance: extends AbstractEloquentRepository, implements Artesaos\Defender\Contracts\Repositories\RoleRepository
Show file Open project: artesaos/defender

Public Methods

Method Description
__construct ( Illuminate\Contracts\Foundation\Application $app, Artesaos\Defender\Contracts\Role $model )
create ( $roleName ) : Artesaos\Defender\Contracts\Role Create a new role with the given name.

Method Details

__construct() public method

public __construct ( Illuminate\Contracts\Foundation\Application $app, Artesaos\Defender\Contracts\Role $model )
$app Illuminate\Contracts\Foundation\Application
$model Artesaos\Defender\Contracts\Role

create() public method

Create a new role with the given name.
public create ( $roleName ) : Artesaos\Defender\Contracts\Role
$roleName
return Artesaos\Defender\Contracts\Role