Reference

Laravel Reference

Miscellaneous

Getting the Current Route in a Blade Template

This will fetch everything after the domain, e.g. for this page: laravel/misc (tested in Laravel 6.0)

\Request::path();

Getting a Segment of the Current Route in a Blade Template

This will fetch segment 1 of the URL, e.g. for this page: laravel (tested in Laravel 6.0)

\Request::segment(1);