Answers for "laravel get route name from url"

PHP
3

laravel get current route name

Route::currentRouteName()
Posted by: Guest on July-24-2020
1

laravel get current route name

request()->route()->getName()
Posted by: Guest on May-21-2021
1

current url route laravel

\Route::current()
############### OR ####################
$request->getRequestUri()
Posted by: Guest on February-02-2021
0

laravel get current route name

Route::getCurrentRoute()->getActionName();
Posted by: Guest on August-26-2020
1

laravel get a url using name

$url = route('routeName');

//if there is a param:
$url = route('routeName', ['id' => 1]);

https://laravel.com/docs/5.1/helpers#method-route
Posted by: Guest on April-20-2021
0

laravel route generating url named routes

// Generating URLs...
$url = route('profile');

// Generating Redirects...
return redirect()->route('profile');
Posted by: Guest on July-24-2021

Code answers related to "laravel get route name from url"

Browse Popular Code Answers by Language