UnexpectedValueException
PHP 8.1.339.36.3
FilesystemIterator::__construct(/var/www/vhosts/zarifalan.online/httpdocs/storage/framework/cache/data/22/b2): Failed to open directory: No such file or directory
app / Http / Controllers / HomeController.php: 116
        );
        $products = Product::withTranslations([app()->getLocale()])
            ->where('name', 'LIKE', '%' . $request->q . '%')
            ->orWhere('description', 'LIKE', '%' . $request->q . '%')
            ->orWhere('details', 'LIKE', '%' . $request->q . '%')
            ->orWhere('slug', 'LIKE', '%' . $request->q . '%')
            ->get();
        $q = $request->q;
        $meta_description = 'Aviva Mobilya | ';
        return view('site.products.search', compact('breadcrumbs', 'q', 'products', 'meta_description'));
    }

    // Ürün Detay
    public function product(Request $request, Product $product, Collection $collection)
    {
        Artisan::call('cache:clear');
        //dd($product,$collection);
        $product_model = $product;

        $product = $product->translate(app()->getLocale(), config('voyager.multilingual.default'));
        $breadcrumbs = $product_model->category->buildParents($product_model->category)->map(function ($category, $index) {
            return [
                'name' => $category->getTranslatedAttribute('name', app()->getLocale(), config('voyager.multilingual.default')),
                'url' => route('site.products.category', $category),
            ];
        });
        $breadcrumbs->push([
            'name' => $product_model->getTranslatedAttribute('name', app()->getLocale(), config('voyager.multilingual.default')),
            'url' => route('site.products.single', $product_model)
        ]);

Request

https://zarifalan.online/tr/urun/balerina-baslik
GET
curl "https://zarifalan.online/tr/urun/balerina-baslik" \
   -X GET \
   -H 'cookie: XSRF-TOKEN=eyJpdiI6InlkOCtaZHdpUThQVEMvUWRiUGdwQnc9PSIsInZhbHVlIjoiTTdYMGF1R0ppZmp3ZGNJUGV0OEZRaENRMXlIM3pCY0FkYzlBU2ZTWmRYc2NwWW42WXNjeFd2RG1nd3BPNGx5MEEya1lwZExYdGptVUJOUEI5b0t6WnJTZC93aGVXVkdIVlVvb0lDckdFN3VVdVpYd1RPQkp3SHJyMDFqVkdmU3YiLCJtYWMiOiJjM2M1NTBmZmE2ODdhM2NjYmFmZjNkOWM4YjllMTI2ZjViYWVlMzEyNDVmYjczNjUwZTRmY2NkMDc4M2M4Y2I2IiwidGFnIjoiIn0%3D; aviva_mobilya_session=eyJpdiI6InhMYmwrTXZRQUlyeCtQMHJXSmtsM0E9PSIsInZhbHVlIjoidzQrTzNNSDlTc1l6Zkh3aGxMckw2dWRYWTIxQ0QxbTBoZHVXS0lYSVloRE1WMXhkS09QRlFsaDMyd0tjaEw3eWUyaVhNMHFPdk5NZGFydXF2SG5uNjltS1Y5UDJsUTF3VW9DeDMrK0luQ2s5MnRGcXZ6SjRSMEZXODZSR09mYy8iLCJtYWMiOiI2ZWM5NmExYjQ1YzI0NTcxYzU5MTkzMGQyN2NjMDRkYTY4MzA4NTcxODFhNmQ2OWJiYjhlOTMzMGM1M2IwM2Y3IiwidGFnIjoiIn0%3D' \
   -H 'referer: https://zarifalan.online/tr/urunler/baslik-genc' \
   -H 'sec-fetch-user: ?1' \
   -H 'sec-fetch-site: none' \
   -H 'sec-fetch-mode: navigate' \
   -H 'sec-fetch-dest: document' \
   -H 'accept-language: en-US,en' \
   -H 'accept-encoding: *' \
   -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 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/131.0.0.0 Safari/537.36' \
   -H 'upgrade-insecure-requests: 1' \
   -H 'sec-ch-ua-platform: Windows' \
   -H 'sec-ch-ua-mobile: ?0' \
   -H 'sec-ch-ua: "Not(A:Brand";v="24", "Chromium";v="131"' \
   -H 'connection: close' \
   -H 'x-accel-internal: /internal-nginx-static-location' \
   -H 'x-real-ip: 95.217.109.146' \
   -H 'host: zarifalan.online';

Headers

cookie
XSRF-TOKEN=eyJpdiI6InlkOCtaZHdpUThQVEMvUWRiUGdwQnc9PSIsInZhbHVlIjoiTTdYMGF1R0ppZmp3ZGNJUGV0OEZRaENRMXlIM3pCY0FkYzlBU2ZTWmRYc2NwWW42WXNjeFd2RG1nd3BPNGx5MEEya1lwZExYdGptVUJOUEI5b0t6WnJTZC93aGVXVkdIVlVvb0lDckdFN3VVdVpYd1RPQkp3SHJyMDFqVkdmU3YiLCJtYWMiOiJjM2M1NTBmZmE2ODdhM2NjYmFmZjNkOWM4YjllMTI2ZjViYWVlMzEyNDVmYjczNjUwZTRmY2NkMDc4M2M4Y2I2IiwidGFnIjoiIn0%3D; aviva_mobilya_session=eyJpdiI6InhMYmwrTXZRQUlyeCtQMHJXSmtsM0E9PSIsInZhbHVlIjoidzQrTzNNSDlTc1l6Zkh3aGxMckw2dWRYWTIxQ0QxbTBoZHVXS0lYSVloRE1WMXhkS09QRlFsaDMyd0tjaEw3eWUyaVhNMHFPdk5NZGFydXF2SG5uNjltS1Y5UDJsUTF3VW9DeDMrK0luQ2s5MnRGcXZ6SjRSMEZXODZSR09mYy8iLCJtYWMiOiI2ZWM5NmExYjQ1YzI0NTcxYzU5MTkzMGQyN2NjMDRkYTY4MzA4NTcxODFhNmQ2OWJiYjhlOTMzMGM1M2IwM2Y3IiwidGFnIjoiIn0%3D
referer
https://zarifalan.online/tr/urunler/baslik-genc
sec-fetch-user
?1
sec-fetch-site
none
sec-fetch-mode
navigate
sec-fetch-dest
document
accept-language
en-US,en
accept-encoding
*
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 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/131.0.0.0 Safari/537.36
upgrade-insecure-requests
1
sec-ch-ua-platform
Windows
sec-ch-ua-mobile
?0
sec-ch-ua
"Not(A:Brand";v="24", "Chromium";v="131"
connection
close
x-accel-internal
/internal-nginx-static-location
x-real-ip
95.217.109.146
host
zarifalan.online

Body

[]

App

Routing

Controller
App\Http\Controllers\HomeController@product
Route name
site.products.single
Middleware
  • web
  • localeSessionRedirect
  • localizationRedirect
  • localeViewPath

Context

Versions

Php Version
8.1.33
Laravel Version
9.36.3
Laravel Locale
tr
Laravel Config Cached
false
App Debug
true
App Env
local
10:07:51
Runtime 0.86ms
Connection mysql
select * from information_schema.tables where table_schema = ? and table_name = ? and table_type = 'BASE TABLE'
10:07:51
Runtime 0.28ms
Connection mysql
select `policy_name`, `model_name` from `data_types`
10:07:51
Runtime 0.71ms
Connection mysql
select * from `language_lines` where `group` = ?
10:07:51
Runtime 0.35ms
Connection mysql
select * from `language_lines` where `group` = ?
10:07:51
Runtime 0.28ms
Connection mysql
select * from `language_lines` where `group` = ?
10:07:51
Runtime 0.42ms
Connection mysql
select * from `data_types`
10:07:51
Runtime 0.4ms
Connection mysql
select * from `product_categories` where `product_category_id` is null order by `rank` asc
10:07:51
Runtime 0.43ms
Connection mysql
select * from `translations` where `table_name` = ? and `locale` in (?, ?) and `translations`.`foreign_key` in (1, 2, 3, 4, 5, 6, 7, 63) and (`locale` in (?) or `locale` = ?)
10:07:51
Runtime 0.29ms
Connection mysql
select * from `page_categories`
10:07:51
Runtime 0.65ms
Connection mysql
select * from `pages` where `pages`.`page_category_id` in (1, 2, 3, 4)
10:07:51
Runtime 0.3ms
Connection mysql
select `foreign_key` from `translations` where `table_name` = ? and `column_name` = ? and `value` = ? and `locale` in (?)
10:07:51
Runtime 0.23ms
Connection mysql
select count(*) as aggregate from `products` where 0 = 1
10:07:51
Runtime 0.38ms
Connection mysql
select * from `products` where `slug` = ? limit 1