Laravel how i get route with name in blade

  laravel, php, routes

I have a route same like this.

Route::group(['prefix'=>LaravelLocalization::setLocale(),
    'as'=>'front.',
    'middleware'=>['localeSessionRedirect','localizationRedirect',]],function ()
{
    Route::get('/view/post/{id}', [ExtraController::class, 'SinglePost'])->name('post_view');
});

So i want call this route in blade.How i get post_view route?

Source: Laravel

Leave a Reply