Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

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
Source by www.nicesnippets.com #
 
PREVIOUS NEXT
Tagged: #current #route #blade #laravel
ADD COMMENT
Topic
Name
7+9 =