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:
@@ -42,12 +42,5 @@ class AppServiceProvider extends ServiceProvider
|
||||
$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