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:
2025-07-28 13:08:26 +05:00
parent d0985a71d5
commit b405cad6fe
8 changed files with 158 additions and 26 deletions

View File

@@ -2,12 +2,16 @@
namespace App\Http\Controllers;
use App\Models\Brand;
use App\Settings\HomeSettings;
class HomePageController extends Controller
{
public function index()
{
return view('web.pages.home.index');
$brands = Brand::query()->get(['id', 'image']);
$homeSettings = app(HomeSettings::class);
return view('web.pages.home.index', compact('homeSettings', 'brands'));
}
}