vendredi 23 mars 2018

How get param from url with "?"

I need to use url like "http://test.com/authors/carroll/books?offset=1&limit=5"

I have route like:

Route::group( ['prefix' => 'api'], function () { Route::get('/authors/{authorId}/books', 'ApiController@show')->name('api.show'); });

How should i change it to get limit and offset ?



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire