У меня проблема с моими маршрутами Laravel. если я называю по следующему адресу: http://laravel/market он отлично работает, но мой сайт имеет различные языки, так что я использовать пакет LaravelLocalization и когда я называю http://laravel/en/market речь идет об ошибке:Laravel отсутствует маршрут выпуск
Route [market.offers.show] not defined.
я использовал:
php artisan route:list
увидеть индексированные маршруты и вот ярлык этого:
| GET|HEAD | market/offers | market.offers.index | App\Http\Controllers\Front\Offers[email protected]
| POST | market/offers | market.offers.store | App\Http\Controllers\Front\[email protected]
| GET|HEAD | market/offers/bid/{id} | market.offers.bid | App\Http\Controllers\Front\[email protected]
| GET|HEAD | market/offers/create | market.offers.create | App\Http\Controllers\Front\[email protected]
| GET|HEAD | market/offers/history | market.offers.history | App\Http\Controllers\Front\[email protected]
| POST | market/offers/store/bid | market.offers.store.bid | App\Http\Controllers\Front\[email protected]
| DELETE | market/offers/{offers} | market.offers.destroy | App\Http\Controllers\Front\[email protected]
| GET|HEAD | market/offers/{offers} | market.offers.show | App\Http\Controllers\Front\[email protected]
| PUT|PATCH | market/offers/{offers} | market.offers.update | App\Http\Controllers\Front\[email protected]
| GET|HEAD | market/offers/{offers}/edit | market.offers.edit | App\Http\Controllers\Front\[email protected]
на других страницах я получаю ту же ошибку п или Маршрут [market.offers.create]
Почему это? Как я могу это решить?
я сделали префикс: Route :: group (['prefix' => LaravelLocalization :: setLocale()], function() {}); и внутри него все маршруты –