X

Get current URL in blade file Laravel 8

/

Get the current url

here using the Request::url() method. It will return the entire URL, but strip the query string from it.

Url: {{  Request::url() }}

Output

Url: http://localhost:8000/post/demo