PHP Interface Learner\Repositories\RoleRepositoryInterface

Mostrar archivo Open project: RryLee/learner.video Interface Usage Examples

Public Methods

Method Description
findByName ( string $name ) : Learner\Models\Role Find a role by it's name.
listAll ( ) : Illuminate\Database\Eloquent\Collection List all role.

Method Details

findByName() public method

Find a role by it's name.
public findByName ( string $name ) : Learner\Models\Role
$name string
return Learner\Models\Role

listAll() public method

List all role.
public listAll ( ) : Illuminate\Database\Eloquent\Collection
return Illuminate\Database\Eloquent\Collection