This commit is contained in:
cjd
2026-02-05 22:22:10 +08:00
parent fef9fe0c31
commit bf3a2e6971
273 changed files with 30605 additions and 0 deletions

View File

@@ -0,0 +1,17 @@
<?php
namespace App\Http\Controllers;
use App\Models\Product;
class OutboundController extends Controller
{
public function redirect(string $slug)
{
$product = Product::where('slug', $slug)->firstOrFail();
$product->increment('click_count');
$product->refreshHotScore();
return redirect()->away($product->website_url);
}
}