Ejemplo n.º 1
0
 /**
  * Display a listing of the resource.
  *
  * @return Response
  */
 public function index()
 {
     $users = $this->userRepository->getPaginated();
     return View::make('users.index')->withUsers($users);
 }
Ejemplo n.º 2
0
 /** @test */
 public function it_paginates_all_users()
 {
     $users = TestDummy::times(4)->create('Larabook\\Users\\User');
     $results = $this->repository->getPaginated(2);
     $this->assertCount(2, $results);
 }
Ejemplo n.º 3
0
 /**
  * Display a listing of the resource.
  *
  * @return Response
  */
 public function index()
 {
     $users = $this->repository->getPaginated();
     return view('users.index')->withUsers($users);
 }