PHP 8.1.339.48.0
Missing required parameter for [Route: product.details] [URI: products/{slug}] [Missing parameter: slug].
{
$this->productRepo = $productRepo;
$this->categoryRepo = $categoryRepo;
}
public function index()
{
$categories = $this->categoryRepo->all();
$categories->load('products');
$products = $this->productRepo->all();
return view('home', compact('categories','products'));
}
public function productDetails($slug)
{
$product = $this->productRepo->findBySlug($slug);
if (!$product) {
return redirect()->route('product.details');
}
$product->load('images', 'tags','category');
return view('product_front', ['product' => $product]);
}
}
Request
https://www.uimarkets.com/products/Businesswoman-Emma-Set
GET
curl "https://www.uimarkets.com/products/Businesswoman-Emma-Set" \
-X GET \
-H 'host: www.uimarkets.com' \
-H 'x-forwarded-for: 216.73.216.161, 216.73.216.161' \
-H 'x-forwarded-host: www.uimarkets.com' \
-H 'x-forwarded-port: 443' \
-H 'x-forwarded-proto: https' \
-H 'x-forwarded-server: www.uimarkets.com' \
-H 'x-real-ip: 216.73.216.161' \
-H 'cf-visitor: {"scheme":"https"}' \
-H 'sec-fetch-mode: navigate' \
-H 'sec-fetch-user: ?1' \
-H 'priority: u=0, i' \
-H 'cf-ray: 96a1f5f28ae4eada-ORD' \
-H 'sec-fetch-dest: document' \
-H 'pragma: no-cache' \
-H 'cache-control: no-cache' \
-H 'sec-ch-ua: "Chromium";v="130", "HeadlessChrome";v="130", "Not?A_Brand";v="99"' \
-H 'sec-ch-ua-mobile: ?0' \
-H 'sec-ch-ua-platform: "Windows"' \
-H 'upgrade-insecure-requests: 1' \
-H 'user-agent: Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)' \
-H 'accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.7' \
-H 'sec-fetch-site: none' \
-H 'cdn-loop: cloudflare; loops=1' \
-H 'cf-ipcountry: US' \
-H 'x-https: 1';
Headers
- host
www.uimarkets.com
- x-forwarded-for
216.73.216.161, 216.73.216.161
- x-forwarded-host
www.uimarkets.com
- x-forwarded-port
443
- x-forwarded-proto
https
- x-forwarded-server
www.uimarkets.com
- x-real-ip
216.73.216.161
- cf-visitor
{"scheme":"https"}
- sec-fetch-mode
navigate
- sec-fetch-user
?1
- priority
u=0, i
- cf-ray
96a1f5f28ae4eada-ORD
- sec-fetch-dest
document
- pragma
no-cache
- cache-control
no-cache
- sec-ch-ua
"Chromium";v="130", "HeadlessChrome";v="130", "Not?A_Brand";v="99"
- sec-ch-ua-mobile
?0
- sec-ch-ua-platform
"Windows"
- upgrade-insecure-requests
1
- user-agent
Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)
- accept
text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.7
- sec-fetch-site
none
- cdn-loop
cloudflare; loops=1
- cf-ipcountry
US
- x-https
1
App
Context
11:51:05 PM
1.36ms
mysql
select * from `products` where `slug` = ? limit 1