{ Laravel View Composer }

Example of view composer in Route Service Provider. Defines a group of routes based on their name and passes it through to the “master” file.
Any with() key becomes global for the view.

Then it can be used to start something like breadcrumbs, or set a menu item as active as shown in left-sidebar.blade.php