src/ViewServiceProvider.php
public function boot()
    {
        view()->composer('*', function (\Illuminate\View\View $view) {
            foreach(\WhiteFrame\View::getNested($view->getName()) as $name => $datas) {
                $view->nest('nested.' . $name, $name, $datas);
            }
        });
    }
public function boot()
    {
        view()->composer('*', function (\Illuminate\View\View $view) {
            foreach(\WhiteFrame\View::getNested($view->getName()) as $name => $datas) {
                $view->nest('nested.' . $name, $name, $datas);
            }
        });
    }
Perform post-registration booting of services.

@return void