Add About Section to HomePageSettings and update HomePageController to include brand data. Modify HomeSettings to store new about section fields and update the homepage view to display these settings.
This commit is contained in:
1 parent
d0985a71d5
commit
b405cad6fe
8 files changed
+158
-26
No files matched your search
@@ -42,12 +42,5 @@ public function addSettingsToViews(): void
|
||||
$view->with('settings', app(SiteSettings::class));
|
||||
$view->with('socialMedia', app(SiteSocialSettings::class));
|
||||
});
|
||||
|
||||
ViewFacade::composer('web.pages.home.index', function (View $view) {
|
||||
$brands = Brand::query()->get(['id', 'image']);
|
||||
|
||||
$view->with('homepage', app(HomeSettings::class));
|
||||
$view->with('brands', $brands);
|
||||
});
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user