PHP Class Artesaos\Defender\Repositories\Eloquent\EloquentRoleRepository

Inheritance: extends AbstractEloquentRepository, implements Artesaos\Defender\Contracts\Repositories\RoleRepository
Afficher le fichier Open project: artesaos/defender

Méthodes publiques

Méthode 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 méthode

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

create() public méthode

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