| 1 | <?php namespace Usman\Guardian\Repositories; |
||
| 6 | class UserRepository extends BaseRepository implements UserRepositoryInterface { |
||
| 7 | |||
| 8 | /** |
||
| 9 | * Searches the database for a username with a specific role |
||
| 10 | * |
||
| 11 | * @param string $username username to search |
||
| 12 | * @param string $role role for the user to search |
||
| 13 | * @param int $perPage records per page |
||
| 14 | * @return Illuminate\Pagination\paginator the paginator instance. |
||
| 15 | */ |
||
| 16 | public function searchUserByRole($username, $role, $perPage = self::PAGE) |
||
| 36 | |||
| 37 | /** |
||
| 38 | * fills the user model data |
||
| 39 | * |
||
| 40 | * @param array $data |
||
| 41 | * @return void |
||
| 42 | */ |
||
| 43 | protected function fillData(array $data) |
||
| 50 | } |