Skip to content

How to Get Current URL Inside Blade Templates

laravel get current url in a blade template

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 in the comments section below.

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.   
  

Comments