lundi 5 mars 2018

Laravel - passing route parameter to blade

I am using Laravel 5.6, with the default make:auth mechanism.

In the routes/web.php, I would like to add a language middleware as follow:-

Route::prefix('{lang}')->group(function () {
    Route::get('password/reset', 'Auth\ForgotPasswordController@showLinkRequestForm')->name('password.request');
});

Now I wish to apply this in blade:-

<a href="">

But debugger just say:-

Missing required parameters for [Route: password.request] [URI: {lang}/password/reset].

I believe the blade cannot not get the {lang} from route. How can it be achieved?



from Newest questions tagged laravel-5 - Stack Overflow http://ift.tt/2FffqOA
via IFTTT

Aucun commentaire:

Enregistrer un commentaire