with('settings', $data); }); View::composer('*', function ($view) { $sliders = PagesSlider::all(); $view->with('sliders', $sliders); }); } }