mardi 21 janvier 2020

Missing required parameters for [Route: tender_detail] Locale Laravel

Got an error after adding localization to my laravel project. Here is my web.php

//Tender
Route::group(['prefix' => '{language}/tender', 'middleware' => ['permission:tender-page']], function() {
    Route::get('/', 'TenderController@index')->name('tender');
    Route::get('/add', 'TenderController@add')->name('tender_add');
    Route::get('/{id}', 'TenderController@detail')->name('tender_detail');
});

Here is my error

ErrorException thrown with message:
"Missing required parameters for [Route: tender_detail] [URI: {language}/tender/{id}]. 
(View: /Users/admin/Desktop/dev/medicare/resources/views/layouts/template.blade.php) 
(View: /Users/admin/Desktop/dev/medicare/resources/views/layouts/template.blade.php)"

Here is part of my template.blade.php

<li class="">
<a href="">
<i class="notika-icon notika-house"></i>  </a>
</li>

Here is route to the tender_detail page

<a href="">ЛОТ 123456-ОК3</a>


via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire