1get URL:
2{{ Request::url() }} // http://localhost/path
3
4get path:
5{{ Request::path() }} // path
1Get the current url
2
3here using the Request::url() method. It will return the entire URL, but strip the query string from it.
4
5<p> Url: {{ Request::url() }} </p>
6Output
7
8Url: http://localhost:8000/post/demo