I am aware that in the previous versions of Laravel (e.g. 4), one could get the current uri through
Route::current()->uri();
However, this doesn't seem to work in Laravel 5.7 or later. I am wondering how it should be rewritten. Please note that I am accessing the uri in a blade view and hence cannot use non-static methods.