laravel get current route name
Route::currentRouteName()
laravel get current route name
Route::currentRouteName()
get current route laravel
get URL:
{{ Request::url() }} // http://localhost/path
get path:
{{ Request::path() }} // path
get current route in blade laravel
Get the current url
here using the Request::url() method. It will return the entire URL, but strip the query string from it.
<p> Url: {{ Request::url() }} </p>
Output
Url: http://localhost:8000/post/demo
current url route laravel
\Route::current()
############### OR ####################
$request->getRequestUri()
laravel route Accessing The Current Route
$route = Route::current();
$name = Route::currentRouteName();
$action = Route::currentRouteAction();
get current route in blade laravel
<p> Path: {{ Request::path() }} </p>
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us