public function composeFooter() { view()->composer('sections.footer', function ($view) { $footer = new Image(); $view->with('footer', $footer->getFooter()); }); }