J
J
Jedi2018-02-04 03:33:52
Laravel
Jedi, 2018-02-04 03:33:52

How to get Current Route inside Blade?

I want to implement an 'active' menu. How to get a route from a Blade template?
Thank you!

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
Max, 2018-02-04
@PHPjedi

@if(Route::currentRouteName() == 'имя роута')
 // code
@endif

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question