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 12-12-2024
236

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 28-08-2020
45 Likes
Comments
Write comment

Submit your answer