PHP 8.3.11
Array to string conversion
$_SESSION['have-jseen'][0] = $rowDetail['id'];
$query->where('id', $_SESSION['have-jseen'][0]);
}
$productJSeen = $query->whereRaw("id != ?", $rowDetail['id'])
->whereRaw("FIND_IN_SET(?,status)", ['hienthi'])
->orderBy('numb', 'asc')->orderBy('id', 'desc')
->limit(20)->get();
$reasonTpl = NewsModel::select('namevi', 'photo', 'id','descvi')
->where('type', 'ly-do')
->whereRaw("FIND_IN_SET(?,status)", ['hienthi'])
->get();
// dd($reasonTpl);
$tags = $rowDetail->tags ?? [];
$titleDetail = $this->infoSeo('product', $this->type, 'title');
$titleDetail = __('web.' . $titleDetail);
if ($this->infoSeo('product', $rowDetail->type, 'type', 'index')) BreadCrumbs::set(url('slugweb', ['slug' => $rowDetail->type]), $titleDetail);
BreadCrumbs::setBreadcrumb(detail: $rowDetail, list: $rowDetail->getCategoryList, cat: $rowDetail->getCategoryCat, item: $rowDetail->getCategoryItem, sub: $rowDetail->getCategorySub);
$query = ProductModel::select('id', 'namevi', 'photo', 'descvi', 'slugvi', 'regular_price', 'discount', 'sale_price')->where('type', $this->type);
if (!empty($rowDetail['id_list'])) $query->where('id_list', $rowDetail['id_list']);
if (!empty($rowDetail['id_cat'])) $query->where('id_cat', $rowDetail['id_cat']);
$query->whereRaw("FIND_IN_SET(?,status)", ['hienthi'])->limit(10);
$product = $query->orderBy('numb', 'asc')
->orderBy('id', 'desc')->paginate(16);
if($this->type=='album-hinh-anh'){
return View::share('com', $rowDetail->type)->view('albums.detail', compact('rowDetail','rowDetailPhoto','product','tags'));
}
else{
Request
https://dankinhcachnhiet.com/phim-cach-nhiet-o-to-3m-va-cong-dung-cua-no-ban-da-biet-chua
GET
curl "https://dankinhcachnhiet.com/phim-cach-nhiet-o-to-3m-va-cong-dung-cua-no-ban-da-biet-chua" \
-X GET \
-H 'host: dankinhcachnhiet.com' \
-H 'priority: u=0, i' \
-H 'accept-encoding: gzip, deflate, br, zstd' \
-H 'sec-fetch-dest: document' \
-H 'sec-fetch-user: ?1' \
-H 'sec-fetch-mode: navigate' \
-H 'sec-fetch-site: none' \
-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 'user-agent: Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)' \
-H 'upgrade-insecure-requests: 1' \
-H 'sec-ch-ua-platform: "Windows"' \
-H 'sec-ch-ua-mobile: ?0' \
-H 'sec-ch-ua: "HeadlessChrome";v="129", "Not=A?Brand";v="8", "Chromium";v="129"' \
-H 'cache-control: no-cache' \
-H 'pragma: no-cache';
Browser
Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)
Headers
- host
dankinhcachnhiet.com
- priority
u=0, i
- accept-encoding
gzip, deflate, br, zstd
- sec-fetch-dest
document
- sec-fetch-user
?1
- sec-fetch-mode
navigate
- sec-fetch-site
none
- 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
- user-agent
Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)
- upgrade-insecure-requests
1
- sec-ch-ua-platform
"Windows"
- sec-ch-ua-mobile
?0
- sec-ch-ua
"HeadlessChrome";v="129", "Not=A?Brand";v="8", "Chromium";v="129"
- cache-control
no-cache
- pragma
no-cache