Answer the question
In order to leave comments, you need to log in
How to properly organize an api route in Laravel?
How to pass store id correctly?
inside the route or through the post parameter?
Route::group(['prefix' => 'shop', 'namespace' => 'Shop'], function () {
Route::post('/register', '[email protected]');
Route::group(['prefix' => '{id}'], function () {
Route::apiResource('/', 'ShopController');
Route::apiResource('/news', 'ShopPostController');
Route::apiResource('/banners', 'ShopBannerController');
Route::apiResource('/clients', 'ShopHappyClientController');
Route::apiResource('/clients', 'ShopHappyClientController');
});
});
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question