see the following code to get the current route name in Laravel blade view :-
resources/views/test.blade.php
@php
$route = Route::current()->getName();
@endphp
{{ $route }} //test
I hope you enjoy the code.
see the following code to get the current route name in Laravel blade view :-
resources/views/test.blade.php
@php
$route = Route::current()->getName();
@endphp
{{ $route }} //test
I hope you enjoy the code.
For further actions, you may consider blocking this person and/or reporting abuse
Furkan Gözükara -
Henry Dioniz -
Ankur Singh -
chemisax -
Top comments (0)