get current route in blade laravel
snippet in php

get current route in blade laravel

user3014

Get the current url

here using the Request::url() method. It will return the entire URL, but strip the query string from it.

<p> Url: {{  Request::url() }} </p>
Output

Url: http://localhost:8000/post/demo

get current route in blade laravel

user5673

<p> Path: {{ Request::path() }} </p>

get current route in blade laravel

user3020

Path: post/demo