Short information about view composers
View composers are usually used to define some global variables that would be available in some partial Blade View, no matter where that View is called.
Typical examples are global things like page title, meta tags, some global stats numbers to be seen in the header/sidebar.
Read more in the official Laravel docs.
Additional resources on view composers:
Povilas Korop | www.youtube.com