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
Alejandro Henao Echeverri -
Mike Young -
Prajjwal Sule -
pO0q 🦄 -
Top comments (0)