22 lines
422 B
PHP
22 lines
422 B
PHP
<?php
|
|
|
|
namespace App\Http\Controllers\Shop;
|
|
|
|
use App\Http\Controllers\Controller;
|
|
use App\Models\Category;
|
|
use Plugin\Guangda\Seller\Models\Product;
|
|
|
|
class HomeController extends Controller
|
|
{
|
|
public function index()
|
|
{
|
|
$categories = Category::with('description')->where('active', 1)->get();
|
|
|
|
$data = [
|
|
'categories' => $categories,
|
|
];
|
|
|
|
return view('home', $data);
|
|
}
|
|
}
|