Illuminate \ Database \ QueryException (2002)
SQLSTATE[HY000] [2002] Connection refused (SQL: select * from `admins` where `admins`.`deleted_at` is null and `status` = 1)
Previous exceptions
  • SQLSTATE[HY000] [2002] Connection refused (2002)
Illuminate\Database\QueryException thrown with message "SQLSTATE[HY000] [2002] Connection refused (SQL: select * from `admins` where `admins`.`deleted_at` is null and `status` = 1)" Stacktrace: #42 Illuminate\Database\QueryException in /home/marsalqa/o2_cms_2022/vendor/laravel/framework/src/Illuminate/Database/Connection.php:664 #41 Illuminate\Foundation\Application:Illuminate\Foundation\{closure} in [internal]:0 #40 PDOException in /home/marsalqa/o2_cms_2022/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php:70 #39 PDO:__construct in /home/marsalqa/o2_cms_2022/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php:70 #38 Illuminate\Database\Connectors\Connector:createPdoConnection in /home/marsalqa/o2_cms_2022/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php:46 #37 Illuminate\Database\Connectors\Connector:createConnection in /home/marsalqa/o2_cms_2022/vendor/laravel/framework/src/Illuminate/Database/Connectors/MySqlConnector.php:24 #36 Illuminate\Database\Connectors\MySqlConnector:connect in /home/marsalqa/o2_cms_2022/vendor/laravel/framework/src/Illuminate/Database/Connectors/ConnectionFactory.php:182 #35 Illuminate\Database\Connectors\ConnectionFactory:Illuminate\Database\Connectors\{closure} in /home/marsalqa/o2_cms_2022/vendor/laravel/framework/src/Illuminate/Database/Connection.php:919 #34 call_user_func in /home/marsalqa/o2_cms_2022/vendor/laravel/framework/src/Illuminate/Database/Connection.php:919 #33 Illuminate\Database\Connection:getPdo in /home/marsalqa/o2_cms_2022/vendor/laravel/framework/src/Illuminate/Database/Connection.php:944 #32 Illuminate\Database\Connection:getReadPdo in /home/marsalqa/o2_cms_2022/vendor/laravel/framework/src/Illuminate/Database/Connection.php:399 #31 Illuminate\Database\Connection:getPdoForSelect in /home/marsalqa/o2_cms_2022/vendor/laravel/framework/src/Illuminate/Database/Connection.php:325 #30 Illuminate\Database\Connection:Illuminate\Database\{closure} in /home/marsalqa/o2_cms_2022/vendor/laravel/framework/src/Illuminate/Database/Connection.php:657 #29 Illuminate\Database\Connection:runQueryCallback in /home/marsalqa/o2_cms_2022/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 #28 Illuminate\Database\Connection:run in /home/marsalqa/o2_cms_2022/vendor/laravel/framework/src/Illuminate/Database/Connection.php:333 #27 Illuminate\Database\Connection:select in /home/marsalqa/o2_cms_2022/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php:2130 #26 Illuminate\Database\Query\Builder:runSelect in /home/marsalqa/o2_cms_2022/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php:2118 #25 Illuminate\Database\Query\Builder:Illuminate\Database\Query\{closure} in /home/marsalqa/o2_cms_2022/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php:2604 #24 Illuminate\Database\Query\Builder:onceWithColumns in /home/marsalqa/o2_cms_2022/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php:2119 #23 Illuminate\Database\Query\Builder:get in /home/marsalqa/o2_cms_2022/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php:521 #22 Illuminate\Database\Eloquent\Builder:getModels in /home/marsalqa/o2_cms_2022/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php:505 #21 Illuminate\Database\Eloquent\Builder:get in /home/marsalqa/o2_cms_2022/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php:462 #20 Illuminate\Database\Eloquent\Model:all in /home/marsalqa/o2_cms_2022/app/Providers/AppServiceProvider.php:68 #19 App\Providers\AppServiceProvider:App\Providers\{closure} in /home/marsalqa/o2_cms_2022/vendor/laravel/framework/src/Illuminate/Support/helpers.php:1237 #18 value in /home/marsalqa/o2_cms_2022/vendor/laravel/framework/src/Illuminate/Cache/Repository.php:105 #17 Illuminate\Cache\Repository:get in /home/marsalqa/o2_cms_2022/vendor/laravel/framework/src/Illuminate/Cache/CacheManager.php:357 #16 Illuminate\Cache\CacheManager:__call in /home/marsalqa/o2_cms_2022/vendor/laravel/framework/src/Illuminate/Foundation/helpers.php:244 #15 cache in /home/marsalqa/o2_cms_2022/app/Providers/AppServiceProvider.php:69 #14 App\Providers\AppServiceProvider:boot in /home/marsalqa/o2_cms_2022/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php:32 #13 call_user_func_array in /home/marsalqa/o2_cms_2022/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php:32 #12 Illuminate\Container\BoundMethod:Illuminate\Container\{closure} in /home/marsalqa/o2_cms_2022/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php:90 #11 Illuminate\Container\BoundMethod:callBoundMethod in /home/marsalqa/o2_cms_2022/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php:34 #10 Illuminate\Container\BoundMethod:call in /home/marsalqa/o2_cms_2022/vendor/laravel/framework/src/Illuminate/Container/Container.php:576 #9 Illuminate\Container\Container:call in /home/marsalqa/o2_cms_2022/vendor/laravel/framework/src/Illuminate/Foundation/Application.php:827 #8 Illuminate\Foundation\Application:bootProvider in /home/marsalqa/o2_cms_2022/vendor/laravel/framework/src/Illuminate/Foundation/Application.php:810 #7 Illuminate\Foundation\Application:Illuminate\Foundation\{closure} in [internal]:0 #6 array_walk in /home/marsalqa/o2_cms_2022/vendor/laravel/framework/src/Illuminate/Foundation/Application.php:811 #5 Illuminate\Foundation\Application:boot in /home/marsalqa/o2_cms_2022/vendor/laravel/framework/src/Illuminate/Foundation/Bootstrap/BootProviders.php:17 #4 Illuminate\Foundation\Bootstrap\BootProviders:bootstrap in /home/marsalqa/o2_cms_2022/vendor/laravel/framework/src/Illuminate/Foundation/Application.php:210 #3 Illuminate\Foundation\Application:bootstrapWith in /home/marsalqa/o2_cms_2022/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php:162 #2 Illuminate\Foundation\Http\Kernel:bootstrap in /home/marsalqa/o2_cms_2022/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php:146 #1 Illuminate\Foundation\Http\Kernel:sendRequestThroughRouter in /home/marsalqa/o2_cms_2022/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php:116 #0 Illuminate\Foundation\Http\Kernel:handle in /home/marsalqa/o2_cms_2022/public/index.php:61
42
Illuminate\Database\QueryException
/vendor/laravel/framework/src/Illuminate/Database/Connection.php664
41
Illuminate\Foundation\Application Illuminate\Foundation\{closure}
[internal]0
40
PDOException
/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php70
39
PDO __construct
/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php70
38
Illuminate\Database\Connectors\Connector createPdoConnection
/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php46
37
Illuminate\Database\Connectors\Connector createConnection
/vendor/laravel/framework/src/Illuminate/Database/Connectors/MySqlConnector.php24
36
Illuminate\Database\Connectors\MySqlConnector connect
/vendor/laravel/framework/src/Illuminate/Database/Connectors/ConnectionFactory.php182
35
Illuminate\Database\Connectors\ConnectionFactory Illuminate\Database\Connectors\{closure}
/vendor/laravel/framework/src/Illuminate/Database/Connection.php919
34
call_user_func
/vendor/laravel/framework/src/Illuminate/Database/Connection.php919
33
Illuminate\Database\Connection getPdo
/vendor/laravel/framework/src/Illuminate/Database/Connection.php944
32
Illuminate\Database\Connection getReadPdo
/vendor/laravel/framework/src/Illuminate/Database/Connection.php399
31
Illuminate\Database\Connection getPdoForSelect
/vendor/laravel/framework/src/Illuminate/Database/Connection.php325
30
Illuminate\Database\Connection Illuminate\Database\{closure}
/vendor/laravel/framework/src/Illuminate/Database/Connection.php657
29
Illuminate\Database\Connection runQueryCallback
/vendor/laravel/framework/src/Illuminate/Database/Connection.php624
28
Illuminate\Database\Connection run
/vendor/laravel/framework/src/Illuminate/Database/Connection.php333
27
Illuminate\Database\Connection select
/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php2130
26
Illuminate\Database\Query\Builder runSelect
/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php2118
25
Illuminate\Database\Query\Builder Illuminate\Database\Query\{closure}
/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php2604
24
Illuminate\Database\Query\Builder onceWithColumns
/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php2119
23
Illuminate\Database\Query\Builder get
/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php521
22
Illuminate\Database\Eloquent\Builder getModels
/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php505
21
Illuminate\Database\Eloquent\Builder get
/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php462
20
Illuminate\Database\Eloquent\Model all
/app/Providers/AppServiceProvider.php68
19
App\Providers\AppServiceProvider App\Providers\{closure}
/vendor/laravel/framework/src/Illuminate/Support/helpers.php1237
18
value
/vendor/laravel/framework/src/Illuminate/Cache/Repository.php105
17
Illuminate\Cache\Repository get
/vendor/laravel/framework/src/Illuminate/Cache/CacheManager.php357
16
Illuminate\Cache\CacheManager __call
/vendor/laravel/framework/src/Illuminate/Foundation/helpers.php244
15
cache
/app/Providers/AppServiceProvider.php69
14
App\Providers\AppServiceProvider boot
/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php32
13
call_user_func_array
/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php32
12
Illuminate\Container\BoundMethod Illuminate\Container\{closure}
/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php90
11
Illuminate\Container\BoundMethod callBoundMethod
/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php34
10
Illuminate\Container\BoundMethod call
/vendor/laravel/framework/src/Illuminate/Container/Container.php576
9
Illuminate\Container\Container call
/vendor/laravel/framework/src/Illuminate/Foundation/Application.php827
8
Illuminate\Foundation\Application bootProvider
/vendor/laravel/framework/src/Illuminate/Foundation/Application.php810
7
Illuminate\Foundation\Application Illuminate\Foundation\{closure}
[internal]0
6
array_walk
/vendor/laravel/framework/src/Illuminate/Foundation/Application.php811
5
Illuminate\Foundation\Application boot
/vendor/laravel/framework/src/Illuminate/Foundation/Bootstrap/BootProviders.php17
4
Illuminate\Foundation\Bootstrap\BootProviders bootstrap
/vendor/laravel/framework/src/Illuminate/Foundation/Application.php210
3
Illuminate\Foundation\Application bootstrapWith
/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php162
2
Illuminate\Foundation\Http\Kernel bootstrap
/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php146
1
Illuminate\Foundation\Http\Kernel sendRequestThroughRouter
/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php116
0
Illuminate\Foundation\Http\Kernel handle
/public/index.php61
/home/marsalqa/o2_cms_2022/vendor/laravel/framework/src/Illuminate/Database/Connection.php
     * @param  array     $bindings
     * @param  \Closure  $callback
     * @return mixed
     *
     * @throws \Illuminate\Database\QueryException
     */
    protected function runQueryCallback($query, $bindings, Closure $callback)
    {
        // To execute the statement, we'll simply call the callback, which will actually
        // run the SQL against the PDO connection. Then we can calculate the time it
        // took to execute and log the query SQL, bindings and time in our memory.
        try {
            $result = $callback($query, $bindings);
        }
 
        // If an exception occurs when attempting to run a query, we'll format the error
        // message to include the bindings with SQL, which will make this exception a
        // lot more helpful to the developer instead of just the database's errors.
        catch (Exception $e) {
            throw new QueryException(
                $query, $this->prepareBindings($bindings), $e
            );
        }
 
        return $result;
    }
 
    /**
     * Log a query in the connection's query log.
     *
     * @param  string  $query
     * @param  array   $bindings
     * @param  float|null  $time
     * @return void
     */
    public function logQuery($query, $bindings, $time = null)
    {
        $this->event(new QueryExecuted($query, $bindings, $time, $this));
 
        if ($this->loggingQueries) {
Arguments
  1. "SQLSTATE[HY000] [2002] Connection refused (SQL: select * from `admins` where `admins`.`deleted_at` is null and `status` = 1)"
    
[internal]
Arguments
  1. App\Providers\AppServiceProvider {#100}
    
  2. 17
    
/home/marsalqa/o2_cms_2022/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php
            );
        }
    }
 
    /**
     * Create a new PDO connection instance.
     *
     * @param  string  $dsn
     * @param  string  $username
     * @param  string  $password
     * @param  array  $options
     * @return \PDO
     */
    protected function createPdoConnection($dsn, $username, $password, $options)
    {
        if (class_exists(PDOConnection::class) && ! $this->isPersistentConnection($options)) {
            return new PDOConnection($dsn, $username, $password, $options);
        }
 
        return new PDO($dsn, $username, $password, $options);
    }
 
    /**
     * Determine if the connection is persistent.
     *
     * @param  array  $options
     * @return bool
     */
    protected function isPersistentConnection($options)
    {
        return isset($options[PDO::ATTR_PERSISTENT]) &&
               $options[PDO::ATTR_PERSISTENT];
    }
 
    /**
     * Handle an exception that occurred during connect execution.
     *
     * @param  \Throwable  $e
     * @param  string  $dsn
     * @param  string  $username
Arguments
  1. "SQLSTATE[HY000] [2002] Connection refused"
    
Exception message: SQLSTATE[HY000] [2002] Connection refused
/home/marsalqa/o2_cms_2022/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php
            );
        }
    }
 
    /**
     * Create a new PDO connection instance.
     *
     * @param  string  $dsn
     * @param  string  $username
     * @param  string  $password
     * @param  array  $options
     * @return \PDO
     */
    protected function createPdoConnection($dsn, $username, $password, $options)
    {
        if (class_exists(PDOConnection::class) && ! $this->isPersistentConnection($options)) {
            return new PDOConnection($dsn, $username, $password, $options);
        }
 
        return new PDO($dsn, $username, $password, $options);
    }
 
    /**
     * Determine if the connection is persistent.
     *
     * @param  array  $options
     * @return bool
     */
    protected function isPersistentConnection($options)
    {
        return isset($options[PDO::ATTR_PERSISTENT]) &&
               $options[PDO::ATTR_PERSISTENT];
    }
 
    /**
     * Handle an exception that occurred during connect execution.
     *
     * @param  \Throwable  $e
     * @param  string  $dsn
     * @param  string  $username
Arguments
  1. "mysql:host=127.0.0.1;port=3306;dbname=marsalqa_2022"
    
  2. "marsalqa_2022"
    
  3. "V1hZBbTcu*ti"
    
  4. array:5 [
      8 => 0
      3 => 2
      11 => 0
      17 => false
      20 => false
    ]
    
/home/marsalqa/o2_cms_2022/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php
 
    /**
     * Create a new PDO connection.
     *
     * @param  string  $dsn
     * @param  array   $config
     * @param  array   $options
     * @return \PDO
     *
     * @throws \Exception
     */
    public function createConnection($dsn, array $config, array $options)
    {
        [$username, $password] = [
            $config['username'] ?? null, $config['password'] ?? null,
        ];
 
        try {
            return $this->createPdoConnection(
                $dsn, $username, $password, $options
            );
        } catch (Exception $e) {
            return $this->tryAgainIfCausedByLostConnection(
                $e, $dsn, $username, $password, $options
            );
        }
    }
 
    /**
     * Create a new PDO connection instance.
     *
     * @param  string  $dsn
     * @param  string  $username
     * @param  string  $password
     * @param  array  $options
     * @return \PDO
     */
    protected function createPdoConnection($dsn, $username, $password, $options)
    {
        if (class_exists(PDOConnection::class) && ! $this->isPersistentConnection($options)) {
Arguments
  1. "mysql:host=127.0.0.1;port=3306;dbname=marsalqa_2022"
    
  2. "marsalqa_2022"
    
  3. "V1hZBbTcu*ti"
    
  4. array:5 [
      8 => 0
      3 => 2
      11 => 0
      17 => false
      20 => false
    ]
    
/home/marsalqa/o2_cms_2022/vendor/laravel/framework/src/Illuminate/Database/Connectors/MySqlConnector.php
use PDO;
 
class MySqlConnector extends Connector implements ConnectorInterface
{
    /**
     * Establish a database connection.
     *
     * @param  array  $config
     * @return \PDO
     */
    public function connect(array $config)
    {
        $dsn = $this->getDsn($config);
 
        $options = $this->getOptions($config);
 
        // We need to grab the PDO options that should be used while making the brand
        // new connection instance. The PDO options control various aspects of the
        // connection's behavior, and some might be specified by the developers.
        $connection = $this->createConnection($dsn, $config, $options);
 
        if (! empty($config['database'])) {
            $connection->exec("use `{$config['database']}`;");
        }
 
        $this->configureEncoding($connection, $config);
 
        // Next, we will check to see if a timezone has been specified in this config
        // and if it has we will issue a statement to modify the timezone with the
        // database. Setting this DB timezone is an optional configuration item.
        $this->configureTimezone($connection, $config);
 
        $this->setModes($connection, $config);
 
        return $connection;
    }
 
    /**
     * Set the connection character set and collation.
     *
Arguments
  1. "mysql:host=127.0.0.1;port=3306;dbname=marsalqa_2022"
    
  2. array:13 [
      "driver" => "mysql"
      "host" => "127.0.0.1"
      "port" => "3306"
      "database" => "marsalqa_2022"
      "username" => "marsalqa_2022"
      "password" => "V1hZBbTcu*ti"
      "unix_socket" => ""
      "charset" => "utf8mb4"
      "collation" => "utf8mb4_unicode_ci"
      "prefix" => ""
      "strict" => true
      "engine" => null
      "name" => "mysql"
    ]
    
  3. array:5 [
      8 => 0
      3 => 2
      11 => 0
      17 => false
      20 => false
    ]
    
/home/marsalqa/o2_cms_2022/vendor/laravel/framework/src/Illuminate/Database/Connectors/ConnectionFactory.php
    {
        return array_key_exists('host', $config)
                            ? $this->createPdoResolverWithHosts($config)
                            : $this->createPdoResolverWithoutHosts($config);
    }
 
    /**
     * Create a new Closure that resolves to a PDO instance with a specific host or an array of hosts.
     *
     * @param  array  $config
     * @return \Closure
     */
    protected function createPdoResolverWithHosts(array $config)
    {
        return function () use ($config) {
            foreach (Arr::shuffle($hosts = $this->parseHosts($config)) as $key => $host) {
                $config['host'] = $host;
 
                try {
                    return $this->createConnector($config)->connect($config);
                } catch (PDOException $e) {
                    continue;
                }
            }
 
            throw $e;
        };
    }
 
    /**
     * Parse the hosts configuration item into an array.
     *
     * @param  array  $config
     * @return array
     */
    protected function parseHosts(array $config)
    {
        $hosts = Arr::wrap($config['host']);
 
        if (empty($hosts)) {
Arguments
  1. array:13 [
      "driver" => "mysql"
      "host" => "127.0.0.1"
      "port" => "3306"
      "database" => "marsalqa_2022"
      "username" => "marsalqa_2022"
      "password" => "V1hZBbTcu*ti"
      "unix_socket" => ""
      "charset" => "utf8mb4"
      "collation" => "utf8mb4_unicode_ci"
      "prefix" => ""
      "strict" => true
      "engine" => null
      "name" => "mysql"
    ]
    
/home/marsalqa/o2_cms_2022/vendor/laravel/framework/src/Illuminate/Database/Connection.php
            $this->doctrineConnection = new DoctrineConnection(array_filter([
                'pdo' => $this->getPdo(),
                'dbname' => $this->getConfig('database'),
                'driver' => $driver->getName(),
                'serverVersion' => $this->getConfig('server_version'),
            ]), $driver);
        }
 
        return $this->doctrineConnection;
    }
 
    /**
     * Get the current PDO connection.
     *
     * @return \PDO
     */
    public function getPdo()
    {
        if ($this->pdo instanceof Closure) {
            return $this->pdo = call_user_func($this->pdo);
        }
 
        return $this->pdo;
    }
 
    /**
     * Get the current PDO connection used for reading.
     *
     * @return \PDO
     */
    public function getReadPdo()
    {
        if ($this->transactions > 0) {
            return $this->getPdo();
        }
 
        if ($this->recordsModified && $this->getConfig('sticky')) {
            return $this->getPdo();
        }
 
/home/marsalqa/o2_cms_2022/vendor/laravel/framework/src/Illuminate/Database/Connection.php
            $this->doctrineConnection = new DoctrineConnection(array_filter([
                'pdo' => $this->getPdo(),
                'dbname' => $this->getConfig('database'),
                'driver' => $driver->getName(),
                'serverVersion' => $this->getConfig('server_version'),
            ]), $driver);
        }
 
        return $this->doctrineConnection;
    }
 
    /**
     * Get the current PDO connection.
     *
     * @return \PDO
     */
    public function getPdo()
    {
        if ($this->pdo instanceof Closure) {
            return $this->pdo = call_user_func($this->pdo);
        }
 
        return $this->pdo;
    }
 
    /**
     * Get the current PDO connection used for reading.
     *
     * @return \PDO
     */
    public function getReadPdo()
    {
        if ($this->transactions > 0) {
            return $this->getPdo();
        }
 
        if ($this->recordsModified && $this->getConfig('sticky')) {
            return $this->getPdo();
        }
 
Arguments
  1. Closure() {#268 …4}
    
/home/marsalqa/o2_cms_2022/vendor/laravel/framework/src/Illuminate/Database/Connection.php
    /**
     * Get the current PDO connection used for reading.
     *
     * @return \PDO
     */
    public function getReadPdo()
    {
        if ($this->transactions > 0) {
            return $this->getPdo();
        }
 
        if ($this->recordsModified && $this->getConfig('sticky')) {
            return $this->getPdo();
        }
 
        if ($this->readPdo instanceof Closure) {
            return $this->readPdo = call_user_func($this->readPdo);
        }
 
        return $this->readPdo ?: $this->getPdo();
    }
 
    /**
     * Set the PDO connection.
     *
     * @param  \PDO|\Closure|null  $pdo
     * @return $this
     */
    public function setPdo($pdo)
    {
        $this->transactions = 0;
 
        $this->pdo = $pdo;
 
        return $this;
    }
 
    /**
     * Set the PDO connection used for reading.
     *
/home/marsalqa/o2_cms_2022/vendor/laravel/framework/src/Illuminate/Database/Connection.php
    protected function prepared(PDOStatement $statement)
    {
        $statement->setFetchMode($this->fetchMode);
 
        $this->event(new Events\StatementPrepared(
            $this, $statement
        ));
 
        return $statement;
    }
 
    /**
     * Get the PDO connection to use for a select query.
     *
     * @param  bool  $useReadPdo
     * @return \PDO
     */
    protected function getPdoForSelect($useReadPdo = true)
    {
        return $useReadPdo ? $this->getReadPdo() : $this->getPdo();
    }
 
    /**
     * Run an insert statement against the database.
     *
     * @param  string  $query
     * @param  array   $bindings
     * @return bool
     */
    public function insert($query, $bindings = [])
    {
        return $this->statement($query, $bindings);
    }
 
    /**
     * Run an update statement against the database.
     *
     * @param  string  $query
     * @param  array   $bindings
     * @return int
/home/marsalqa/o2_cms_2022/vendor/laravel/framework/src/Illuminate/Database/Connection.php
 
    /**
     * Run a select statement against the database.
     *
     * @param  string  $query
     * @param  array  $bindings
     * @param  bool  $useReadPdo
     * @return array
     */
    public function select($query, $bindings = [], $useReadPdo = true)
    {
        return $this->run($query, $bindings, function ($query, $bindings) use ($useReadPdo) {
            if ($this->pretending()) {
                return [];
            }
 
            // For select statements, we'll simply execute the query and return an array
            // of the database result set. Each element in the array will be a single
            // row from the database table, and will either be an array or objects.
            $statement = $this->prepared($this->getPdoForSelect($useReadPdo)
                              ->prepare($query));
 
            $this->bindValues($statement, $this->prepareBindings($bindings));
 
            $statement->execute();
 
            return $statement->fetchAll();
        });
    }
 
    /**
     * Run a select statement against the database and returns a generator.
     *
     * @param  string  $query
     * @param  array  $bindings
     * @param  bool  $useReadPdo
     * @return \Generator
     */
    public function cursor($query, $bindings = [], $useReadPdo = true)
    {
Arguments
  1. true
    
/home/marsalqa/o2_cms_2022/vendor/laravel/framework/src/Illuminate/Database/Connection.php
        return $result;
    }
 
    /**
     * Run a SQL statement.
     *
     * @param  string    $query
     * @param  array     $bindings
     * @param  \Closure  $callback
     * @return mixed
     *
     * @throws \Illuminate\Database\QueryException
     */
    protected function runQueryCallback($query, $bindings, Closure $callback)
    {
        // To execute the statement, we'll simply call the callback, which will actually
        // run the SQL against the PDO connection. Then we can calculate the time it
        // took to execute and log the query SQL, bindings and time in our memory.
        try {
            $result = $callback($query, $bindings);
        }
 
        // If an exception occurs when attempting to run a query, we'll format the error
        // message to include the bindings with SQL, which will make this exception a
        // lot more helpful to the developer instead of just the database's errors.
        catch (Exception $e) {
            throw new QueryException(
                $query, $this->prepareBindings($bindings), $e
            );
        }
 
        return $result;
    }
 
    /**
     * Log a query in the connection's query log.
     *
     * @param  string  $query
     * @param  array   $bindings
     * @param  float|null  $time
Arguments
  1. "select * from `admins` where `admins`.`deleted_at` is null and `status` = ?"
    
  2. array:1 [
      0 => 1
    ]
    
/home/marsalqa/o2_cms_2022/vendor/laravel/framework/src/Illuminate/Database/Connection.php
     * Run a SQL statement and log its execution context.
     *
     * @param  string    $query
     * @param  array     $bindings
     * @param  \Closure  $callback
     * @return mixed
     *
     * @throws \Illuminate\Database\QueryException
     */
    protected function run($query, $bindings, Closure $callback)
    {
        $this->reconnectIfMissingConnection();
 
        $start = microtime(true);
 
        // Here we will run this query. If an exception occurs we'll determine if it was
        // caused by a connection that has been lost. If that is the cause, we'll try
        // to re-establish connection and re-run the query with a fresh connection.
        try {
            $result = $this->runQueryCallback($query, $bindings, $callback);
        } catch (QueryException $e) {
            $result = $this->handleQueryException(
                $e, $query, $bindings, $callback
            );
        }
 
        // Once we have run the query we will calculate the time that it took to run and
        // then log the query, bindings, and execution time so we will report them on
        // the event that the developer needs them. We'll log time in milliseconds.
        $this->logQuery(
            $query, $bindings, $this->getElapsedTime($start)
        );
 
        return $result;
    }
 
    /**
     * Run a SQL statement.
     *
     * @param  string    $query
Arguments
  1. "select * from `admins` where `admins`.`deleted_at` is null and `status` = ?"
    
  2. array:1 [
      0 => 1
    ]
    
  3. Closure($query, $bindings) {#1218 …4}
    
/home/marsalqa/o2_cms_2022/vendor/laravel/framework/src/Illuminate/Database/Connection.php
     */
    public function select($query, $bindings = [], $useReadPdo = true)
    {
        return $this->run($query, $bindings, function ($query, $bindings) use ($useReadPdo) {
            if ($this->pretending()) {
                return [];
            }
 
            // For select statements, we'll simply execute the query and return an array
            // of the database result set. Each element in the array will be a single
            // row from the database table, and will either be an array or objects.
            $statement = $this->prepared($this->getPdoForSelect($useReadPdo)
                              ->prepare($query));
 
            $this->bindValues($statement, $this->prepareBindings($bindings));
 
            $statement->execute();
 
            return $statement->fetchAll();
        });
    }
 
    /**
     * Run a select statement against the database and returns a generator.
     *
     * @param  string  $query
     * @param  array  $bindings
     * @param  bool  $useReadPdo
     * @return \Generator
     */
    public function cursor($query, $bindings = [], $useReadPdo = true)
    {
        $statement = $this->run($query, $bindings, function ($query, $bindings) use ($useReadPdo) {
            if ($this->pretending()) {
                return [];
            }
 
            // First we will create a statement for the query. Then, we will set the fetch
            // mode and prepare the bindings for the query. Once that's done we will be
            // ready to execute the query against the database and return the cursor.
Arguments
  1. "select * from `admins` where `admins`.`deleted_at` is null and `status` = ?"
    
  2. array:1 [
      0 => 1
    ]
    
  3. Closure($query, $bindings) {#1218 …4}
    
/home/marsalqa/o2_cms_2022/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php
     *
     * @param  array|string  $columns
     * @return \Illuminate\Support\Collection
     */
    public function get($columns = ['*'])
    {
        return collect($this->onceWithColumns(Arr::wrap($columns), function () {
            return $this->processor->processSelect($this, $this->runSelect());
        }));
    }
 
    /**
     * Run the query as a "select" statement against the connection.
     *
     * @return array
     */
    protected function runSelect()
    {
        return $this->connection->select(
            $this->toSql(), $this->getBindings(), ! $this->useWritePdo
        );
    }
 
    /**
     * Paginate the given query into a simple paginator.
     *
     * @param  int  $perPage
     * @param  array  $columns
     * @param  string  $pageName
     * @param  int|null  $page
     * @return \Illuminate\Contracts\Pagination\LengthAwarePaginator
     */
    public function paginate($perPage = 15, $columns = ['*'], $pageName = 'page', $page = null)
    {
        $page = $page ?: Paginator::resolveCurrentPage($pageName);
 
        $total = $this->getCountForPagination();
 
        $results = $total ? $this->forPage($page, $perPage)->get($columns) : collect();
 
Arguments
  1. "select * from `admins` where `admins`.`deleted_at` is null and `status` = ?"
    
  2. array:1 [
      0 => 1
    ]
    
  3. true
    
/home/marsalqa/o2_cms_2022/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php
     * @param  string  $column
     * @return mixed
     */
    public function value($column)
    {
        $result = (array) $this->first([$column]);
 
        return count($result) > 0 ? reset($result) : null;
    }
 
    /**
     * Execute the query as a "select" statement.
     *
     * @param  array|string  $columns
     * @return \Illuminate\Support\Collection
     */
    public function get($columns = ['*'])
    {
        return collect($this->onceWithColumns(Arr::wrap($columns), function () {
            return $this->processor->processSelect($this, $this->runSelect());
        }));
    }
 
    /**
     * Run the query as a "select" statement against the connection.
     *
     * @return array
     */
    protected function runSelect()
    {
        return $this->connection->select(
            $this->toSql(), $this->getBindings(), ! $this->useWritePdo
        );
    }
 
    /**
     * Paginate the given query into a simple paginator.
     *
     * @param  int  $perPage
     * @param  array  $columns
/home/marsalqa/o2_cms_2022/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php
    }
 
    /**
     * Execute the given callback while selecting the given columns.
     *
     * After running the callback, the columns are reset to the original value.
     *
     * @param  array  $columns
     * @param  callable  $callback
     * @return mixed
     */
    protected function onceWithColumns($columns, $callback)
    {
        $original = $this->columns;
 
        if (is_null($original)) {
            $this->columns = $columns;
        }
 
        $result = $callback();
 
        $this->columns = $original;
 
        return $result;
    }
 
    /**
     * Insert a new record into the database.
     *
     * @param  array  $values
     * @return bool
     */
    public function insert(array $values)
    {
        // Since every insert gets treated like a batch insert, we will make sure the
        // bindings are structured in a way that is convenient when building these
        // inserts statements by verifying these elements are actually an array.
        if (empty($values)) {
            return true;
        }
/home/marsalqa/o2_cms_2022/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php
     * @return mixed
     */
    public function value($column)
    {
        $result = (array) $this->first([$column]);
 
        return count($result) > 0 ? reset($result) : null;
    }
 
    /**
     * Execute the query as a "select" statement.
     *
     * @param  array|string  $columns
     * @return \Illuminate\Support\Collection
     */
    public function get($columns = ['*'])
    {
        return collect($this->onceWithColumns(Arr::wrap($columns), function () {
            return $this->processor->processSelect($this, $this->runSelect());
        }));
    }
 
    /**
     * Run the query as a "select" statement against the connection.
     *
     * @return array
     */
    protected function runSelect()
    {
        return $this->connection->select(
            $this->toSql(), $this->getBindings(), ! $this->useWritePdo
        );
    }
 
    /**
     * Paginate the given query into a simple paginator.
     *
     * @param  int  $perPage
     * @param  array  $columns
     * @param  string  $pageName
Arguments
  1. array:1 [
      0 => "*"
    ]
    
  2. Closure() {#1214 …4}
    
/home/marsalqa/o2_cms_2022/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php
        // If we actually found models we will also eager load any relationships that
        // have been specified as needing to be eager loaded, which will solve the
        // n+1 query issue for the developers to avoid running a lot of queries.
        if (count($models = $builder->getModels($columns)) > 0) {
            $models = $builder->eagerLoadRelations($models);
        }
 
        return $builder->getModel()->newCollection($models);
    }
 
    /**
     * Get the hydrated models without eager loading.
     *
     * @param  array  $columns
     * @return \Illuminate\Database\Eloquent\Model[]|static[]
     */
    public function getModels($columns = ['*'])
    {
        return $this->model->hydrate(
            $this->query->get($columns)->all()
        )->all();
    }
 
    /**
     * Eager load the relationships for the models.
     *
     * @param  array  $models
     * @return array
     */
    public function eagerLoadRelations(array $models)
    {
        foreach ($this->eagerLoad as $name => $constraints) {
            // For nested eager loads we'll skip loading them here and they will be set as an
            // eager load on the query to retrieve the relation so that they will be eager
            // loaded on that query, because that is where they get hydrated as models.
            if (strpos($name, '.') === false) {
                $models = $this->eagerLoadRelation($models, $name, $constraints);
            }
        }
 
Arguments
  1. array:1 [
      0 => "*"
    ]
    
/home/marsalqa/o2_cms_2022/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php
    {
        if ($result = $this->first([$column])) {
            return $result->{$column};
        }
    }
 
    /**
     * Execute the query as a "select" statement.
     *
     * @param  array  $columns
     * @return \Illuminate\Database\Eloquent\Collection|static[]
     */
    public function get($columns = ['*'])
    {
        $builder = $this->applyScopes();
 
        // If we actually found models we will also eager load any relationships that
        // have been specified as needing to be eager loaded, which will solve the
        // n+1 query issue for the developers to avoid running a lot of queries.
        if (count($models = $builder->getModels($columns)) > 0) {
            $models = $builder->eagerLoadRelations($models);
        }
 
        return $builder->getModel()->newCollection($models);
    }
 
    /**
     * Get the hydrated models without eager loading.
     *
     * @param  array  $columns
     * @return \Illuminate\Database\Eloquent\Model[]|static[]
     */
    public function getModels($columns = ['*'])
    {
        return $this->model->hydrate(
            $this->query->get($columns)->all()
        )->all();
    }
 
    /**
Arguments
  1. array:1 [
      0 => "*"
    ]
    
/home/marsalqa/o2_cms_2022/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php
    /**
     * Begin querying the model on the write connection.
     *
     * @return \Illuminate\Database\Query\Builder
     */
    public static function onWriteConnection()
    {
        return static::query()->useWritePdo();
    }
 
    /**
     * Get all of the models from the database.
     *
     * @param  array|mixed  $columns
     * @return \Illuminate\Database\Eloquent\Collection|static[]
     */
    public static function all($columns = ['*'])
    {
        return static::query()->get(
            is_array($columns) ? $columns : func_get_args()
        );
    }
 
    /**
     * Begin querying a model with eager loading.
     *
     * @param  array|string  $relations
     * @return \Illuminate\Database\Eloquent\Builder|static
     */
    public static function with($relations)
    {
        return static::query()->with(
            is_string($relations) ? func_get_args() : $relations
        );
    }
 
    /**
     * Eager load relations on the model.
     *
     * @param  array|string  $relations
Arguments
  1. array:1 [
      0 => "*"
    ]
    
/home/marsalqa/o2_cms_2022/app/Providers/AppServiceProvider.php
    public function boot()
    {
        \System::init();
        app('url')->forceRootUrl(config('app.url'));
        if (config('app.https'))
            app('url')->forceScheme('https');
        if (config('cache.flush'))
            \Cache::flush();
        if (config('app.debug'))
            \DB::enableQueryLog();
        Carbon::setLocale(config('app.locale'));
        setlocale(LC_ALL, 'ar_AE.utf8');
        Paginator::defaultView(\System::$is_admin ? 'admin.pagination' : 'pagination.seo');
        $router = app('router');
        $registrar = new \App\Routing\ResourceRegistrar($router);
        app()->bind(ResourceRegistrar::class, function () use ($registrar) {
            return $registrar;
        });
        $admins = cache('admins', function () {
            return Admin::all();
        }, [], 60 * 24);
        \View::share('admins', $admins);
        \View::share('categories', \System::$categories);
        \View::addNamespace('Widgets', app_path('Widgets'));
        Ads::observe(AdsObserver::class);
        Category::observe(CategoryObserver::class);
        Gallery::observe(GalleryObserver::class);
        Image::observe(ImageObserver::class);
        Page::observe(PageObserver::class);
        Playlist::observe(PlaylistObserver::class);
        Post::observe(PostObserver::class);
        Video::observe(VideoObserver::class);
        Vote::observe(VoteObserver::class);
        Breaking::observe(BreakingObserver::class);
        Link::observe(LinkObserver::class);
        SpecialFile::observe(SpecialFileObserver::class);
        Live::observe(LiveObserver::class);
    }

    /**
/home/marsalqa/o2_cms_2022/vendor/laravel/framework/src/Illuminate/Support/helpers.php
        }
 
        if (is_callable($default)) {
            return $default($value);
        }
 
        return $default;
    }
}
 
if (! function_exists('value')) {
    /**
     * Return the default value of the given value.
     *
     * @param  mixed  $value
     * @return mixed
     */
    function value($value)
    {
        return $value instanceof Closure ? $value() : $value;
    }
}
 
if (! function_exists('windows_os')) {
    /**
     * Determine whether the current environment is Windows based.
     *
     * @return bool
     */
    function windows_os()
    {
        return strtolower(substr(PHP_OS, 0, 3)) === 'win';
    }
}
 
if (! function_exists('with')) {
    /**
     * Return the given value, optionally passed through the given callback.
     *
     * @param  mixed  $value
/home/marsalqa/o2_cms_2022/vendor/laravel/framework/src/Illuminate/Cache/Repository.php
     *
     * @param  string  $key
     * @param  mixed  $default
     * @return mixed
     */
    public function get($key, $default = null)
    {
        if (is_array($key)) {
            return $this->many($key);
        }
 
        $value = $this->store->get($this->itemKey($key));
 
        // If we could not find the cache value, we will fire the missed event and get
        // the default value for this cache value. This default could be a callback
        // so we will execute the value function which will resolve it if needed.
        if (is_null($value)) {
            $this->event(new CacheMissed($key));
 
            $value = value($default);
        } else {
            $this->event(new CacheHit($key, $value));
        }
 
        return $value;
    }
 
    /**
     * Retrieve multiple items from the cache by key.
     *
     * Items not found in the cache will have a null value.
     *
     * @param  array  $keys
     * @return array
     */
    public function many(array $keys)
    {
        $values = $this->store->many(collect($keys)->map(function ($value, $key) {
            return is_string($key) ? $key : $value;
        })->values()->all());
Arguments
  1. Closure() {#274 …4}
    
/home/marsalqa/o2_cms_2022/vendor/laravel/framework/src/Illuminate/Cache/CacheManager.php
     * @param  \Closure  $callback
     * @return $this
     */
    public function extend($driver, Closure $callback)
    {
        $this->customCreators[$driver] = $callback->bindTo($this, $this);
 
        return $this;
    }
 
    /**
     * Dynamically call the default driver instance.
     *
     * @param  string  $method
     * @param  array  $parameters
     * @return mixed
     */
    public function __call($method, $parameters)
    {
        return $this->store()->$method(...$parameters);
    }
}
 
Arguments
  1. "admins"
    
  2. Closure() {#274 …4}
    
  3. []
    
  4. 1440
    
/home/marsalqa/o2_cms_2022/vendor/laravel/framework/src/Illuminate/Foundation/helpers.php
    /**
     * Get / set the specified cache value.
     *
     * If an array is passed, we'll assume you want to put to the cache.
     *
     * @param  dynamic  key|key,default|data,expiration|null
     * @return mixed|\Illuminate\Cache\CacheManager
     *
     * @throws \Exception
     */
    function cache()
    {
        $arguments = func_get_args();
 
        if (empty($arguments)) {
            return app('cache');
        }
 
        if (is_string($arguments[0])) {
            return app('cache')->get(...$arguments);
        }
 
        if (! is_array($arguments[0])) {
            throw new Exception(
                'When setting a value in the cache, you must pass an array of key / value pairs.'
            );
        }
 
        if (! isset($arguments[1])) {
            throw new Exception(
                'You must specify an expiration time when setting a value in the cache.'
            );
        }
 
        return app('cache')->put(key($arguments[0]), reset($arguments[0]), $arguments[1]);
    }
}
 
if (! function_exists('config')) {
    /**
Arguments
  1. "get"
    
  2. array:4 [
      0 => "admins"
      1 => Closure() {#274 …4}
      2 => []
      3 => 1440
    ]
    
/home/marsalqa/o2_cms_2022/app/Providers/AppServiceProvider.php
    {
        \System::init();
        app('url')->forceRootUrl(config('app.url'));
        if (config('app.https'))
            app('url')->forceScheme('https');
        if (config('cache.flush'))
            \Cache::flush();
        if (config('app.debug'))
            \DB::enableQueryLog();
        Carbon::setLocale(config('app.locale'));
        setlocale(LC_ALL, 'ar_AE.utf8');
        Paginator::defaultView(\System::$is_admin ? 'admin.pagination' : 'pagination.seo');
        $router = app('router');
        $registrar = new \App\Routing\ResourceRegistrar($router);
        app()->bind(ResourceRegistrar::class, function () use ($registrar) {
            return $registrar;
        });
        $admins = cache('admins', function () {
            return Admin::all();
        }, [], 60 * 24);
        \View::share('admins', $admins);
        \View::share('categories', \System::$categories);
        \View::addNamespace('Widgets', app_path('Widgets'));
        Ads::observe(AdsObserver::class);
        Category::observe(CategoryObserver::class);
        Gallery::observe(GalleryObserver::class);
        Image::observe(ImageObserver::class);
        Page::observe(PageObserver::class);
        Playlist::observe(PlaylistObserver::class);
        Post::observe(PostObserver::class);
        Video::observe(VideoObserver::class);
        Vote::observe(VoteObserver::class);
        Breaking::observe(BreakingObserver::class);
        Link::observe(LinkObserver::class);
        SpecialFile::observe(SpecialFileObserver::class);
        Live::observe(LiveObserver::class);
    }

    /**
     * Register any application services.
Arguments
  1. "admins"
    
  2. Closure() {#274 …4}
    
  3. []
    
  4. 1440
    
/home/marsalqa/o2_cms_2022/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php
     * Call the given Closure / class@method and inject its dependencies.
     *
     * @param  \Illuminate\Container\Container  $container
     * @param  callable|string  $callback
     * @param  array  $parameters
     * @param  string|null  $defaultMethod
     * @return mixed
     *
     * @throws \ReflectionException
     * @throws \InvalidArgumentException
     */
    public static function call($container, $callback, array $parameters = [], $defaultMethod = null)
    {
        if (static::isCallableWithAtSign($callback) || $defaultMethod) {
            return static::callClass($container, $callback, $parameters, $defaultMethod);
        }
 
        return static::callBoundMethod($container, $callback, function () use ($container, $callback, $parameters) {
            return call_user_func_array(
                $callback, static::getMethodDependencies($container, $callback, $parameters)
            );
        });
    }
 
    /**
     * Call a string reference to a class using Class@method syntax.
     *
     * @param  \Illuminate\Container\Container  $container
     * @param  string  $target
     * @param  array  $parameters
     * @param  string|null  $defaultMethod
     * @return mixed
     *
     * @throws \InvalidArgumentException
     */
    protected static function callClass($container, $target, array $parameters = [], $defaultMethod = null)
    {
        $segments = explode('@', $target);
 
        // We will assume an @ sign is used to delimit the class name from the method
/home/marsalqa/o2_cms_2022/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php
     * Call the given Closure / class@method and inject its dependencies.
     *
     * @param  \Illuminate\Container\Container  $container
     * @param  callable|string  $callback
     * @param  array  $parameters
     * @param  string|null  $defaultMethod
     * @return mixed
     *
     * @throws \ReflectionException
     * @throws \InvalidArgumentException
     */
    public static function call($container, $callback, array $parameters = [], $defaultMethod = null)
    {
        if (static::isCallableWithAtSign($callback) || $defaultMethod) {
            return static::callClass($container, $callback, $parameters, $defaultMethod);
        }
 
        return static::callBoundMethod($container, $callback, function () use ($container, $callback, $parameters) {
            return call_user_func_array(
                $callback, static::getMethodDependencies($container, $callback, $parameters)
            );
        });
    }
 
    /**
     * Call a string reference to a class using Class@method syntax.
     *
     * @param  \Illuminate\Container\Container  $container
     * @param  string  $target
     * @param  array  $parameters
     * @param  string|null  $defaultMethod
     * @return mixed
     *
     * @throws \InvalidArgumentException
     */
    protected static function callClass($container, $target, array $parameters = [], $defaultMethod = null)
    {
        $segments = explode('@', $target);
 
        // We will assume an @ sign is used to delimit the class name from the method
Arguments
  1. array:2 [
      0 => App\Providers\AppServiceProvider {#100}
      1 => "boot"
    ]
    
  2. []
    
/home/marsalqa/o2_cms_2022/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php
     * @param  callable  $callback
     * @param  mixed  $default
     * @return mixed
     */
    protected static function callBoundMethod($container, $callback, $default)
    {
        if (! is_array($callback)) {
            return $default instanceof Closure ? $default() : $default;
        }
 
        // Here we need to turn the array callable into a Class@method string we can use to
        // examine the container and see if there are any method bindings for this given
        // method. If there are, we can call this method binding callback immediately.
        $method = static::normalizeMethod($callback);
 
        if ($container->hasMethodBinding($method)) {
            return $container->callMethodBinding($method, $callback[0]);
        }
 
        return $default instanceof Closure ? $default() : $default;
    }
 
    /**
     * Normalize the given callback into a Class@method string.
     *
     * @param  callable  $callback
     * @return string
     */
    protected static function normalizeMethod($callback)
    {
        $class = is_string($callback[0]) ? $callback[0] : get_class($callback[0]);
 
        return "{$class}@{$callback[1]}";
    }
 
    /**
     * Get all dependencies for a given method.
     *
     * @param  \Illuminate\Container\Container  $container
     * @param  callable|string  $callback
/home/marsalqa/o2_cms_2022/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php
     * @param  \Illuminate\Container\Container  $container
     * @param  callable|string  $callback
     * @param  array  $parameters
     * @param  string|null  $defaultMethod
     * @return mixed
     *
     * @throws \ReflectionException
     * @throws \InvalidArgumentException
     */
    public static function call($container, $callback, array $parameters = [], $defaultMethod = null)
    {
        if (static::isCallableWithAtSign($callback) || $defaultMethod) {
            return static::callClass($container, $callback, $parameters, $defaultMethod);
        }
 
        return static::callBoundMethod($container, $callback, function () use ($container, $callback, $parameters) {
            return call_user_func_array(
                $callback, static::getMethodDependencies($container, $callback, $parameters)
            );
        });
    }
 
    /**
     * Call a string reference to a class using Class@method syntax.
     *
     * @param  \Illuminate\Container\Container  $container
     * @param  string  $target
     * @param  array  $parameters
     * @param  string|null  $defaultMethod
     * @return mixed
     *
     * @throws \InvalidArgumentException
     */
    protected static function callClass($container, $target, array $parameters = [], $defaultMethod = null)
    {
        $segments = explode('@', $target);
 
        // We will assume an @ sign is used to delimit the class name from the method
        // name. We will split on this @ sign and then build a callable array that
        // we can pass right back into the "call" method for dependency binding.
Arguments
  1. Illuminate\Foundation\Application {#2}
    
  2. array:2 [
      0 => App\Providers\AppServiceProvider {#100}
      1 => "boot"
    ]
    
  3. Closure() {#37 …3}
    
/home/marsalqa/o2_cms_2022/vendor/laravel/framework/src/Illuminate/Container/Container.php
     * @return \Closure
     */
    public function wrap(Closure $callback, array $parameters = [])
    {
        return function () use ($callback, $parameters) {
            return $this->call($callback, $parameters);
        };
    }
 
    /**
     * Call the given Closure / class@method and inject its dependencies.
     *
     * @param  callable|string  $callback
     * @param  array  $parameters
     * @param  string|null  $defaultMethod
     * @return mixed
     */
    public function call($callback, array $parameters = [], $defaultMethod = null)
    {
        return BoundMethod::call($this, $callback, $parameters, $defaultMethod);
    }
 
    /**
     * Get a closure to resolve the given type from the container.
     *
     * @param  string  $abstract
     * @return \Closure
     */
    public function factory($abstract)
    {
        return function () use ($abstract) {
            return $this->make($abstract);
        };
    }
 
    /**
     * An alias function name for make().
     *
     * @param  string  $abstract
     * @param  array  $parameters
Arguments
  1. Illuminate\Foundation\Application {#2}
    
  2. array:2 [
      0 => App\Providers\AppServiceProvider {#100}
      1 => "boot"
    ]
    
  3. []
    
  4. null
    
/home/marsalqa/o2_cms_2022/vendor/laravel/framework/src/Illuminate/Foundation/Application.php
 
        array_walk($this->serviceProviders, function ($p) {
            $this->bootProvider($p);
        });
 
        $this->booted = true;
 
        $this->fireAppCallbacks($this->bootedCallbacks);
    }
 
    /**
     * Boot the given service provider.
     *
     * @param  \Illuminate\Support\ServiceProvider  $provider
     * @return mixed
     */
    protected function bootProvider(ServiceProvider $provider)
    {
        if (method_exists($provider, 'boot')) {
            return $this->call([$provider, 'boot']);
        }
    }
 
    /**
     * Register a new boot listener.
     *
     * @param  callable  $callback
     * @return void
     */
    public function booting($callback)
    {
        $this->bootingCallbacks[] = $callback;
    }
 
    /**
     * Register a new "booted" listener.
     *
     * @param  callable  $callback
     * @return void
     */
Arguments
  1. array:2 [
      0 => App\Providers\AppServiceProvider {#100}
      1 => "boot"
    ]
    
/home/marsalqa/o2_cms_2022/vendor/laravel/framework/src/Illuminate/Foundation/Application.php
    }
 
    /**
     * Boot the application's service providers.
     *
     * @return void
     */
    public function boot()
    {
        if ($this->isBooted()) {
            return;
        }
 
        // Once the application has booted we will also fire some "booted" callbacks
        // for any listeners that need to do work after this initial booting gets
        // finished. This is useful when ordering the boot-up processes we run.
        $this->fireAppCallbacks($this->bootingCallbacks);
 
        array_walk($this->serviceProviders, function ($p) {
            $this->bootProvider($p);
        });
 
        $this->booted = true;
 
        $this->fireAppCallbacks($this->bootedCallbacks);
    }
 
    /**
     * Boot the given service provider.
     *
     * @param  \Illuminate\Support\ServiceProvider  $provider
     * @return mixed
     */
    protected function bootProvider(ServiceProvider $provider)
    {
        if (method_exists($provider, 'boot')) {
            return $this->call([$provider, 'boot']);
        }
    }
 
Arguments
  1. App\Providers\AppServiceProvider {#100}
    
[internal]
Arguments
  1. App\Providers\AppServiceProvider {#100}
    
  2. 17
    
/home/marsalqa/o2_cms_2022/vendor/laravel/framework/src/Illuminate/Foundation/Application.php
 
    /**
     * Boot the application's service providers.
     *
     * @return void
     */
    public function boot()
    {
        if ($this->isBooted()) {
            return;
        }
 
        // Once the application has booted we will also fire some "booted" callbacks
        // for any listeners that need to do work after this initial booting gets
        // finished. This is useful when ordering the boot-up processes we run.
        $this->fireAppCallbacks($this->bootingCallbacks);
 
        array_walk($this->serviceProviders, function ($p) {
            $this->bootProvider($p);
        });
 
        $this->booted = true;
 
        $this->fireAppCallbacks($this->bootedCallbacks);
    }
 
    /**
     * Boot the given service provider.
     *
     * @param  \Illuminate\Support\ServiceProvider  $provider
     * @return mixed
     */
    protected function bootProvider(ServiceProvider $provider)
    {
        if (method_exists($provider, 'boot')) {
            return $this->call([$provider, 'boot']);
        }
    }
 
    /**
Arguments
  1. array:23 [
      0 => Illuminate\Events\EventServiceProvider {#7}
      1 => Illuminate\Log\LogServiceProvider {#9}
      2 => Illuminate\Routing\RoutingServiceProvider {#11}
      3 => Illuminate\Auth\AuthServiceProvider {#46}
      4 => Illuminate\Cookie\CookieServiceProvider {#61}
      5 => Illuminate\Database\DatabaseServiceProvider {#63}
      6 => Illuminate\Encryption\EncryptionServiceProvider {#70}
      7 => Illuminate\Filesystem\FilesystemServiceProvider {#72}
      8 => Illuminate\Foundation\Providers\FormRequestServiceProvider {#78}
      9 => Illuminate\Foundation\Providers\FoundationServiceProvider {#77}
      10 => Illuminate\Notifications\NotificationServiceProvider {#81}
      11 => Illuminate\Pagination\PaginationServiceProvider {#83}
      12 => Illuminate\Session\SessionServiceProvider {#87}
      13 => Illuminate\View\ViewServiceProvider {#91}
      14 => Fideloper\Proxy\TrustedProxyServiceProvider {#95}
      15 => Intervention\Image\ImageServiceProvider {#96}
      16 => Carbon\Laravel\ServiceProvider {#99}
      17 => App\Providers\AppServiceProvider {#100}
      18 => App\Providers\AuthServiceProvider {#101}
      19 => App\Providers\EventServiceProvider {#102}
      20 => App\Providers\RouteServiceProvider {#103}
      21 => Illuminate\Cache\CacheServiceProvider {#141}
      22 => Illuminate\Hashing\HashServiceProvider {#1070}
    ]
    
  2. Closure($p) {#38 …4}
    
/home/marsalqa/o2_cms_2022/vendor/laravel/framework/src/Illuminate/Foundation/Bootstrap/BootProviders.php
<?php
 
namespace Illuminate\Foundation\Bootstrap;
 
use Illuminate\Contracts\Foundation\Application;
 
class BootProviders
{
    /**
     * Bootstrap the given application.
     *
     * @param  \Illuminate\Contracts\Foundation\Application  $app
     * @return void
     */
    public function bootstrap(Application $app)
    {
        $app->boot();
    }
}
 
/home/marsalqa/o2_cms_2022/vendor/laravel/framework/src/Illuminate/Foundation/Application.php
    {
        $this->register(new EventServiceProvider($this));
        $this->register(new LogServiceProvider($this));
        $this->register(new RoutingServiceProvider($this));
    }
 
    /**
     * Run the given array of bootstrap classes.
     *
     * @param  string[]  $bootstrappers
     * @return void
     */
    public function bootstrapWith(array $bootstrappers)
    {
        $this->hasBeenBootstrapped = true;
 
        foreach ($bootstrappers as $bootstrapper) {
            $this['events']->dispatch('bootstrapping: '.$bootstrapper, [$this]);
 
            $this->make($bootstrapper)->bootstrap($this);
 
            $this['events']->dispatch('bootstrapped: '.$bootstrapper, [$this]);
        }
    }
 
    /**
     * Register a callback to run after loading the environment.
     *
     * @param  \Closure  $callback
     * @return void
     */
    public function afterLoadingEnvironment(Closure $callback)
    {
        return $this->afterBootstrapping(
            LoadEnvironmentVariables::class, $callback
        );
    }
 
    /**
     * Register a callback to run before a bootstrapper.
Arguments
  1. Illuminate\Foundation\Application {#2}
    
/home/marsalqa/o2_cms_2022/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php
 
        Facade::clearResolvedInstance('request');
 
        $this->bootstrap();
 
        return (new Pipeline($this->app))
                    ->send($request)
                    ->through($this->app->shouldSkipMiddleware() ? [] : $this->middleware)
                    ->then($this->dispatchToRouter());
    }
 
    /**
     * Bootstrap the application for HTTP requests.
     *
     * @return void
     */
    public function bootstrap()
    {
        if (! $this->app->hasBeenBootstrapped()) {
            $this->app->bootstrapWith($this->bootstrappers());
        }
    }
 
    /**
     * Get the route dispatcher callback.
     *
     * @return \Closure
     */
    protected function dispatchToRouter()
    {
        return function ($request) {
            $this->app->instance('request', $request);
 
            return $this->router->dispatch($request);
        };
    }
 
    /**
     * Call the terminate method on any terminable middleware.
     *
Arguments
  1. array:6 [
      0 => "Illuminate\Foundation\Bootstrap\LoadEnvironmentVariables"
      1 => "Illuminate\Foundation\Bootstrap\LoadConfiguration"
      2 => "Illuminate\Foundation\Bootstrap\HandleExceptions"
      3 => "Illuminate\Foundation\Bootstrap\RegisterFacades"
      4 => "Illuminate\Foundation\Bootstrap\RegisterProviders"
      5 => "Illuminate\Foundation\Bootstrap\BootProviders"
    ]
    
/home/marsalqa/o2_cms_2022/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php
        $this->app['events']->dispatch(
            new Events\RequestHandled($request, $response)
        );
 
        return $response;
    }
 
    /**
     * Send the given request through the middleware / router.
     *
     * @param  \Illuminate\Http\Request  $request
     * @return \Illuminate\Http\Response
     */
    protected function sendRequestThroughRouter($request)
    {
        $this->app->instance('request', $request);
 
        Facade::clearResolvedInstance('request');
 
        $this->bootstrap();
 
        return (new Pipeline($this->app))
                    ->send($request)
                    ->through($this->app->shouldSkipMiddleware() ? [] : $this->middleware)
                    ->then($this->dispatchToRouter());
    }
 
    /**
     * Bootstrap the application for HTTP requests.
     *
     * @return void
     */
    public function bootstrap()
    {
        if (! $this->app->hasBeenBootstrapped()) {
            $this->app->bootstrapWith($this->bootstrappers());
        }
    }
 
    /**
/home/marsalqa/o2_cms_2022/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php
            $router->middlewareGroup($key, $middleware);
        }
 
        foreach ($this->routeMiddleware as $key => $middleware) {
            $router->aliasMiddleware($key, $middleware);
        }
    }
 
    /**
     * Handle an incoming HTTP request.
     *
     * @param  \Illuminate\Http\Request  $request
     * @return \Illuminate\Http\Response
     */
    public function handle($request)
    {
        try {
            $request->enableHttpMethodParameterOverride();
 
            $response = $this->sendRequestThroughRouter($request);
        } catch (Exception $e) {
            $this->reportException($e);
 
            $response = $this->renderException($request, $e);
        } catch (Throwable $e) {
            $this->reportException($e = new FatalThrowableError($e));
 
            $response = $this->renderException($request, $e);
        }
 
        $this->app['events']->dispatch(
            new Events\RequestHandled($request, $response)
        );
 
        return $response;
    }
 
    /**
     * Send the given request through the middleware / router.
     *
Arguments
  1. Illuminate\Http\Request {#45
      #json: null
      #convertedFiles: null
      #userResolver: null
      #routeResolver: null
      +attributes: Symfony\Component\HttpFoundation\ParameterBag {#47}
      +request: Symfony\Component\HttpFoundation\ParameterBag {#53}
      +query: Symfony\Component\HttpFoundation\ParameterBag {#53}
      +server: Symfony\Component\HttpFoundation\ServerBag {#49}
      +files: Symfony\Component\HttpFoundation\FileBag {#50}
      +cookies: Symfony\Component\HttpFoundation\ParameterBag {#48}
      +headers: Symfony\Component\HttpFoundation\HeaderBag {#51}
      #content: null
      #languages: null
      #charsets: null
      #encodings: null
      #acceptableContentTypes: array:1 [
        0 => "*/*"
      ]
      #pathInfo: "/post/25981/%D9%86%D9%81%D8%A7%D8%AF-%D8%AA%D8%B0%D8%A7%D9%83%D8%B1-%D9%85%D8%A8%D8%A7%D8%B1%D8%A7%D8%A9-%D8%A7%D9%84%D8%AC%D8%B2%D8%A7%D8%A6%D8%B1-%D9%88%D9%83%D9%88%D8%AA"
      #requestUri: "/post/25981/%D9%86%D9%81%D8%A7%D8%AF-%D8%AA%D8%B0%D8%A7%D9%83%D8%B1-%D9%85%D8%A8%D8%A7%D8%B1%D8%A7%D8%A9-%D8%A7%D9%84%D8%AC%D8%B2%D8%A7%D8%A6%D8%B1-%D9%88%D9%83%D9%88%D8%AA"
      #baseUrl: ""
      #basePath: null
      #method: null
      #format: null
      #session: null
      #locale: null
      #defaultLocale: "en"
      -preferredFormat: null
      -isHostValid: true
      -isForwardedValid: true
      basePath: ""
      method: "GET"
      format: "html"
    }
    
/home/marsalqa/o2_cms_2022/public/index.php
| Run The Application
|--------------------------------------------------------------------------
|
| Once we have the application, we can handle the incoming request
| through the kernel, and send the associated response back to
| the client's browser allowing them to enjoy the creative
| and wonderful application we have prepared for them.
|
*/
$app->bind('path.public', function () {
    return __DIR__;
});
$app->bind('path.base', function () {
    return SYSTEM_PATH;
});

$kernel = $app->make(Illuminate\Contracts\Http\Kernel::class);

$response = $kernel->handle(
    $request = Illuminate\Http\Request::capture()
);

$response->send();

$kernel->terminate($request, $response);
 
Arguments
  1. Illuminate\Http\Request {#45
      #json: null
      #convertedFiles: null
      #userResolver: null
      #routeResolver: null
      +attributes: Symfony\Component\HttpFoundation\ParameterBag {#47}
      +request: Symfony\Component\HttpFoundation\ParameterBag {#53}
      +query: Symfony\Component\HttpFoundation\ParameterBag {#53}
      +server: Symfony\Component\HttpFoundation\ServerBag {#49}
      +files: Symfony\Component\HttpFoundation\FileBag {#50}
      +cookies: Symfony\Component\HttpFoundation\ParameterBag {#48}
      +headers: Symfony\Component\HttpFoundation\HeaderBag {#51}
      #content: null
      #languages: null
      #charsets: null
      #encodings: null
      #acceptableContentTypes: array:1 [
        0 => "*/*"
      ]
      #pathInfo: "/post/25981/%D9%86%D9%81%D8%A7%D8%AF-%D8%AA%D8%B0%D8%A7%D9%83%D8%B1-%D9%85%D8%A8%D8%A7%D8%B1%D8%A7%D8%A9-%D8%A7%D9%84%D8%AC%D8%B2%D8%A7%D8%A6%D8%B1-%D9%88%D9%83%D9%88%D8%AA"
      #requestUri: "/post/25981/%D9%86%D9%81%D8%A7%D8%AF-%D8%AA%D8%B0%D8%A7%D9%83%D8%B1-%D9%85%D8%A8%D8%A7%D8%B1%D8%A7%D8%A9-%D8%A7%D9%84%D8%AC%D8%B2%D8%A7%D8%A6%D8%B1-%D9%88%D9%83%D9%88%D8%AA"
      #baseUrl: ""
      #basePath: null
      #method: null
      #format: null
      #session: null
      #locale: null
      #defaultLocale: "en"
      -preferredFormat: null
      -isHostValid: true
      -isForwardedValid: true
      basePath: ""
      method: "GET"
      format: "html"
    }
    

Environment & details:

empty
empty
empty
empty
empty
Key Value
USER
"marsalqa"
HOME
"/home/marsalqa"
SCRIPT_NAME
"/index.php"
REQUEST_URI
"/post/25981/%D9%86%D9%81%D8%A7%D8%AF-%D8%AA%D8%B0%D8%A7%D9%83%D8%B1-%D9%85%D8%A8%D8%A7%D8%B1%D8%A7%D8%A9-%D8%A7%D9%84%D8%AC%D8%B2%D8%A7%D8%A6%D8%B1-%D9%88%D9%83%D9%88%D8%AA"
QUERY_STRING
""
REQUEST_METHOD
"GET"
SERVER_PROTOCOL
"HTTP/1.1"
GATEWAY_INTERFACE
"CGI/1.1"
REDIRECT_URL
"/post/25981/نفاد-تذاكر-مباراة-الجزائر-وكوت"
REMOTE_PORT
"20832"
SCRIPT_FILENAME
"************************************"
SERVER_ADMIN
"[email protected]"
CONTEXT_DOCUMENT_ROOT
"**************************"
CONTEXT_PREFIX
""
REQUEST_SCHEME
"https"
DOCUMENT_ROOT
"**************************"
REMOTE_ADDR
"44.201.96.213"
SERVER_PORT
"443"
SERVER_ADDR
"159.69.124.148"
SERVER_NAME
"marsalqatar.qa"
SERVER_SOFTWARE
"Apache"
SERVER_SIGNATURE
""
PATH
"/usr/local/jdk/bin:/usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/X11R6/bin:/usr/local/bin:/usr/X11R6/bin:/root/bin:/opt/bin"
HTTP_X_HTTPS
"1"
HTTP_CF_IPCOUNTRY
"US"
HTTP_CDN_LOOP
"cloudflare"
HTTP_USER_AGENT
"claudebot"
HTTP_ACCEPT
"*/*"
HTTP_CF_VISITOR
"{"scheme":"https"}"
HTTP_X_FORWARDED_PROTO
"https"
HTTP_CF_RAY
"86bf3c2a0c640a05-IAD"
HTTP_X_FORWARDED_FOR
"44.201.96.213"
HTTP_ACCEPT_ENCODING
"gzip, br"
HTTP_CONNECTION
"Keep-Alive"
HTTP_HOST
"marsalqatar.qa"
proxy-nokeepalive
"1"
SSL_TLS_SNI
"marsalqatar.qa"
HTTPS
"on"
SCRIPT_URI
"https://marsalqatar.qa/post/25981/نفاد-تذاكر-مباراة-الجزائر-وكوت"
SCRIPT_URL
"/post/25981/نفاد-تذاكر-مباراة-الجزائر-وكوت"
UNIQUE_ID
"ZgaaU39tL_hX03b2mN_25wAAAEY"
REDIRECT_STATUS
"200"
REDIRECT_SSL_TLS_SNI
"marsalqatar.qa"
REDIRECT_HTTPS
"on"
REDIRECT_SCRIPT_URI
"https://marsalqatar.qa/post/25981/نفاد-تذاكر-مباراة-الجزائر-وكوت"
REDIRECT_SCRIPT_URL
"/post/25981/نفاد-تذاكر-مباراة-الجزائر-وكوت"
REDIRECT_UNIQUE_ID
"ZgaaU39tL_hX03b2mN_25wAAAEY"
FCGI_ROLE
"RESPONDER"
PHP_SELF
"/index.php"
REQUEST_TIME_FLOAT
1711708755.8113
REQUEST_TIME
1711708755
argv
[]
argc
0
APP_NAME
"mersal"
APP_ENV
"local"
APP_KEY
"***************************************************"
APP_DEBUG
"true"
APP_URL
"https://marsalqatar.qa/"
APP_HTTPS_URL
"true"
DB_CONNECTION
"mysql"
DB_HOST
"127.0.0.1"
DB_PORT
"3306"
DB_DATABASE
"*************"
DB_USERNAME
"*************"
DB_PASSWORD
"************"
CACHE_DRIVER
"file"
CACHE_FLUSH
"false"
CACHE_STATIC
"true"
SESSION_DRIVER
"file"
SESSION_LIFETIME
"120"
QUEUE_DRIVER
"sync"
MAIL_DRIVER
"****"
MAIL_FROM_ADDRESS
"[email protected]"
MAIL_FROM_NAME
"O2"
GOOGLE_NEWS
"false"
AMP_ENABLED
"false"
ENABLE_NEWSLETTERS
"true"
ATYAF_STORE
"http://store.atyaf.co/o2-v5"
Key Value
APP_NAME
"mersal"
APP_ENV
"local"
APP_KEY
"***************************************************"
APP_DEBUG
"true"
APP_URL
"https://marsalqatar.qa/"
APP_HTTPS_URL
"true"
DB_CONNECTION
"mysql"
DB_HOST
"127.0.0.1"
DB_PORT
"3306"
DB_DATABASE
"*************"
DB_USERNAME
"*************"
DB_PASSWORD
"************"
CACHE_DRIVER
"file"
CACHE_FLUSH
"false"
CACHE_STATIC
"true"
SESSION_DRIVER
"file"
SESSION_LIFETIME
"120"
QUEUE_DRIVER
"sync"
MAIL_DRIVER
"****"
MAIL_FROM_ADDRESS
"[email protected]"
MAIL_FROM_NAME
"O2"
GOOGLE_NEWS
"false"
AMP_ENABLED
"false"
ENABLE_NEWSLETTERS
"true"
ATYAF_STORE
"http://store.atyaf.co/o2-v5"
0. Whoops\Handler\PrettyPageHandler