How to Get Current URL Inside Blade Templates

In this article, we will discuss how to get the current URL inside Blade templates.

 

 

We can use the request() global helper function or the Request helper Class.

In conclusion, getting the current URL inside Blade templates is a straightforward task.

Happy coding 😊


Let me know what you think about this article through comments below, or on Twitter at @pelu_carol.

If you find this article helpful, please share it with others and subscribe to the blog to support me, and receive a bi-monthly-ish e-mail notification on my latest articles.

 

You may also like...