示例#1
0
 public function testAllKo()
 {
     $this->assertInstanceOf(LengthAwarePaginator::class, $this->repository->all(true, -1));
 }
示例#2
0
 /**
  * Display a listing of the resource.
  *
  * @return Response
  *
  * @apiDefine getIndex
  * @apiName index
  * @apiErrorExample {json} Error-Response:
  *     HTTP/1.1 404 Not Found
  *     {}
  *
  * @apiErrorExample {json} Error-Response:
  *     HTTP/1.1 401 Not Authorized
  *     {}
  * @apiName index
  */
 public function index()
 {
     $this->addUserCriteria();
     return response()->json($this->repository->all(Input::get('paginate', false), Input::get('nbByPage', 15), Input::get('page', 1)));
 }