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