<?php

namespace App\Http\Controllers;

use Illuminate\Http\Request;

class HomeController extends Controller
{
    public function index()
    {
        $featured = \App\Models\Product::where('in_stock', true)
            ->orderBy('sort_order')->limit(6)->get();
        return view('home', compact('featured'));
    }
}
