laravel get the current route code example
Example 1: get current route in blade laravel
<p> Path: {{ Request::path() }} </p>
Example 2: laravel get current route name
Route::getCurrentRoute()->getActionName();
<p> Path: {{ Request::path() }} </p>
Route::getCurrentRoute()->getActionName();