xxxxxxxxxx
//Route::currentRouteName() // check
Route::get('/users',function(){
print "Execute";
});
xxxxxxxxxx
Route::currentRouteName()
Route::getCurrentRoute()->getPath();
\Request::route()->getName()
Route::currentRouteName(); //use Illuminate\Support\Facades\Route;
Route::getCurrentRoute()->getActionName();
$uri = $request->path();
xxxxxxxxxx
$route = Route::current();
$name = Route::currentRouteName();
$action = Route::currentRouteAction();
xxxxxxxxxx
get URL:
{{ Request::url() }} // http://localhost/path
get path:
{{ Request::path() }} // path
xxxxxxxxxx
Route::get('user/profile', [UserProfileController::class, 'show'])->name('profile');