【发布时间】:2018-09-02 15:47:22
【问题描述】:
我需要使用像“http://test.com/authors/carroll/books?offset=1&limit=5”这样的网址
我的路线如下:
Route::group(['prefix' => 'api'], function () {
Route::get('/authors/{authorId}/books', 'ApiController@show')->name('api.show');
});
我应该如何更改它以获得限制和偏移量?
【问题讨论】:
-
仅供参考:已经为您解决了分页问题,只需查看docs