Sayfa Bulunamadı!

Uzgunuz aradiginiz sayfa bulunamadi..!

eticaretPORT Altyapısı Kullanılmıştır.

Çerez Kullanımı

Kişisel verileriniz, hizmetlerimizin daha iyi
bir şekilde sunulması için mevzuata uygun
bir şekilde toplanıp işlenir. Detaylı bilgi almak
için Verilerin Korunmasını inceleyebilirsiniz

Whoops! There was an error.
Illuminate \ Support \ ItemNotFoundException
No message Illuminate\Support\ItemNotFoundException thrown with message "" Stacktrace: #5 Illuminate\Support\ItemNotFoundException in /home/ebargello/domains/e-bargello.com/public_html/vendor/illuminate/collections/Collection.php:1209 #4 Illuminate\Support\Collection:firstOrFail in /home/ebargello/domains/e-bargello.com/public_html/Traits/CategoryTrait.php:200 #3 App\Classes\Models\Category:getCategory in /home/ebargello/domains/e-bargello.com/public_html/Controllers/Index.php:449 #2 App\Controllers\Index:categories in /home/ebargello/domains/e-bargello.com/public_html/vendor/illuminate/routing/Controller.php:54 #1 Illuminate\Routing\Controller:callAction in /home/ebargello/domains/e-bargello.com/public_html/Libs/Boot.php:47 #0 App\Libs\Boot:__construct in /home/ebargello/domains/e-bargello.com/public_html/index.php:10
5
Illuminate\Support\ItemNotFoundException
/vendor/illuminate/collections/Collection.php1209
4
Illuminate\Support\Collection firstOrFail
/Traits/CategoryTrait.php200
3
App\Classes\Models\Category getCategory
/Controllers/Index.php449
2
App\Controllers\Index categories
/vendor/illuminate/routing/Controller.php54
1
Illuminate\Routing\Controller callAction
/Libs/Boot.php47
0
App\Libs\Boot __construct
/index.php10
     *
     * @param  mixed  $key
     * @param  mixed  $operator
     * @param  mixed  $value
     * @return mixed
     *
     * @throws \Illuminate\Support\ItemNotFoundException
     */
    public function firstOrFail($key = null, $operator = null, $value = null)
    {
        $filter = func_num_args() > 1
            ? $this->operatorForWhere(...func_get_args())
            : $key;
 
        $placeholder = new stdClass();
 
        $item = $this->first($filter, $placeholder);
 
        if ($item === $placeholder) {
            throw new ItemNotFoundException;
        }
 
        return $item;
    }
 
    /**
     * Chunk the collection into chunks of the given size.
     *
     * @param  int  $size
     * @return static
     */
    public function chunk($size)
    {
        if ($size <= 0) {
            return new static;
        }
 
        $chunks = [];
 
        foreach (array_chunk($this->items, $size, true) as $chunk) {
Arguments
  1. ""
    
 
        }
        return $result;
    }
    public static function getCategory($id)
    {
        $categories = self::getAll();
        $parent_categories = self::parentCategories($id)->where('id', '!=', $id)->reverse();
 
        $perms[] = '-1';
        $perms[] = '0';
        if (Session::get('user', 'id')) {
            $perms[] = Session::get('user', 'usertype');
        }
        $category = $categories
            ->filter(function ($category) use ($perms) {
                return count(array_intersect($category->perms, $perms)) > 0;
            })
            ->where('id', $id)
            ->firstOrFail();
        if ($parent_categories->where('status', 0)->count()) {
            return false;
        }
 
 
 
        $menutree = [];
        $treename = [];
        foreach ($parent_categories as $key => $value) {
            $treename[] = $value->name;
            array_push($menutree, [
                'url' => $value->link,
                'name' => $value->name,
            ]);
        }
        $treename[] = $category->name;
        data_set($category, 'treename', $treename);
        data_set($category, 'menutree', $menutree);
        return $category;
    }
        $this->view->assign('title', trans('system.indirimuruns'));
        $this->view->assign('keywords', Config::get('settings.seo_keywords'));
        $this->view->assign('description', Config::get('settings.seo_desc'));
        $this->view->assign('catdata', $this->model->getProducts(null, null, array('discount' => 1), 'drow', 24));
        $view = $this->view->draw('discountproducts', true);
 
        $this->view->assign('content', $view);
        $this->view->draw('index');
        $this->saveActiveUser();
 
        return true;
    }
 
    public function categories($id = null, $brand = null)
    {
 
 
 
        if ($id) {
            $category = Category::getCategory($id);
            $this->view->assign('title', $category->seo_title ?:  $category->name);
            $this->view->assign('keywords', $category->seo_keywords);
            $this->view->assign('description', $category->seo_desc);
            $this->view->assign('category', $category);
            Session::set('active_cat', $category->id);
        }
        $this->blockSet(array('category_id' => $id));
 
 
        $products =  $this->model->getProducts($category['id'], $brand);
        $this->view->assign('cat_open', true);
 
        // $content = view('category.index', $this->view->tpl->var);
        $content = view('category.index', [
            'catdata' => $products,
            'leftBlock' => data_get($this->view->tpl->var, 'leftBlock', []),
            'category' => data_get($this->view->tpl->var, 'category', []),
            'saleClose' => data_get($this->view->tpl->var, 'saleClose', false),
        ]);
 
    /**
     * Get the middleware assigned to the controller.
     *
     * @return array
     */
    public function getMiddleware()
    {
        return $this->middleware;
    }
 
    /**
     * Execute an action on the controller.
     *
     * @param  string  $method
     * @param  array  $parameters
     * @return \Symfony\Component\HttpFoundation\Response
     */
    public function callAction($method, $parameters)
    {
        return $this->{$method}(...array_values($parameters));
    }
 
    /**
     * Handle calls to missing methods on the controller.
     *
     * @param  string  $method
     * @param  array  $parameters
     * @return mixed
     *
     * @throws \BadMethodCallException
     */
    public function __call($method, $parameters)
    {
        throw new BadMethodCallException(sprintf(
            'Method %s::%s does not exist.', static::class, $method
        ));
    }
}
 
        if (!Request::has('url')) {
            define('SUPERPOS', 'main');
            define('SUPERMODEL', null);
            $controller =  app(\App\Controllers\Index::class);
 
            $controller->loadModel('index');
 
            return $controller->main();
        } else {
            $url = Request::input('url');
 
            $url = seoUrl($url);
            define('SUPERPOS', $url["method"]);
            define('SUPERMODEL', $url["model"]);
 
            if (Reflector::isCallable([$url["controller"], $url["method"]])) {
                $controller = app($url["controller"]);
                $controller->loadModel($url["model"]);
 
                return $controller->callAction($url["method"], (array)$url["parameters"]);
            } else {
                $controller =  app(\App\Controllers\Index::class);
                $controller->loadModel('index');
                return $controller->callAction('_error', []);
            }
        }
    }
    private function app()
    {
        parent::__construct(ROOT_PATH);
        $this->app->instance('request', \Illuminate\Http\Request::capture());
        $this->app->singleton(
            \Illuminate\Contracts\Debug\ExceptionHandler::class,
            \App\Exceptions\Handler::class
        );
        $this->app->bootstrapWith([
            \App\Classes\Bootstrap\LoadEnvironmentVariables::class,
            \App\Classes\Bootstrap\LoadConfiguration::class,
            \App\Classes\Bootstrap\HandleExceptions::class,
            \App\Classes\Bootstrap\RegisterFacades::class,
<?php
 
require_once 'config.php';
 
require_once __DIR__ . '/vendor/autoload.php';
 
use App\Libs\Boot;
use Illuminate\Support\Facades\DB;
 
$app = new Boot();
// dump(DB::getQueryLog());
// dd(number_format(microtime(true) - START, 2) . 'sn', readableSize(MEMORY));
 

Environment & details:

Key Value
url
"sevgililer-gunu-parfum-178"
sort
"arDESC"
empty
empty
empty
Key Value
referrer
"www.e-bargello.com"
lang
"tr"
Key Value
USER
"ebargello"
HOME
"/home/ebargello"
SCRIPT_NAME
"/index.php"
REQUEST_URI
"/sevgililer-gunu-parfum-178?sort=arDESC"
QUERY_STRING
"url=sevgililer%2dgunu%2dparfum%2d178&sort=arDESC"
REQUEST_METHOD
"GET"
SERVER_PROTOCOL
"HTTP/1.0"
GATEWAY_INTERFACE
"CGI/1.1"
REDIRECT_QUERY_STRING
"url=sevgililer%2dgunu%2dparfum%2d178&sort=arDESC"
REDIRECT_URL
"/sevgililer-gunu-parfum-178"
REMOTE_PORT
"43988"
SCRIPT_FILENAME
"/home/ebargello/domains/e-bargello.com/private_html/index.php"
SERVER_ADMIN
"webmaster@e-bargello.com"
CONTEXT_DOCUMENT_ROOT
"/home/ebargello/domains/e-bargello.com/private_html"
CONTEXT_PREFIX
""
REQUEST_SCHEME
"https"
DOCUMENT_ROOT
"/home/ebargello/domains/e-bargello.com/private_html"
REMOTE_ADDR
"44.203.235.24"
SERVER_PORT
"443"
SERVER_ADDR
"93.186.118.112"
SERVER_NAME
"www.e-bargello.com"
SERVER_SOFTWARE
"Apache/2"
SERVER_SIGNATURE
""
PATH
"/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin"
HTTP_USER_AGENT
"claudebot"
HTTP_ACCEPT
"*/*"
HTTP_CONNECTION
"close"
HTTP_X_FORWARDED_FOR
"44.203.235.24"
HTTP_HOST
"www.e-bargello.com"
HTTP_X_ACCEL_INTERNAL
"/nginx_static_files"
proxy-nokeepalive
"1"
HTTPS
"on"
UNIQUE_ID
"ZgWRsy2Rh326Sdyk_-HxjgAAAIM"
REDIRECT_STATUS
"200"
REDIRECT_HTTPS
"on"
REDIRECT_UNIQUE_ID
"ZgWRsy2Rh326Sdyk_-HxjgAAAIM"
FCGI_ROLE
"RESPONDER"
PHP_SELF
"/index.php"
REQUEST_TIME_FLOAT
1711641011.7631
REQUEST_TIME
1711641011
APP_URL
"https://www.e-bargello.com/"
APP_ENV
"local"
APP_DEBUG
"true"
APP_NAME
"Bargello"
LOG_CHANNEL
"daily"
LOG_LEVEL
"debug"
CACHE_DRIVER
"file"
SESSION_DOMAIN
".e-bargello.com"
DB_HOST
"localhost"
DB_PORT
"3306"
DB_DATABASE
"ebargello_db"
DB_USERNAME
"ebargello_db"
DB_PASSWORD
"gnJqnVUJNQkfn3MzeBwR"
OLD_DB_HOST
"localhost"
OLD_DB_DATABASE
"barges_db"
OLD_DB_USERNAME
"barges_db"
OLD_DB_PASSWORD
"12qwaszx"
MAIL_MAILER
"smtp"
MAIL_HOST
"smtp.yandex.com.tr"
MAIL_PORT
"587"
MAIL_USERNAME
"smtp@eticaretport.com"
MAIL_PASSWORD
"Jh0FlZwge"
MAIL_ENCRYPTION
"tls"
MAIL_FROM_ADDRESS
"smtp@eticaretport.com"
MAIL_FROM_NAME
"Bargello"
Key Value
APP_URL
"https://www.e-bargello.com/"
APP_ENV
"local"
APP_DEBUG
"true"
APP_NAME
"Bargello"
LOG_CHANNEL
"daily"
LOG_LEVEL
"debug"
CACHE_DRIVER
"file"
SESSION_DOMAIN
".e-bargello.com"
DB_HOST
"localhost"
DB_PORT
"3306"
DB_DATABASE
"ebargello_db"
DB_USERNAME
"ebargello_db"
DB_PASSWORD
"gnJqnVUJNQkfn3MzeBwR"
OLD_DB_HOST
"localhost"
OLD_DB_DATABASE
"barges_db"
OLD_DB_USERNAME
"barges_db"
OLD_DB_PASSWORD
"12qwaszx"
MAIL_MAILER
"smtp"
MAIL_HOST
"smtp.yandex.com.tr"
MAIL_PORT
"587"
MAIL_USERNAME
"smtp@eticaretport.com"
MAIL_PASSWORD
"Jh0FlZwge"
MAIL_ENCRYPTION
"tls"
MAIL_FROM_ADDRESS
"smtp@eticaretport.com"
MAIL_FROM_NAME
"Bargello"
0. Whoops\Handler\PrettyPageHandler