Get Route Name In Laravel Blade

Use this snippet inside a Laravel Blade Template:

Example Url: http://localhost:8000/shop/order/1?order=1

web.php

  Route::get('/shop/order/{order}', function () {
    return View::make('shop.pages.order');
})->name('order');

 

order.blade.php

{{Route::current()->getName()}}

 

Output: order

Hope that helps.