Answers for "get laravel route path"

PHP
1

get current route laravel

get URL:
{{ Request::url() }} // http://localhost/path

get path:
{{ Request::path() }} // path
Posted by: Guest on August-23-2021
4

laravel is route name

// Check if route is ***
Request::route()->named("YourRouteNameView")
Posted by: Guest on January-15-2021

Browse Popular Code Answers by Language