app/Providers/ComposerServiceProvider.php
public function boot(Factory $view)
    {
        foreach ($this->composers as $callback => $views) {
            $view->composer($views, $callback);
        }
    }
public function boot(Factory $view)
    {
        foreach ($this->composers as $callback => $views) {
            $view->composer($views, $callback);
        }
    }
Registers view composers during boot.

@param Factory $view