Method | Description | |
---|---|---|
findById ( integer $id ) : Cartalyst\Sentinel\Roles\RoleInterface | Finds a role by the given primary key. | |
findByName ( string $name ) : Cartalyst\Sentinel\Roles\RoleInterface | Finds a role by the given name. | |
findBySlug ( string $slug ) : Cartalyst\Sentinel\Roles\RoleInterface | Finds a role by the given slug. |
public findByName ( string $name ) : Cartalyst\Sentinel\Roles\RoleInterface | ||
$name | string | |
return | Cartalyst\Sentinel\Roles\RoleInterface |
public findBySlug ( string $slug ) : Cartalyst\Sentinel\Roles\RoleInterface | ||
$slug | string | |
return | Cartalyst\Sentinel\Roles\RoleInterface |