Код: Выделить всё
Route::group(['prefix' => 'api/v1/properties/'], function () {
Route::get('purchased', 'PropertiesController@getPropertyByProgressStatus', function () {
//pass variable x = 1 to the controller
});
Route::get('waiting', 'PropertiesController@getPropertyByProgressStatus', function () {
//pass variable x = 2 to the controller
});
Короче говоря, в зависимости от сегмента URI после API/V1/свойств/Я хочу передать другой параметр контроллеру. Есть ли способ сделать это?
Подробнее здесь: https://stackoverflow.com/questions/333 ... avel-route
Мобильная версия