app/Providers/ComposerServiceProvider.php
/**
     * Register bindings in the container.
     */
Register bindings in the container.
Register bindings in the container .
public function boot()
    {
        View::composer(
            '*',
            GlobalComposer::class
        );
        View::composer(
            'layouts.partials._aside._menu',
            SidebarComposer::class
        );
    }
public function boot ( ) { View :: composer ( '*' , GlobalComposer :: class ) ; View :: composer ( 'layouts.partials._aside._menu' , SidebarComposer :: class ) ; }
Register bindings in the container.
Register bindings in the container .
// Global // This class binds the $logged_in_user variable to every view // Frontend // Backend // This binds items like number of users pending approval when account approval is set to true