Get Current URL in a Blade View

How to get current URL or path in Blade. Get Current URL in a Blade View {{url("/")}} i am using this for getting current url.
Ankur Rajput
Asked 25-11-2021
121

Answer (1)
best view answer echo Request::fullUrl() echo Request::url(); echo Request::path() echo Request::segment(1); echo Request::is("admin/*")
Yogesh Tomar
Asked 29-08-2020
45 Likes
Comments
Write comment

Submit your answer