chore: init saasshop repo + sql migrations runner + gitee go
This commit is contained in:
17
app/Http/Controllers/Front/H5Controller.php
Normal file
17
app/Http/Controllers/Front/H5Controller.php
Normal file
@@ -0,0 +1,17 @@
|
||||
<?php
|
||||
|
||||
namespace App\Http\Controllers\Front;
|
||||
|
||||
use App\Http\Controllers\Controller;
|
||||
use App\Models\Product;
|
||||
use Illuminate\View\View;
|
||||
|
||||
class H5Controller extends Controller
|
||||
{
|
||||
public function index(): View
|
||||
{
|
||||
return view('front.h5.index', [
|
||||
'products' => Product::query()->latest()->limit(8)->get(),
|
||||
]);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user