Illuminate \ Database \ QueryException (2002)
SQLSTATE[HY000] [2002] Connection refused (SQL: select * from `settings` where `settingkey` = site_name limit 1)
Previous exceptions
  • SQLSTATE[HY000] [2002] Connection refused (2002)
Illuminate\Database\QueryException thrown with message "SQLSTATE[HY000] [2002] Connection refused (SQL: select * from `settings` where `settingkey` = site_name limit 1)" Stacktrace: #57 Illuminate\Database\QueryException in /var/www/topshot-admin/vendor/laravel/framework/src/Illuminate/Database/Connection.php:664 #56 PDOException in /var/www/topshot-admin/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php:70 #55 PDO:__construct in /var/www/topshot-admin/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php:70 #54 Illuminate\Database\Connectors\Connector:createPdoConnection in /var/www/topshot-admin/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php:46 #53 Illuminate\Database\Connectors\Connector:createConnection in /var/www/topshot-admin/vendor/laravel/framework/src/Illuminate/Database/Connectors/MySqlConnector.php:24 #52 Illuminate\Database\Connectors\MySqlConnector:connect in /var/www/topshot-admin/vendor/laravel/framework/src/Illuminate/Database/Connectors/ConnectionFactory.php:182 #51 Illuminate\Database\Connectors\ConnectionFactory:Illuminate\Database\Connectors\{closure} in /var/www/topshot-admin/vendor/laravel/framework/src/Illuminate/Database/Connection.php:918 #50 call_user_func in /var/www/topshot-admin/vendor/laravel/framework/src/Illuminate/Database/Connection.php:918 #49 Illuminate\Database\Connection:getPdo in /var/www/topshot-admin/vendor/laravel/framework/src/Illuminate/Database/Connection.php:943 #48 Illuminate\Database\Connection:getReadPdo in /var/www/topshot-admin/vendor/laravel/framework/src/Illuminate/Database/Connection.php:399 #47 Illuminate\Database\Connection:getPdoForSelect in /var/www/topshot-admin/vendor/laravel/framework/src/Illuminate/Database/Connection.php:325 #46 Illuminate\Database\Connection:Illuminate\Database\{closure} in /var/www/topshot-admin/vendor/laravel/framework/src/Illuminate/Database/Connection.php:657 #45 Illuminate\Database\Connection:runQueryCallback in /var/www/topshot-admin/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 #44 Illuminate\Database\Connection:run in /var/www/topshot-admin/vendor/laravel/framework/src/Illuminate/Database/Connection.php:333 #43 Illuminate\Database\Connection:select in /var/www/topshot-admin/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php:2095 #42 Illuminate\Database\Query\Builder:runSelect in /var/www/topshot-admin/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php:2083 #41 Illuminate\Database\Query\Builder:Illuminate\Database\Query\{closure} in /var/www/topshot-admin/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php:2569 #40 Illuminate\Database\Query\Builder:onceWithColumns in /var/www/topshot-admin/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php:2084 #39 Illuminate\Database\Query\Builder:get in /var/www/topshot-admin/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php:519 #38 Illuminate\Database\Eloquent\Builder:getModels in /var/www/topshot-admin/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php:503 #37 Illuminate\Database\Eloquent\Builder:get in /var/www/topshot-admin/vendor/laravel/framework/src/Illuminate/Database/Concerns/BuildsQueries.php:77 #36 Illuminate\Database\Eloquent\Builder:first in /var/www/topshot-admin/app/Providers/AppServiceProvider.php:37 #35 App\Providers\AppServiceProvider:App\Providers\{closure} in /var/www/topshot-admin/vendor/laravel/framework/src/Illuminate/View/Concerns/ManagesEvents.php:164 #34 Illuminate\View\Factory:Illuminate\View\Concerns\{closure} in /var/www/topshot-admin/vendor/laravel/framework/src/Illuminate/Events/Dispatcher.php:357 #33 Illuminate\Events\Dispatcher:Illuminate\Events\{closure} in /var/www/topshot-admin/vendor/laravel/framework/src/Illuminate/Events/Dispatcher.php:209 #32 Illuminate\Events\Dispatcher:dispatch in /var/www/topshot-admin/vendor/laravel/framework/src/Illuminate/View/Concerns/ManagesEvents.php:179 #31 Illuminate\View\Factory:callComposer in /var/www/topshot-admin/vendor/laravel/framework/src/Illuminate/View/View.php:123 #30 Illuminate\View\View:renderContents in /var/www/topshot-admin/vendor/laravel/framework/src/Illuminate/View/View.php:90 #29 Illuminate\View\View:render in /var/www/topshot-admin/vendor/laravel/framework/src/Illuminate/Http/Response.php:42 #28 Illuminate\Http\Response:setContent in /var/www/topshot-admin/vendor/symfony/http-foundation/Response.php:205 #27 Symfony\Component\HttpFoundation\Response:__construct in /var/www/topshot-admin/vendor/laravel/framework/src/Illuminate/Routing/ResponseFactory.php:55 #26 Illuminate\Routing\ResponseFactory:make in /var/www/topshot-admin/vendor/laravel/framework/src/Illuminate/Routing/ResponseFactory.php:81 #25 Illuminate\Routing\ResponseFactory:view in /var/www/topshot-admin/vendor/laravel/framework/src/Illuminate/Foundation/Exceptions/Handler.php:380 #24 Illuminate\Foundation\Exceptions\Handler:renderHttpException in /var/www/topshot-admin/vendor/laravel/framework/src/Illuminate/Foundation/Exceptions/Handler.php:289 #23 Illuminate\Foundation\Exceptions\Handler:prepareResponse in /var/www/topshot-admin/vendor/laravel/framework/src/Illuminate/Foundation/Exceptions/Handler.php:188 #22 Illuminate\Foundation\Exceptions\Handler:render in /var/www/topshot-admin/app/Exceptions/Handler.php:49 #21 App\Exceptions\Handler:render in /var/www/topshot-admin/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php:83 #20 Illuminate\Routing\Pipeline:handleException in /var/www/topshot-admin/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php:32 #19 Illuminate\Routing\Pipeline:Illuminate\Routing\{closure} in /var/www/topshot-admin/vendor/fideloper/proxy/src/TrustProxies.php:57 #18 Fideloper\Proxy\TrustProxies:handle in /var/www/topshot-admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:163 #17 Illuminate\Pipeline\Pipeline:Illuminate\Pipeline\{closure} in /var/www/topshot-admin/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php:53 #16 Illuminate\Routing\Pipeline:Illuminate\Routing\{closure} in /var/www/topshot-admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php:31 #15 Illuminate\Foundation\Http\Middleware\TransformsRequest:handle in /var/www/topshot-admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:163 #14 Illuminate\Pipeline\Pipeline:Illuminate\Pipeline\{closure} in /var/www/topshot-admin/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php:53 #13 Illuminate\Routing\Pipeline:Illuminate\Routing\{closure} in /var/www/topshot-admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php:31 #12 Illuminate\Foundation\Http\Middleware\TransformsRequest:handle in /var/www/topshot-admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:163 #11 Illuminate\Pipeline\Pipeline:Illuminate\Pipeline\{closure} in /var/www/topshot-admin/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php:53 #10 Illuminate\Routing\Pipeline:Illuminate\Routing\{closure} in /var/www/topshot-admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php:27 #9 Illuminate\Foundation\Http\Middleware\ValidatePostSize:handle in /var/www/topshot-admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:163 #8 Illuminate\Pipeline\Pipeline:Illuminate\Pipeline\{closure} in /var/www/topshot-admin/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php:53 #7 Illuminate\Routing\Pipeline:Illuminate\Routing\{closure} in /var/www/topshot-admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/CheckForMaintenanceMode.php:62 #6 Illuminate\Foundation\Http\Middleware\CheckForMaintenanceMode:handle in /var/www/topshot-admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:163 #5 Illuminate\Pipeline\Pipeline:Illuminate\Pipeline\{closure} in /var/www/topshot-admin/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php:53 #4 Illuminate\Routing\Pipeline:Illuminate\Routing\{closure} in /var/www/topshot-admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:104 #3 Illuminate\Pipeline\Pipeline:then in /var/www/topshot-admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php:151 #2 Illuminate\Foundation\Http\Kernel:sendRequestThroughRouter in /var/www/topshot-admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php:116 #1 Illuminate\Foundation\Http\Kernel:handle in /var/www/topshot-admin/public/index.php:55 #0 require_once in /var/www/topshot-admin/index.php:21
57
Illuminate\Database\QueryException
/vendor/laravel/framework/src/Illuminate/Database/Connection.php664
56
PDOException
/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php70
55
PDO __construct
/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php70
54
Illuminate\Database\Connectors\Connector createPdoConnection
/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php46
53
Illuminate\Database\Connectors\Connector createConnection
/vendor/laravel/framework/src/Illuminate/Database/Connectors/MySqlConnector.php24
52
Illuminate\Database\Connectors\MySqlConnector connect
/vendor/laravel/framework/src/Illuminate/Database/Connectors/ConnectionFactory.php182
51
Illuminate\Database\Connectors\ConnectionFactory Illuminate\Database\Connectors\{closure}
/vendor/laravel/framework/src/Illuminate/Database/Connection.php918
50
call_user_func
/vendor/laravel/framework/src/Illuminate/Database/Connection.php918
49
Illuminate\Database\Connection getPdo
/vendor/laravel/framework/src/Illuminate/Database/Connection.php943
48
Illuminate\Database\Connection getReadPdo
/vendor/laravel/framework/src/Illuminate/Database/Connection.php399
47
Illuminate\Database\Connection getPdoForSelect
/vendor/laravel/framework/src/Illuminate/Database/Connection.php325
46
Illuminate\Database\Connection Illuminate\Database\{closure}
/vendor/laravel/framework/src/Illuminate/Database/Connection.php657
45
Illuminate\Database\Connection runQueryCallback
/vendor/laravel/framework/src/Illuminate/Database/Connection.php624
44
Illuminate\Database\Connection run
/vendor/laravel/framework/src/Illuminate/Database/Connection.php333
43
Illuminate\Database\Connection select
/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php2095
42
Illuminate\Database\Query\Builder runSelect
/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php2083
41
Illuminate\Database\Query\Builder Illuminate\Database\Query\{closure}
/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php2569
40
Illuminate\Database\Query\Builder onceWithColumns
/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php2084
39
Illuminate\Database\Query\Builder get
/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php519
38
Illuminate\Database\Eloquent\Builder getModels
/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php503
37
Illuminate\Database\Eloquent\Builder get
/vendor/laravel/framework/src/Illuminate/Database/Concerns/BuildsQueries.php77
36
Illuminate\Database\Eloquent\Builder first
/app/Providers/AppServiceProvider.php37
35
App\Providers\AppServiceProvider App\Providers\{closure}
/vendor/laravel/framework/src/Illuminate/View/Concerns/ManagesEvents.php164
34
Illuminate\View\Factory Illuminate\View\Concerns\{closure}
/vendor/laravel/framework/src/Illuminate/Events/Dispatcher.php357
33
Illuminate\Events\Dispatcher Illuminate\Events\{closure}
/vendor/laravel/framework/src/Illuminate/Events/Dispatcher.php209
32
Illuminate\Events\Dispatcher dispatch
/vendor/laravel/framework/src/Illuminate/View/Concerns/ManagesEvents.php179
31
Illuminate\View\Factory callComposer
/vendor/laravel/framework/src/Illuminate/View/View.php123
30
Illuminate\View\View renderContents
/vendor/laravel/framework/src/Illuminate/View/View.php90
29
Illuminate\View\View render
/vendor/laravel/framework/src/Illuminate/Http/Response.php42
28
Illuminate\Http\Response setContent
/vendor/symfony/http-foundation/Response.php205
27
Symfony\Component\HttpFoundation\Response __construct
/vendor/laravel/framework/src/Illuminate/Routing/ResponseFactory.php55
26
Illuminate\Routing\ResponseFactory make
/vendor/laravel/framework/src/Illuminate/Routing/ResponseFactory.php81
25
Illuminate\Routing\ResponseFactory view
/vendor/laravel/framework/src/Illuminate/Foundation/Exceptions/Handler.php380
24
Illuminate\Foundation\Exceptions\Handler renderHttpException
/vendor/laravel/framework/src/Illuminate/Foundation/Exceptions/Handler.php289
23
Illuminate\Foundation\Exceptions\Handler prepareResponse
/vendor/laravel/framework/src/Illuminate/Foundation/Exceptions/Handler.php188
22
Illuminate\Foundation\Exceptions\Handler render
/app/Exceptions/Handler.php49
21
App\Exceptions\Handler render
/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php83
20
Illuminate\Routing\Pipeline handleException
/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php32
19
Illuminate\Routing\Pipeline Illuminate\Routing\{closure}
/vendor/fideloper/proxy/src/TrustProxies.php57
18
Fideloper\Proxy\TrustProxies handle
/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php163
17
Illuminate\Pipeline\Pipeline Illuminate\Pipeline\{closure}
/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php53
16
Illuminate\Routing\Pipeline Illuminate\Routing\{closure}
/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php31
15
Illuminate\Foundation\Http\Middleware\TransformsRequest handle
/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php163
14
Illuminate\Pipeline\Pipeline Illuminate\Pipeline\{closure}
/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php53
13
Illuminate\Routing\Pipeline Illuminate\Routing\{closure}
/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php31
12
Illuminate\Foundation\Http\Middleware\TransformsRequest handle
/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php163
11
Illuminate\Pipeline\Pipeline Illuminate\Pipeline\{closure}
/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php53
10
Illuminate\Routing\Pipeline Illuminate\Routing\{closure}
/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php27
9
Illuminate\Foundation\Http\Middleware\ValidatePostSize handle
/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php163
8
Illuminate\Pipeline\Pipeline Illuminate\Pipeline\{closure}
/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php53
7
Illuminate\Routing\Pipeline Illuminate\Routing\{closure}
/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/CheckForMaintenanceMode.php62
6
Illuminate\Foundation\Http\Middleware\CheckForMaintenanceMode handle
/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php163
5
Illuminate\Pipeline\Pipeline Illuminate\Pipeline\{closure}
/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php53
4
Illuminate\Routing\Pipeline Illuminate\Routing\{closure}
/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php104
3
Illuminate\Pipeline\Pipeline then
/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php151
2
Illuminate\Foundation\Http\Kernel sendRequestThroughRouter
/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php116
1
Illuminate\Foundation\Http\Kernel handle
/public/index.php55
0
require_once
/index.php21
/var/www/topshot-admin/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 `settings` where `settingkey` = site_name limit 1)"
    
/var/www/topshot-admin/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
/var/www/topshot-admin/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=topshot"
    
  2. "root"
    
  3. "S)ue)5:2YR"23J"
    
  4. array:5 [
      8 => 0
      3 => 2
      11 => 0
      17 => false
      20 => false
    ]
    
/var/www/topshot-admin/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=topshot"
    
  2. "root"
    
  3. "S)ue)5:2YR"23J"
    
  4. array:5 [
      8 => 0
      3 => 2
      11 => 0
      17 => false
      20 => false
    ]
    
/var/www/topshot-admin/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=topshot"
    
  2. array:14 [
      "driver" => "mysql"
      "host" => "127.0.0.1"
      "port" => "3306"
      "database" => "topshot"
      "username" => "root"
      "password" => "S)ue)5:2YR"23J"
      "unix_socket" => ""
      "charset" => "utf8mb4"
      "collation" => "utf8mb4_unicode_ci"
      "prefix" => ""
      "prefix_indexes" => true
      "strict" => false
      "engine" => null
      "name" => "mysql"
    ]
    
  3. array:5 [
      8 => 0
      3 => 2
      11 => 0
      17 => false
      20 => false
    ]
    
/var/www/topshot-admin/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:14 [
      "driver" => "mysql"
      "host" => "127.0.0.1"
      "port" => "3306"
      "database" => "topshot"
      "username" => "root"
      "password" => "S)ue)5:2YR"23J"
      "unix_socket" => ""
      "charset" => "utf8mb4"
      "collation" => "utf8mb4_unicode_ci"
      "prefix" => ""
      "prefix_indexes" => true
      "strict" => false
      "engine" => null
      "name" => "mysql"
    ]
    
/var/www/topshot-admin/vendor/laravel/framework/src/Illuminate/Database/Connection.php
 
            $this->doctrineConnection = new DoctrineConnection([
                'pdo' => $this->getPdo(),
                'dbname' => $this->getConfig('database'),
                'driver' => $driver->getName(),
            ], $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();
        }
 
/var/www/topshot-admin/vendor/laravel/framework/src/Illuminate/Database/Connection.php
 
            $this->doctrineConnection = new DoctrineConnection([
                'pdo' => $this->getPdo(),
                'dbname' => $this->getConfig('database'),
                'driver' => $driver->getName(),
            ], $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() {#1126 …4}
    
/var/www/topshot-admin/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.
     *
/var/www/topshot-admin/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
/var/www/topshot-admin/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
    
/var/www/topshot-admin/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 `settings` where `settingkey` = ? limit 1"
    
  2. array:1 [
      0 => "site_name"
    ]
    
/var/www/topshot-admin/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 `settings` where `settingkey` = ? limit 1"
    
  2. array:1 [
      0 => "site_name"
    ]
    
  3. Closure($query, $bindings) {#1138 …4}
    
/var/www/topshot-admin/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 `settings` where `settingkey` = ? limit 1"
    
  2. array:1 [
      0 => "site_name"
    ]
    
  3. Closure($query, $bindings) {#1138 …4}
    
/var/www/topshot-admin/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php
     *
     * @param  array  $columns
     * @return \Illuminate\Support\Collection
     */
    public function get($columns = ['*'])
    {
        return collect($this->onceWithColumns($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($columns);
 
        $results = $total ? $this->forPage($page, $perPage)->get($columns) : collect();
 
Arguments
  1. "select * from `settings` where `settingkey` = ? limit 1"
    
  2. array:1 [
      0 => "site_name"
    ]
    
  3. true
    
/var/www/topshot-admin/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  $columns
     * @return \Illuminate\Support\Collection
     */
    public function get($columns = ['*'])
    {
        return collect($this->onceWithColumns($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
/var/www/topshot-admin/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;
        }
/var/www/topshot-admin/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  $columns
     * @return \Illuminate\Support\Collection
     */
    public function get($columns = ['*'])
    {
        return collect($this->onceWithColumns($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() {#1133 …4}
    
/var/www/topshot-admin/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 => "*"
    ]
    
/var/www/topshot-admin/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 => "*"
    ]
    
/var/www/topshot-admin/vendor/laravel/framework/src/Illuminate/Database/Concerns/BuildsQueries.php
    public function each(callable $callback, $count = 1000)
    {
        return $this->chunk($count, function ($results) use ($callback) {
            foreach ($results as $key => $value) {
                if ($callback($value, $key) === false) {
                    return false;
                }
            }
        });
    }
 
    /**
     * Execute the query and get the first result.
     *
     * @param  array  $columns
     * @return \Illuminate\Database\Eloquent\Model|object|static|null
     */
    public function first($columns = ['*'])
    {
        return $this->take(1)->get($columns)->first();
    }
 
    /**
     * Apply the callback's query changes if the given "value" is true.
     *
     * @param  mixed  $value
     * @param  callable  $callback
     * @param  callable  $default
     * @return mixed|$this
     */
    public function when($value, $callback, $default = null)
    {
        if ($value) {
            return $callback($this, $value) ?: $this;
        } elseif ($default) {
            return $default($this, $value) ?: $this;
        }
 
        return $this;
    }
Arguments
  1. array:1 [
      0 => "*"
    ]
    
/var/www/topshot-admin/app/Providers/AppServiceProvider.php
    /**
     * Register any application services.
     *
     * @return void
     */
    public function register()
    {
        //
    }
 
    /**
     * Bootstrap any application services.
     *
     * @return void
     */
    public function boot()
    {
        Artisan::call('config:clear');
        view()->composer(['*'], function ($view) {
            $sitename = Setting::where('settingkey', 'site_name')->first()->settingvalue;
            $view->with('sitename', $sitename);
            if (Auth::check()) {
                $dateformat = Setting::where('settingkey', 'date_format')->first()->settingvalue;
                $view->with('dateformat', $dateformat);
                $notificationCount = Notification::where('to', 'admin')->orderBy('id', 'desc')->where('is_unread', 1)->count();
                $view->with('notificationCount', $notificationCount);
                $notificationsMenu = Notification::where('to', 'admin')->orderBy('id', 'desc')->take(5)->get();
                $view->with('notificationsMenu', $notificationsMenu);
 
                $depositeRequestPendingCount = Customerdeposit::where('status', 'Pending')->count();
                $view->with('depositeRequestPendingCount', $depositeRequestPendingCount);
 
                $withdrawlRequestPendingCount = Customerwithdraw::where('status', 'Pending')->count();
                $view->with('withdrawlRequestPendingCount', $withdrawlRequestPendingCount);
 
                $PlatformtransferRequestPendingCount = Platformtransfer::where('status', 'Pending')->count();
                $view->with('PlatformtransferRequestPendingCount', $PlatformtransferRequestPendingCount);
 
                $PlatformamounttransferRequestPendingCount = Platformamounttransfer::where('status', 'Pending')->count();
                $view->with('PlatformamounttransferRequestPendingCount', $PlatformamounttransferRequestPendingCount);
/var/www/topshot-admin/vendor/laravel/framework/src/Illuminate/View/Concerns/ManagesEvents.php
     * @param  string  $prefix
     * @return string
     */
    protected function classEventMethodForPrefix($prefix)
    {
        return Str::contains($prefix, 'composing') ? 'compose' : 'create';
    }
 
    /**
     * Add a listener to the event dispatcher.
     *
     * @param  string    $name
     * @param  \Closure  $callback
     * @return void
     */
    protected function addEventListener($name, $callback)
    {
        if (Str::contains($name, '*')) {
            $callback = function ($name, array $data) use ($callback) {
                return $callback($data[0]);
            };
        }
 
        $this->events->listen($name, $callback);
    }
 
    /**
     * Call the composer for a given view.
     *
     * @param  \Illuminate\Contracts\View\View  $view
     * @return void
     */
    public function callComposer(ViewContract $view)
    {
        $this->events->dispatch('composing: '.$view->name(), [$view]);
    }
 
    /**
     * Call the creator for a given view.
     *
Arguments
  1. Illuminate\View\View {#1069}
    
/var/www/topshot-admin/vendor/laravel/framework/src/Illuminate/Events/Dispatcher.php
 
        return $listeners;
    }
 
    /**
     * Register an event listener with the dispatcher.
     *
     * @param  \Closure|string  $listener
     * @param  bool  $wildcard
     * @return \Closure
     */
    public function makeListener($listener, $wildcard = false)
    {
        if (is_string($listener)) {
            return $this->createClassListener($listener, $wildcard);
        }
 
        return function ($event, $payload) use ($listener, $wildcard) {
            if ($wildcard) {
                return $listener($event, $payload);
            }
 
            return $listener(...array_values($payload));
        };
    }
 
    /**
     * Create a class based listener using the IoC container.
     *
     * @param  string  $listener
     * @param  bool  $wildcard
     * @return \Closure
     */
    public function createClassListener($listener, $wildcard = false)
    {
        return function ($event, $payload) use ($listener, $wildcard) {
            if ($wildcard) {
                return call_user_func($this->createClassCallable($listener), $event, $payload);
            }
 
Arguments
  1. "composing: errors::404"
    
  2. array:1 [
      0 => Illuminate\View\View {#1069}
    ]
    
/var/www/topshot-admin/vendor/laravel/framework/src/Illuminate/Events/Dispatcher.php
     * @param  bool  $halt
     * @return array|null
     */
    public function dispatch($event, $payload = [], $halt = false)
    {
        // When the given "event" is actually an object we will assume it is an event
        // object and use the class as the event name and this event itself as the
        // payload to the handler, which makes object based events quite simple.
        [$event, $payload] = $this->parseEventAndPayload(
            $event, $payload
        );
 
        if ($this->shouldBroadcast($payload)) {
            $this->broadcastEvent($payload[0]);
        }
 
        $responses = [];
 
        foreach ($this->getListeners($event) as $listener) {
            $response = $listener($event, $payload);
 
            // If a response is returned from the listener and event halting is enabled
            // we will just return this response, and not call the rest of the event
            // listeners. Otherwise we will add the response on the response list.
            if ($halt && ! is_null($response)) {
                return $response;
            }
 
            // If a boolean false is returned from a listener, we will stop propagating
            // the event to any further listeners down in the chain, else we keep on
            // looping through the listeners and firing every one in our sequence.
            if ($response === false) {
                break;
            }
 
            $responses[] = $response;
        }
 
        return $halt ? null : $responses;
    }
Arguments
  1. "composing: errors::404"
    
  2. array:1 [
      0 => Illuminate\View\View {#1069}
    ]
    
/var/www/topshot-admin/vendor/laravel/framework/src/Illuminate/View/Concerns/ManagesEvents.php
    protected function addEventListener($name, $callback)
    {
        if (Str::contains($name, '*')) {
            $callback = function ($name, array $data) use ($callback) {
                return $callback($data[0]);
            };
        }
 
        $this->events->listen($name, $callback);
    }
 
    /**
     * Call the composer for a given view.
     *
     * @param  \Illuminate\Contracts\View\View  $view
     * @return void
     */
    public function callComposer(ViewContract $view)
    {
        $this->events->dispatch('composing: '.$view->name(), [$view]);
    }
 
    /**
     * Call the creator for a given view.
     *
     * @param  \Illuminate\Contracts\View\View  $view
     * @return void
     */
    public function callCreator(ViewContract $view)
    {
        $this->events->dispatch('creating: '.$view->name(), [$view]);
    }
}
 
Arguments
  1. "composing: errors::404"
    
  2. array:1 [
      0 => Illuminate\View\View {#1069}
    ]
    
/var/www/topshot-admin/vendor/laravel/framework/src/Illuminate/View/View.php
        } catch (Throwable $e) {
            $this->factory->flushState();
 
            throw $e;
        }
    }
 
    /**
     * Get the contents of the view instance.
     *
     * @return string
     */
    protected function renderContents()
    {
        // We will keep track of the amount of views being rendered so we can flush
        // the section after the complete rendering operation is done. This will
        // clear out the sections for any separate views that may be rendered.
        $this->factory->incrementRender();
 
        $this->factory->callComposer($this);
 
        $contents = $this->getContents();
 
        // Once we've finished rendering the view, we'll decrement the render count
        // so that each sections get flushed out next time a view is created and
        // no old sections are staying around in the memory of an environment.
        $this->factory->decrementRender();
 
        return $contents;
    }
 
    /**
     * Get the evaluated contents of the view.
     *
     * @return string
     */
    protected function getContents()
    {
        return $this->engine->get($this->path, $this->gatherData());
    }
Arguments
  1. Illuminate\View\View {#1069}
    
/var/www/topshot-admin/vendor/laravel/framework/src/Illuminate/View/View.php
        $this->view = $view;
        $this->path = $path;
        $this->engine = $engine;
        $this->factory = $factory;
 
        $this->data = $data instanceof Arrayable ? $data->toArray() : (array) $data;
    }
 
    /**
     * Get the string contents of the view.
     *
     * @param  callable|null  $callback
     * @return string
     *
     * @throws \Throwable
     */
    public function render(callable $callback = null)
    {
        try {
            $contents = $this->renderContents();
 
            $response = isset($callback) ? call_user_func($callback, $this, $contents) : null;
 
            // Once we have the contents of the view, we will flush the sections if we are
            // done rendering all views so that there is nothing left hanging over when
            // another view gets rendered in the future by the application developer.
            $this->factory->flushStateIfDoneRendering();
 
            return ! is_null($response) ? $response : $contents;
        } catch (Exception $e) {
            $this->factory->flushState();
 
            throw $e;
        } catch (Throwable $e) {
            $this->factory->flushState();
 
            throw $e;
        }
    }
 
/var/www/topshot-admin/vendor/laravel/framework/src/Illuminate/Http/Response.php
     * @return $this
     */
    public function setContent($content)
    {
        $this->original = $content;
 
        // If the content is "JSONable" we will set the appropriate header and convert
        // the content to JSON. This is useful when returning something like models
        // from routes that will be automatically transformed to their JSON form.
        if ($this->shouldBeJson($content)) {
            $this->header('Content-Type', 'application/json');
 
            $content = $this->morphToJson($content);
        }
 
        // If this content implements the "Renderable" interface then we will call the
        // render method on the object so we will avoid any "__toString" exceptions
        // that might be thrown and have their errors obscured by PHP's handling.
        elseif ($content instanceof Renderable) {
            $content = $content->render();
        }
 
        parent::setContent($content);
 
        return $this;
    }
 
    /**
     * Determine if the given content should be turned into JSON.
     *
     * @param  mixed  $content
     * @return bool
     */
    protected function shouldBeJson($content)
    {
        return $content instanceof Arrayable ||
               $content instanceof Jsonable ||
               $content instanceof ArrayObject ||
               $content instanceof JsonSerializable ||
               is_array($content);
/var/www/topshot-admin/vendor/symfony/http-foundation/Response.php
        500 => 'Internal Server Error',
        501 => 'Not Implemented',
        502 => 'Bad Gateway',
        503 => 'Service Unavailable',
        504 => 'Gateway Timeout',
        505 => 'HTTP Version Not Supported',
        506 => 'Variant Also Negotiates',                                     // RFC2295
        507 => 'Insufficient Storage',                                        // RFC4918
        508 => 'Loop Detected',                                               // RFC5842
        510 => 'Not Extended',                                                // RFC2774
        511 => 'Network Authentication Required',                             // RFC6585
    ];
 
    /**
     * @throws \InvalidArgumentException When the HTTP status code is not valid
     */
    public function __construct($content = '', int $status = 200, array $headers = [])
    {
        $this->headers = new ResponseHeaderBag($headers);
        $this->setContent($content);
        $this->setStatusCode($status);
        $this->setProtocolVersion('1.0');
    }
 
    /**
     * Factory method for chainability.
     *
     * Example:
     *
     *     return Response::create($body, 200)
     *         ->setSharedMaxAge(300);
     *
     * @param mixed $content The response content, see setContent()
     * @param int   $status  The response status code
     * @param array $headers An array of response headers
     *
     * @return static
     */
    public static function create($content = '', $status = 200, $headers = [])
    {
Arguments
  1. Illuminate\View\View {#1069}
    
/var/www/topshot-admin/vendor/laravel/framework/src/Illuminate/Routing/ResponseFactory.php
     * @param  \Illuminate\Routing\Redirector  $redirector
     * @return void
     */
    public function __construct(ViewFactory $view, Redirector $redirector)
    {
        $this->view = $view;
        $this->redirector = $redirector;
    }
 
    /**
     * Create a new response instance.
     *
     * @param  string  $content
     * @param  int  $status
     * @param  array  $headers
     * @return \Illuminate\Http\Response
     */
    public function make($content = '', $status = 200, array $headers = [])
    {
        return new Response($content, $status, $headers);
    }
 
    /**
     * Create a new "no content" response.
     *
     * @param  int  $status
     * @param  array  $headers
     * @return \Illuminate\Http\Response
     */
    public function noContent($status = 204, array $headers = [])
    {
        return $this->make('', $status, $headers);
    }
 
    /**
     * Create a new response for a given view.
     *
     * @param  string  $view
     * @param  array  $data
     * @param  int  $status
Arguments
  1. Illuminate\View\View {#1069}
    
  2. 404
    
  3. []
    
/var/www/topshot-admin/vendor/laravel/framework/src/Illuminate/Routing/ResponseFactory.php
     * @param  array  $headers
     * @return \Illuminate\Http\Response
     */
    public function noContent($status = 204, array $headers = [])
    {
        return $this->make('', $status, $headers);
    }
 
    /**
     * Create a new response for a given view.
     *
     * @param  string  $view
     * @param  array  $data
     * @param  int  $status
     * @param  array  $headers
     * @return \Illuminate\Http\Response
     */
    public function view($view, $data = [], $status = 200, array $headers = [])
    {
        return $this->make($this->view->make($view, $data), $status, $headers);
    }
 
    /**
     * Create a new JSON response instance.
     *
     * @param  mixed  $data
     * @param  int  $status
     * @param  array  $headers
     * @param  int  $options
     * @return \Illuminate\Http\JsonResponse
     */
    public function json($data = [], $status = 200, array $headers = [], $options = 0)
    {
        return new JsonResponse($data, $status, $headers, $options);
    }
 
    /**
     * Create a new JSONP response instance.
     *
     * @param  string  $callback
Arguments
  1. Illuminate\View\View {#1069}
    
  2. 404
    
  3. []
    
/var/www/topshot-admin/vendor/laravel/framework/src/Illuminate/Foundation/Exceptions/Handler.php
        return (new SymfonyExceptionHandler($debug))->getHtml(
            FlattenException::create($e)
        );
    }
 
    /**
     * Render the given HttpException.
     *
     * @param  \Symfony\Component\HttpKernel\Exception\HttpException  $e
     * @return \Symfony\Component\HttpFoundation\Response
     */
    protected function renderHttpException(HttpException $e)
    {
        $this->registerErrorViewPaths();
 
        if (view()->exists($view = "errors::{$e->getStatusCode()}")) {
            return response()->view($view, [
                'errors' => new ViewErrorBag,
                'exception' => $e,
            ], $e->getStatusCode(), $e->getHeaders());
        }
 
        return $this->convertExceptionToResponse($e);
    }
 
    /**
     * Register the error template hint paths.
     *
     * @return void
     */
    protected function registerErrorViewPaths()
    {
        $paths = collect(config('view.paths'));
 
        View::replaceNamespace('errors', $paths->map(function ($path) {
            return "{$path}/errors";
        })->push(__DIR__.'/views')->all());
    }
 
    /**
Arguments
  1. "errors::404"
    
  2. array:2 [
      "errors" => Illuminate\Support\ViewErrorBag {#1068}
      "exception" => Symfony\Component\HttpKernel\Exception\NotFoundHttpException {#881
        -statusCode: 404
        -headers: []
        #message: ""
        #code: 0
        #file: "/var/www/topshot-admin/vendor/laravel/framework/src/Illuminate/Routing/RouteCollection.php"
        #line: 179
      }
    ]
    
  3. 404
    
  4. []
    
/var/www/topshot-admin/vendor/laravel/framework/src/Illuminate/Foundation/Exceptions/Handler.php
 
    /**
     * Prepare a response for the given exception.
     *
     * @param  \Illuminate\Http\Request  $request
     * @param  \Exception $e
     * @return \Symfony\Component\HttpFoundation\Response
     */
    protected function prepareResponse($request, Exception $e)
    {
        if (! $this->isHttpException($e) && config('app.debug')) {
            return $this->toIlluminateResponse($this->convertExceptionToResponse($e), $e);
        }
 
        if (! $this->isHttpException($e)) {
            $e = new HttpException(500, $e->getMessage());
        }
 
        return $this->toIlluminateResponse(
            $this->renderHttpException($e), $e
        );
    }
 
    /**
     * Create a Symfony response for the given exception.
     *
     * @param  \Exception  $e
     * @return \Symfony\Component\HttpFoundation\Response
     */
    protected function convertExceptionToResponse(Exception $e)
    {
        return SymfonyResponse::create(
            $this->renderExceptionContent($e),
            $this->isHttpException($e) ? $e->getStatusCode() : 500,
            $this->isHttpException($e) ? $e->getHeaders() : []
        );
    }
 
    /**
     * Get the response content for the given exception.
Arguments
  1. Symfony\Component\HttpKernel\Exception\NotFoundHttpException {#881
      -statusCode: 404
      -headers: []
      #message: ""
      #code: 0
      #file: "/var/www/topshot-admin/vendor/laravel/framework/src/Illuminate/Routing/RouteCollection.php"
      #line: 179
    }
    
/var/www/topshot-admin/vendor/laravel/framework/src/Illuminate/Foundation/Exceptions/Handler.php
    {
        if (method_exists($e, 'render') && $response = $e->render($request)) {
            return Router::toResponse($request, $response);
        } elseif ($e instanceof Responsable) {
            return $e->toResponse($request);
        }
 
        $e = $this->prepareException($e);
 
        if ($e instanceof HttpResponseException) {
            return $e->getResponse();
        } elseif ($e instanceof AuthenticationException) {
            return $this->unauthenticated($request, $e);
        } elseif ($e instanceof ValidationException) {
            return $this->convertValidationExceptionToResponse($e, $request);
        }
 
        return $request->expectsJson()
                        ? $this->prepareJsonResponse($request, $e)
                        : $this->prepareResponse($request, $e);
    }
 
    /**
     * Prepare exception for rendering.
     *
     * @param  \Exception  $e
     * @return \Exception
     */
    protected function prepareException(Exception $e)
    {
        if ($e instanceof ModelNotFoundException) {
            $e = new NotFoundHttpException($e->getMessage(), $e);
        } elseif ($e instanceof AuthorizationException) {
            $e = new AccessDeniedHttpException($e->getMessage(), $e);
        } elseif ($e instanceof TokenMismatchException) {
            $e = new HttpException(419, $e->getMessage(), $e);
        }
 
        return $e;
    }
Arguments
  1. Illuminate\Http\Request {#42
      #json: null
      #convertedFiles: null
      #userResolver: Closure($guard = null) {#877 …4}
      #routeResolver: null
      +attributes: Symfony\Component\HttpFoundation\ParameterBag {#44}
      +request: Symfony\Component\HttpFoundation\ParameterBag {#50}
      +query: Symfony\Component\HttpFoundation\ParameterBag {#50}
      +server: Symfony\Component\HttpFoundation\ServerBag {#46}
      +files: Symfony\Component\HttpFoundation\FileBag {#47}
      +cookies: Symfony\Component\HttpFoundation\ParameterBag {#45}
      +headers: Symfony\Component\HttpFoundation\HeaderBag {#48}
      #content: null
      #languages: null
      #charsets: null
      #encodings: null
      #acceptableContentTypes: array:1 [
        0 => "*/*"
      ]
      #pathInfo: "/news/btc-mining-firm-griid-receives-525-million-credit-facility-from-blockchain-com"
      #requestUri: "/news/btc-mining-firm-griid-receives-525-million-credit-facility-from-blockchain-com"
      #baseUrl: ""
      #basePath: null
      #method: "GET"
      #format: null
      #session: null
      #locale: null
      #defaultLocale: "en"
      -preferredFormat: null
      -isHostValid: true
      -isForwardedValid: true
      basePath: ""
      format: "html"
    }
    
  2. Symfony\Component\HttpKernel\Exception\NotFoundHttpException {#881
      -statusCode: 404
      -headers: []
      #message: ""
      #code: 0
      #file: "/var/www/topshot-admin/vendor/laravel/framework/src/Illuminate/Routing/RouteCollection.php"
      #line: 179
    }
    
/var/www/topshot-admin/app/Exceptions/Handler.php
     * Report or log an exception.
     *
     * @param  \Exception  $exception
     * @return void
     */
    public function report(Exception $exception)
    {
        parent::report($exception);
    }
 
    /**
     * Render an exception into an HTTP response.
     *
     * @param  \Illuminate\Http\Request  $request
     * @param  \Exception  $exception
     * @return \Illuminate\Http\Response
     */
    public function render($request, Exception $exception)
    {
        return parent::render($request, $exception);
    }
}
 
Arguments
  1. Illuminate\Http\Request {#42
      #json: null
      #convertedFiles: null
      #userResolver: Closure($guard = null) {#877 …4}
      #routeResolver: null
      +attributes: Symfony\Component\HttpFoundation\ParameterBag {#44}
      +request: Symfony\Component\HttpFoundation\ParameterBag {#50}
      +query: Symfony\Component\HttpFoundation\ParameterBag {#50}
      +server: Symfony\Component\HttpFoundation\ServerBag {#46}
      +files: Symfony\Component\HttpFoundation\FileBag {#47}
      +cookies: Symfony\Component\HttpFoundation\ParameterBag {#45}
      +headers: Symfony\Component\HttpFoundation\HeaderBag {#48}
      #content: null
      #languages: null
      #charsets: null
      #encodings: null
      #acceptableContentTypes: array:1 [
        0 => "*/*"
      ]
      #pathInfo: "/news/btc-mining-firm-griid-receives-525-million-credit-facility-from-blockchain-com"
      #requestUri: "/news/btc-mining-firm-griid-receives-525-million-credit-facility-from-blockchain-com"
      #baseUrl: ""
      #basePath: null
      #method: "GET"
      #format: null
      #session: null
      #locale: null
      #defaultLocale: "en"
      -preferredFormat: null
      -isHostValid: true
      -isForwardedValid: true
      basePath: ""
      format: "html"
    }
    
  2. Symfony\Component\HttpKernel\Exception\NotFoundHttpException {#881
      -statusCode: 404
      -headers: []
      #message: ""
      #code: 0
      #file: "/var/www/topshot-admin/vendor/laravel/framework/src/Illuminate/Routing/RouteCollection.php"
      #line: 179
    }
    
/var/www/topshot-admin/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php
     * Handle the given exception.
     *
     * @param  mixed  $passable
     * @param  \Exception  $e
     * @return mixed
     *
     * @throws \Exception
     */
    protected function handleException($passable, Exception $e)
    {
        if (! $this->container->bound(ExceptionHandler::class) ||
            ! $passable instanceof Request) {
            throw $e;
        }
 
        $handler = $this->container->make(ExceptionHandler::class);
 
        $handler->report($e);
 
        $response = $handler->render($passable, $e);
 
        if (method_exists($response, 'withException')) {
            $response->withException($e);
        }
 
        return $response;
    }
}
 
Arguments
  1. Illuminate\Http\Request {#42
      #json: null
      #convertedFiles: null
      #userResolver: Closure($guard = null) {#877 …4}
      #routeResolver: null
      +attributes: Symfony\Component\HttpFoundation\ParameterBag {#44}
      +request: Symfony\Component\HttpFoundation\ParameterBag {#50}
      +query: Symfony\Component\HttpFoundation\ParameterBag {#50}
      +server: Symfony\Component\HttpFoundation\ServerBag {#46}
      +files: Symfony\Component\HttpFoundation\FileBag {#47}
      +cookies: Symfony\Component\HttpFoundation\ParameterBag {#45}
      +headers: Symfony\Component\HttpFoundation\HeaderBag {#48}
      #content: null
      #languages: null
      #charsets: null
      #encodings: null
      #acceptableContentTypes: array:1 [
        0 => "*/*"
      ]
      #pathInfo: "/news/btc-mining-firm-griid-receives-525-million-credit-facility-from-blockchain-com"
      #requestUri: "/news/btc-mining-firm-griid-receives-525-million-credit-facility-from-blockchain-com"
      #baseUrl: ""
      #basePath: null
      #method: "GET"
      #format: null
      #session: null
      #locale: null
      #defaultLocale: "en"
      -preferredFormat: null
      -isHostValid: true
      -isForwardedValid: true
      basePath: ""
      format: "html"
    }
    
  2. Symfony\Component\HttpKernel\Exception\NotFoundHttpException {#881
      -statusCode: 404
      -headers: []
      #message: ""
      #code: 0
      #file: "/var/www/topshot-admin/vendor/laravel/framework/src/Illuminate/Routing/RouteCollection.php"
      #line: 179
    }
    
/var/www/topshot-admin/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php
/**
 * This extended pipeline catches any exceptions that occur during each slice.
 *
 * The exceptions are converted to HTTP responses for proper middleware handling.
 */
class Pipeline extends BasePipeline
{
    /**
     * Get the final piece of the Closure onion.
     *
     * @param  \Closure  $destination
     * @return \Closure
     */
    protected function prepareDestination(Closure $destination)
    {
        return function ($passable) use ($destination) {
            try {
                return $destination($passable);
            } catch (Exception $e) {
                return $this->handleException($passable, $e);
            } catch (Throwable $e) {
                return $this->handleException($passable, new FatalThrowableError($e));
            }
        };
    }
 
    /**
     * Get a Closure that represents a slice of the application onion.
     *
     * @return \Closure
     */
    protected function carry()
    {
        return function ($stack, $pipe) {
            return function ($passable) use ($stack, $pipe) {
                try {
                    $slice = parent::carry();
 
                    $callable = $slice($stack, $pipe);
 
Arguments
  1. Illuminate\Http\Request {#42
      #json: null
      #convertedFiles: null
      #userResolver: Closure($guard = null) {#877 …4}
      #routeResolver: null
      +attributes: Symfony\Component\HttpFoundation\ParameterBag {#44}
      +request: Symfony\Component\HttpFoundation\ParameterBag {#50}
      +query: Symfony\Component\HttpFoundation\ParameterBag {#50}
      +server: Symfony\Component\HttpFoundation\ServerBag {#46}
      +files: Symfony\Component\HttpFoundation\FileBag {#47}
      +cookies: Symfony\Component\HttpFoundation\ParameterBag {#45}
      +headers: Symfony\Component\HttpFoundation\HeaderBag {#48}
      #content: null
      #languages: null
      #charsets: null
      #encodings: null
      #acceptableContentTypes: array:1 [
        0 => "*/*"
      ]
      #pathInfo: "/news/btc-mining-firm-griid-receives-525-million-credit-facility-from-blockchain-com"
      #requestUri: "/news/btc-mining-firm-griid-receives-525-million-credit-facility-from-blockchain-com"
      #baseUrl: ""
      #basePath: null
      #method: "GET"
      #format: null
      #session: null
      #locale: null
      #defaultLocale: "en"
      -preferredFormat: null
      -isHostValid: true
      -isForwardedValid: true
      basePath: ""
      format: "html"
    }
    
  2. Symfony\Component\HttpKernel\Exception\NotFoundHttpException {#881
      -statusCode: 404
      -headers: []
      #message: ""
      #code: 0
      #file: "/var/www/topshot-admin/vendor/laravel/framework/src/Illuminate/Routing/RouteCollection.php"
      #line: 179
    }
    
/var/www/topshot-admin/vendor/fideloper/proxy/src/TrustProxies.php
    {
        $this->config = $config;
    }
 
    /**
     * Handle an incoming request.
     *
     * @param \Illuminate\Http\Request $request
     * @param \Closure                 $next
     *
     * @throws \Symfony\Component\HttpKernel\Exception\HttpException
     *
     * @return mixed
     */
    public function handle(Request $request, Closure $next)
    {
        $request::setTrustedProxies([], $this->getTrustedHeaderNames()); // Reset trusted proxies between requests
        $this->setTrustedProxyIpAddresses($request);
 
        return $next($request);
    }
 
    /**
     * Sets the trusted proxies on the request to the value of trustedproxy.proxies
     *
     * @param \Illuminate\Http\Request $request
     */
    protected function setTrustedProxyIpAddresses(Request $request)
    {
        $trustedIps = $this->proxies ?: $this->config->get('trustedproxy.proxies');
 
        // Trust any IP address that calls us
        // `**` for backwards compatibility, but is deprecated
        if ($trustedIps === '*' || $trustedIps === '**') {
            return $this->setTrustedProxyIpAddressesToTheCallingIp($request);
        }
 
        // Support IPs addresses separated by comma
        $trustedIps = is_string($trustedIps) ? array_map('trim', explode(',', $trustedIps)) : $trustedIps;
 
Arguments
  1. Illuminate\Http\Request {#42
      #json: null
      #convertedFiles: null
      #userResolver: Closure($guard = null) {#877 …4}
      #routeResolver: null
      +attributes: Symfony\Component\HttpFoundation\ParameterBag {#44}
      +request: Symfony\Component\HttpFoundation\ParameterBag {#50}
      +query: Symfony\Component\HttpFoundation\ParameterBag {#50}
      +server: Symfony\Component\HttpFoundation\ServerBag {#46}
      +files: Symfony\Component\HttpFoundation\FileBag {#47}
      +cookies: Symfony\Component\HttpFoundation\ParameterBag {#45}
      +headers: Symfony\Component\HttpFoundation\HeaderBag {#48}
      #content: null
      #languages: null
      #charsets: null
      #encodings: null
      #acceptableContentTypes: array:1 [
        0 => "*/*"
      ]
      #pathInfo: "/news/btc-mining-firm-griid-receives-525-million-credit-facility-from-blockchain-com"
      #requestUri: "/news/btc-mining-firm-griid-receives-525-million-credit-facility-from-blockchain-com"
      #baseUrl: ""
      #basePath: null
      #method: "GET"
      #format: null
      #session: null
      #locale: null
      #defaultLocale: "en"
      -preferredFormat: null
      -isHostValid: true
      -isForwardedValid: true
      basePath: ""
      format: "html"
    }
    
/var/www/topshot-admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php
                    // the appropriate method and arguments, returning the results back out.
                    return $pipe($passable, $stack);
                } elseif (! is_object($pipe)) {
                    [$name, $parameters] = $this->parsePipeString($pipe);
 
                    // If the pipe is a string we will parse the string and resolve the class out
                    // of the dependency injection container. We can then build a callable and
                    // execute the pipe function giving in the parameters that are required.
                    $pipe = $this->getContainer()->make($name);
 
                    $parameters = array_merge([$passable, $stack], $parameters);
                } else {
                    // If the pipe is already an object we'll just make a callable and pass it to
                    // the pipe as-is. There is no need to do any extra parsing and formatting
                    // since the object we're given was already a fully instantiated object.
                    $parameters = [$passable, $stack];
                }
 
                $response = method_exists($pipe, $this->method)
                                ? $pipe->{$this->method}(...$parameters)
                                : $pipe(...$parameters);
 
                return $response instanceof Responsable
                            ? $response->toResponse($this->getContainer()->make(Request::class))
                            : $response;
            };
        };
    }
 
    /**
     * Parse full pipe string to get name and parameters.
     *
     * @param  string $pipe
     * @return array
     */
    protected function parsePipeString($pipe)
    {
        [$name, $parameters] = array_pad(explode(':', $pipe, 2), 2, []);
 
        if (is_string($parameters)) {
Arguments
  1. Illuminate\Http\Request {#42
      #json: null
      #convertedFiles: null
      #userResolver: Closure($guard = null) {#877 …4}
      #routeResolver: null
      +attributes: Symfony\Component\HttpFoundation\ParameterBag {#44}
      +request: Symfony\Component\HttpFoundation\ParameterBag {#50}
      +query: Symfony\Component\HttpFoundation\ParameterBag {#50}
      +server: Symfony\Component\HttpFoundation\ServerBag {#46}
      +files: Symfony\Component\HttpFoundation\FileBag {#47}
      +cookies: Symfony\Component\HttpFoundation\ParameterBag {#45}
      +headers: Symfony\Component\HttpFoundation\HeaderBag {#48}
      #content: null
      #languages: null
      #charsets: null
      #encodings: null
      #acceptableContentTypes: array:1 [
        0 => "*/*"
      ]
      #pathInfo: "/news/btc-mining-firm-griid-receives-525-million-credit-facility-from-blockchain-com"
      #requestUri: "/news/btc-mining-firm-griid-receives-525-million-credit-facility-from-blockchain-com"
      #baseUrl: ""
      #basePath: null
      #method: "GET"
      #format: null
      #session: null
      #locale: null
      #defaultLocale: "en"
      -preferredFormat: null
      -isHostValid: true
      -isForwardedValid: true
      basePath: ""
      format: "html"
    }
    
  2. Closure($passable) {#854 …4}
    
/var/www/topshot-admin/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php
                return $this->handleException($passable, new FatalThrowableError($e));
            }
        };
    }
 
    /**
     * Get a Closure that represents a slice of the application onion.
     *
     * @return \Closure
     */
    protected function carry()
    {
        return function ($stack, $pipe) {
            return function ($passable) use ($stack, $pipe) {
                try {
                    $slice = parent::carry();
 
                    $callable = $slice($stack, $pipe);
 
                    return $callable($passable);
                } catch (Exception $e) {
                    return $this->handleException($passable, $e);
                } catch (Throwable $e) {
                    return $this->handleException($passable, new FatalThrowableError($e));
                }
            };
        };
    }
 
    /**
     * Handle the given exception.
     *
     * @param  mixed  $passable
     * @param  \Exception  $e
     * @return mixed
     *
     * @throws \Exception
     */
    protected function handleException($passable, Exception $e)
    {
Arguments
  1. Illuminate\Http\Request {#42
      #json: null
      #convertedFiles: null
      #userResolver: Closure($guard = null) {#877 …4}
      #routeResolver: null
      +attributes: Symfony\Component\HttpFoundation\ParameterBag {#44}
      +request: Symfony\Component\HttpFoundation\ParameterBag {#50}
      +query: Symfony\Component\HttpFoundation\ParameterBag {#50}
      +server: Symfony\Component\HttpFoundation\ServerBag {#46}
      +files: Symfony\Component\HttpFoundation\FileBag {#47}
      +cookies: Symfony\Component\HttpFoundation\ParameterBag {#45}
      +headers: Symfony\Component\HttpFoundation\HeaderBag {#48}
      #content: null
      #languages: null
      #charsets: null
      #encodings: null
      #acceptableContentTypes: array:1 [
        0 => "*/*"
      ]
      #pathInfo: "/news/btc-mining-firm-griid-receives-525-million-credit-facility-from-blockchain-com"
      #requestUri: "/news/btc-mining-firm-griid-receives-525-million-credit-facility-from-blockchain-com"
      #baseUrl: ""
      #basePath: null
      #method: "GET"
      #format: null
      #session: null
      #locale: null
      #defaultLocale: "en"
      -preferredFormat: null
      -isHostValid: true
      -isForwardedValid: true
      basePath: ""
      format: "html"
    }
    
/var/www/topshot-admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php
     *
     * @var array
     */
    protected $attributes = [];
 
    /**
     * Handle an incoming request.
     *
     * @param  \Illuminate\Http\Request  $request
     * @param  \Closure  $next
     * @param  array  ...$attributes
     * @return mixed
     */
    public function handle($request, Closure $next, ...$attributes)
    {
        $this->attributes = $attributes;
 
        $this->clean($request);
 
        return $next($request);
    }
 
    /**
     * Clean the request's data.
     *
     * @param  \Illuminate\Http\Request  $request
     * @return void
     */
    protected function clean($request)
    {
        $this->cleanParameterBag($request->query);
 
        if ($request->isJson()) {
            $this->cleanParameterBag($request->json());
        } elseif ($request->request !== $request->query) {
            $this->cleanParameterBag($request->request);
        }
    }
 
    /**
Arguments
  1. Illuminate\Http\Request {#42
      #json: null
      #convertedFiles: null
      #userResolver: Closure($guard = null) {#877 …4}
      #routeResolver: null
      +attributes: Symfony\Component\HttpFoundation\ParameterBag {#44}
      +request: Symfony\Component\HttpFoundation\ParameterBag {#50}
      +query: Symfony\Component\HttpFoundation\ParameterBag {#50}
      +server: Symfony\Component\HttpFoundation\ServerBag {#46}
      +files: Symfony\Component\HttpFoundation\FileBag {#47}
      +cookies: Symfony\Component\HttpFoundation\ParameterBag {#45}
      +headers: Symfony\Component\HttpFoundation\HeaderBag {#48}
      #content: null
      #languages: null
      #charsets: null
      #encodings: null
      #acceptableContentTypes: array:1 [
        0 => "*/*"
      ]
      #pathInfo: "/news/btc-mining-firm-griid-receives-525-million-credit-facility-from-blockchain-com"
      #requestUri: "/news/btc-mining-firm-griid-receives-525-million-credit-facility-from-blockchain-com"
      #baseUrl: ""
      #basePath: null
      #method: "GET"
      #format: null
      #session: null
      #locale: null
      #defaultLocale: "en"
      -preferredFormat: null
      -isHostValid: true
      -isForwardedValid: true
      basePath: ""
      format: "html"
    }
    
/var/www/topshot-admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php
                    // the appropriate method and arguments, returning the results back out.
                    return $pipe($passable, $stack);
                } elseif (! is_object($pipe)) {
                    [$name, $parameters] = $this->parsePipeString($pipe);
 
                    // If the pipe is a string we will parse the string and resolve the class out
                    // of the dependency injection container. We can then build a callable and
                    // execute the pipe function giving in the parameters that are required.
                    $pipe = $this->getContainer()->make($name);
 
                    $parameters = array_merge([$passable, $stack], $parameters);
                } else {
                    // If the pipe is already an object we'll just make a callable and pass it to
                    // the pipe as-is. There is no need to do any extra parsing and formatting
                    // since the object we're given was already a fully instantiated object.
                    $parameters = [$passable, $stack];
                }
 
                $response = method_exists($pipe, $this->method)
                                ? $pipe->{$this->method}(...$parameters)
                                : $pipe(...$parameters);
 
                return $response instanceof Responsable
                            ? $response->toResponse($this->getContainer()->make(Request::class))
                            : $response;
            };
        };
    }
 
    /**
     * Parse full pipe string to get name and parameters.
     *
     * @param  string $pipe
     * @return array
     */
    protected function parsePipeString($pipe)
    {
        [$name, $parameters] = array_pad(explode(':', $pipe, 2), 2, []);
 
        if (is_string($parameters)) {
Arguments
  1. Illuminate\Http\Request {#42
      #json: null
      #convertedFiles: null
      #userResolver: Closure($guard = null) {#877 …4}
      #routeResolver: null
      +attributes: Symfony\Component\HttpFoundation\ParameterBag {#44}
      +request: Symfony\Component\HttpFoundation\ParameterBag {#50}
      +query: Symfony\Component\HttpFoundation\ParameterBag {#50}
      +server: Symfony\Component\HttpFoundation\ServerBag {#46}
      +files: Symfony\Component\HttpFoundation\FileBag {#47}
      +cookies: Symfony\Component\HttpFoundation\ParameterBag {#45}
      +headers: Symfony\Component\HttpFoundation\HeaderBag {#48}
      #content: null
      #languages: null
      #charsets: null
      #encodings: null
      #acceptableContentTypes: array:1 [
        0 => "*/*"
      ]
      #pathInfo: "/news/btc-mining-firm-griid-receives-525-million-credit-facility-from-blockchain-com"
      #requestUri: "/news/btc-mining-firm-griid-receives-525-million-credit-facility-from-blockchain-com"
      #baseUrl: ""
      #basePath: null
      #method: "GET"
      #format: null
      #session: null
      #locale: null
      #defaultLocale: "en"
      -preferredFormat: null
      -isHostValid: true
      -isForwardedValid: true
      basePath: ""
      format: "html"
    }
    
  2. Closure($passable) {#857 …4}
    
/var/www/topshot-admin/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php
                return $this->handleException($passable, new FatalThrowableError($e));
            }
        };
    }
 
    /**
     * Get a Closure that represents a slice of the application onion.
     *
     * @return \Closure
     */
    protected function carry()
    {
        return function ($stack, $pipe) {
            return function ($passable) use ($stack, $pipe) {
                try {
                    $slice = parent::carry();
 
                    $callable = $slice($stack, $pipe);
 
                    return $callable($passable);
                } catch (Exception $e) {
                    return $this->handleException($passable, $e);
                } catch (Throwable $e) {
                    return $this->handleException($passable, new FatalThrowableError($e));
                }
            };
        };
    }
 
    /**
     * Handle the given exception.
     *
     * @param  mixed  $passable
     * @param  \Exception  $e
     * @return mixed
     *
     * @throws \Exception
     */
    protected function handleException($passable, Exception $e)
    {
Arguments
  1. Illuminate\Http\Request {#42
      #json: null
      #convertedFiles: null
      #userResolver: Closure($guard = null) {#877 …4}
      #routeResolver: null
      +attributes: Symfony\Component\HttpFoundation\ParameterBag {#44}
      +request: Symfony\Component\HttpFoundation\ParameterBag {#50}
      +query: Symfony\Component\HttpFoundation\ParameterBag {#50}
      +server: Symfony\Component\HttpFoundation\ServerBag {#46}
      +files: Symfony\Component\HttpFoundation\FileBag {#47}
      +cookies: Symfony\Component\HttpFoundation\ParameterBag {#45}
      +headers: Symfony\Component\HttpFoundation\HeaderBag {#48}
      #content: null
      #languages: null
      #charsets: null
      #encodings: null
      #acceptableContentTypes: array:1 [
        0 => "*/*"
      ]
      #pathInfo: "/news/btc-mining-firm-griid-receives-525-million-credit-facility-from-blockchain-com"
      #requestUri: "/news/btc-mining-firm-griid-receives-525-million-credit-facility-from-blockchain-com"
      #baseUrl: ""
      #basePath: null
      #method: "GET"
      #format: null
      #session: null
      #locale: null
      #defaultLocale: "en"
      -preferredFormat: null
      -isHostValid: true
      -isForwardedValid: true
      basePath: ""
      format: "html"
    }
    
/var/www/topshot-admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php
     *
     * @var array
     */
    protected $attributes = [];
 
    /**
     * Handle an incoming request.
     *
     * @param  \Illuminate\Http\Request  $request
     * @param  \Closure  $next
     * @param  array  ...$attributes
     * @return mixed
     */
    public function handle($request, Closure $next, ...$attributes)
    {
        $this->attributes = $attributes;
 
        $this->clean($request);
 
        return $next($request);
    }
 
    /**
     * Clean the request's data.
     *
     * @param  \Illuminate\Http\Request  $request
     * @return void
     */
    protected function clean($request)
    {
        $this->cleanParameterBag($request->query);
 
        if ($request->isJson()) {
            $this->cleanParameterBag($request->json());
        } elseif ($request->request !== $request->query) {
            $this->cleanParameterBag($request->request);
        }
    }
 
    /**
Arguments
  1. Illuminate\Http\Request {#42
      #json: null
      #convertedFiles: null
      #userResolver: Closure($guard = null) {#877 …4}
      #routeResolver: null
      +attributes: Symfony\Component\HttpFoundation\ParameterBag {#44}
      +request: Symfony\Component\HttpFoundation\ParameterBag {#50}
      +query: Symfony\Component\HttpFoundation\ParameterBag {#50}
      +server: Symfony\Component\HttpFoundation\ServerBag {#46}
      +files: Symfony\Component\HttpFoundation\FileBag {#47}
      +cookies: Symfony\Component\HttpFoundation\ParameterBag {#45}
      +headers: Symfony\Component\HttpFoundation\HeaderBag {#48}
      #content: null
      #languages: null
      #charsets: null
      #encodings: null
      #acceptableContentTypes: array:1 [
        0 => "*/*"
      ]
      #pathInfo: "/news/btc-mining-firm-griid-receives-525-million-credit-facility-from-blockchain-com"
      #requestUri: "/news/btc-mining-firm-griid-receives-525-million-credit-facility-from-blockchain-com"
      #baseUrl: ""
      #basePath: null
      #method: "GET"
      #format: null
      #session: null
      #locale: null
      #defaultLocale: "en"
      -preferredFormat: null
      -isHostValid: true
      -isForwardedValid: true
      basePath: ""
      format: "html"
    }
    
/var/www/topshot-admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php
                    // the appropriate method and arguments, returning the results back out.
                    return $pipe($passable, $stack);
                } elseif (! is_object($pipe)) {
                    [$name, $parameters] = $this->parsePipeString($pipe);
 
                    // If the pipe is a string we will parse the string and resolve the class out
                    // of the dependency injection container. We can then build a callable and
                    // execute the pipe function giving in the parameters that are required.
                    $pipe = $this->getContainer()->make($name);
 
                    $parameters = array_merge([$passable, $stack], $parameters);
                } else {
                    // If the pipe is already an object we'll just make a callable and pass it to
                    // the pipe as-is. There is no need to do any extra parsing and formatting
                    // since the object we're given was already a fully instantiated object.
                    $parameters = [$passable, $stack];
                }
 
                $response = method_exists($pipe, $this->method)
                                ? $pipe->{$this->method}(...$parameters)
                                : $pipe(...$parameters);
 
                return $response instanceof Responsable
                            ? $response->toResponse($this->getContainer()->make(Request::class))
                            : $response;
            };
        };
    }
 
    /**
     * Parse full pipe string to get name and parameters.
     *
     * @param  string $pipe
     * @return array
     */
    protected function parsePipeString($pipe)
    {
        [$name, $parameters] = array_pad(explode(':', $pipe, 2), 2, []);
 
        if (is_string($parameters)) {
Arguments
  1. Illuminate\Http\Request {#42
      #json: null
      #convertedFiles: null
      #userResolver: Closure($guard = null) {#877 …4}
      #routeResolver: null
      +attributes: Symfony\Component\HttpFoundation\ParameterBag {#44}
      +request: Symfony\Component\HttpFoundation\ParameterBag {#50}
      +query: Symfony\Component\HttpFoundation\ParameterBag {#50}
      +server: Symfony\Component\HttpFoundation\ServerBag {#46}
      +files: Symfony\Component\HttpFoundation\FileBag {#47}
      +cookies: Symfony\Component\HttpFoundation\ParameterBag {#45}
      +headers: Symfony\Component\HttpFoundation\HeaderBag {#48}
      #content: null
      #languages: null
      #charsets: null
      #encodings: null
      #acceptableContentTypes: array:1 [
        0 => "*/*"
      ]
      #pathInfo: "/news/btc-mining-firm-griid-receives-525-million-credit-facility-from-blockchain-com"
      #requestUri: "/news/btc-mining-firm-griid-receives-525-million-credit-facility-from-blockchain-com"
      #baseUrl: ""
      #basePath: null
      #method: "GET"
      #format: null
      #session: null
      #locale: null
      #defaultLocale: "en"
      -preferredFormat: null
      -isHostValid: true
      -isForwardedValid: true
      basePath: ""
      format: "html"
    }
    
  2. Closure($passable) {#858 …4}
    
/var/www/topshot-admin/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php
                return $this->handleException($passable, new FatalThrowableError($e));
            }
        };
    }
 
    /**
     * Get a Closure that represents a slice of the application onion.
     *
     * @return \Closure
     */
    protected function carry()
    {
        return function ($stack, $pipe) {
            return function ($passable) use ($stack, $pipe) {
                try {
                    $slice = parent::carry();
 
                    $callable = $slice($stack, $pipe);
 
                    return $callable($passable);
                } catch (Exception $e) {
                    return $this->handleException($passable, $e);
                } catch (Throwable $e) {
                    return $this->handleException($passable, new FatalThrowableError($e));
                }
            };
        };
    }
 
    /**
     * Handle the given exception.
     *
     * @param  mixed  $passable
     * @param  \Exception  $e
     * @return mixed
     *
     * @throws \Exception
     */
    protected function handleException($passable, Exception $e)
    {
Arguments
  1. Illuminate\Http\Request {#42
      #json: null
      #convertedFiles: null
      #userResolver: Closure($guard = null) {#877 …4}
      #routeResolver: null
      +attributes: Symfony\Component\HttpFoundation\ParameterBag {#44}
      +request: Symfony\Component\HttpFoundation\ParameterBag {#50}
      +query: Symfony\Component\HttpFoundation\ParameterBag {#50}
      +server: Symfony\Component\HttpFoundation\ServerBag {#46}
      +files: Symfony\Component\HttpFoundation\FileBag {#47}
      +cookies: Symfony\Component\HttpFoundation\ParameterBag {#45}
      +headers: Symfony\Component\HttpFoundation\HeaderBag {#48}
      #content: null
      #languages: null
      #charsets: null
      #encodings: null
      #acceptableContentTypes: array:1 [
        0 => "*/*"
      ]
      #pathInfo: "/news/btc-mining-firm-griid-receives-525-million-credit-facility-from-blockchain-com"
      #requestUri: "/news/btc-mining-firm-griid-receives-525-million-credit-facility-from-blockchain-com"
      #baseUrl: ""
      #basePath: null
      #method: "GET"
      #format: null
      #session: null
      #locale: null
      #defaultLocale: "en"
      -preferredFormat: null
      -isHostValid: true
      -isForwardedValid: true
      basePath: ""
      format: "html"
    }
    
/var/www/topshot-admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php
class ValidatePostSize
{
    /**
     * Handle an incoming request.
     *
     * @param  \Illuminate\Http\Request  $request
     * @param  \Closure  $next
     * @return mixed
     *
     * @throws \Illuminate\Http\Exceptions\PostTooLargeException
     */
    public function handle($request, Closure $next)
    {
        $max = $this->getPostMaxSize();
 
        if ($max > 0 && $request->server('CONTENT_LENGTH') > $max) {
            throw new PostTooLargeException;
        }
 
        return $next($request);
    }
 
    /**
     * Determine the server 'post_max_size' as bytes.
     *
     * @return int
     */
    protected function getPostMaxSize()
    {
        if (is_numeric($postMaxSize = ini_get('post_max_size'))) {
            return (int) $postMaxSize;
        }
 
        $metric = strtoupper(substr($postMaxSize, -1));
        $postMaxSize = (int) $postMaxSize;
 
        switch ($metric) {
            case 'K':
                return $postMaxSize * 1024;
            case 'M':
Arguments
  1. Illuminate\Http\Request {#42
      #json: null
      #convertedFiles: null
      #userResolver: Closure($guard = null) {#877 …4}
      #routeResolver: null
      +attributes: Symfony\Component\HttpFoundation\ParameterBag {#44}
      +request: Symfony\Component\HttpFoundation\ParameterBag {#50}
      +query: Symfony\Component\HttpFoundation\ParameterBag {#50}
      +server: Symfony\Component\HttpFoundation\ServerBag {#46}
      +files: Symfony\Component\HttpFoundation\FileBag {#47}
      +cookies: Symfony\Component\HttpFoundation\ParameterBag {#45}
      +headers: Symfony\Component\HttpFoundation\HeaderBag {#48}
      #content: null
      #languages: null
      #charsets: null
      #encodings: null
      #acceptableContentTypes: array:1 [
        0 => "*/*"
      ]
      #pathInfo: "/news/btc-mining-firm-griid-receives-525-million-credit-facility-from-blockchain-com"
      #requestUri: "/news/btc-mining-firm-griid-receives-525-million-credit-facility-from-blockchain-com"
      #baseUrl: ""
      #basePath: null
      #method: "GET"
      #format: null
      #session: null
      #locale: null
      #defaultLocale: "en"
      -preferredFormat: null
      -isHostValid: true
      -isForwardedValid: true
      basePath: ""
      format: "html"
    }
    
/var/www/topshot-admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php
                    // the appropriate method and arguments, returning the results back out.
                    return $pipe($passable, $stack);
                } elseif (! is_object($pipe)) {
                    [$name, $parameters] = $this->parsePipeString($pipe);
 
                    // If the pipe is a string we will parse the string and resolve the class out
                    // of the dependency injection container. We can then build a callable and
                    // execute the pipe function giving in the parameters that are required.
                    $pipe = $this->getContainer()->make($name);
 
                    $parameters = array_merge([$passable, $stack], $parameters);
                } else {
                    // If the pipe is already an object we'll just make a callable and pass it to
                    // the pipe as-is. There is no need to do any extra parsing and formatting
                    // since the object we're given was already a fully instantiated object.
                    $parameters = [$passable, $stack];
                }
 
                $response = method_exists($pipe, $this->method)
                                ? $pipe->{$this->method}(...$parameters)
                                : $pipe(...$parameters);
 
                return $response instanceof Responsable
                            ? $response->toResponse($this->getContainer()->make(Request::class))
                            : $response;
            };
        };
    }
 
    /**
     * Parse full pipe string to get name and parameters.
     *
     * @param  string $pipe
     * @return array
     */
    protected function parsePipeString($pipe)
    {
        [$name, $parameters] = array_pad(explode(':', $pipe, 2), 2, []);
 
        if (is_string($parameters)) {
Arguments
  1. Illuminate\Http\Request {#42
      #json: null
      #convertedFiles: null
      #userResolver: Closure($guard = null) {#877 …4}
      #routeResolver: null
      +attributes: Symfony\Component\HttpFoundation\ParameterBag {#44}
      +request: Symfony\Component\HttpFoundation\ParameterBag {#50}
      +query: Symfony\Component\HttpFoundation\ParameterBag {#50}
      +server: Symfony\Component\HttpFoundation\ServerBag {#46}
      +files: Symfony\Component\HttpFoundation\FileBag {#47}
      +cookies: Symfony\Component\HttpFoundation\ParameterBag {#45}
      +headers: Symfony\Component\HttpFoundation\HeaderBag {#48}
      #content: null
      #languages: null
      #charsets: null
      #encodings: null
      #acceptableContentTypes: array:1 [
        0 => "*/*"
      ]
      #pathInfo: "/news/btc-mining-firm-griid-receives-525-million-credit-facility-from-blockchain-com"
      #requestUri: "/news/btc-mining-firm-griid-receives-525-million-credit-facility-from-blockchain-com"
      #baseUrl: ""
      #basePath: null
      #method: "GET"
      #format: null
      #session: null
      #locale: null
      #defaultLocale: "en"
      -preferredFormat: null
      -isHostValid: true
      -isForwardedValid: true
      basePath: ""
      format: "html"
    }
    
  2. Closure($passable) {#859 …4}
    
/var/www/topshot-admin/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php
                return $this->handleException($passable, new FatalThrowableError($e));
            }
        };
    }
 
    /**
     * Get a Closure that represents a slice of the application onion.
     *
     * @return \Closure
     */
    protected function carry()
    {
        return function ($stack, $pipe) {
            return function ($passable) use ($stack, $pipe) {
                try {
                    $slice = parent::carry();
 
                    $callable = $slice($stack, $pipe);
 
                    return $callable($passable);
                } catch (Exception $e) {
                    return $this->handleException($passable, $e);
                } catch (Throwable $e) {
                    return $this->handleException($passable, new FatalThrowableError($e));
                }
            };
        };
    }
 
    /**
     * Handle the given exception.
     *
     * @param  mixed  $passable
     * @param  \Exception  $e
     * @return mixed
     *
     * @throws \Exception
     */
    protected function handleException($passable, Exception $e)
    {
Arguments
  1. Illuminate\Http\Request {#42
      #json: null
      #convertedFiles: null
      #userResolver: Closure($guard = null) {#877 …4}
      #routeResolver: null
      +attributes: Symfony\Component\HttpFoundation\ParameterBag {#44}
      +request: Symfony\Component\HttpFoundation\ParameterBag {#50}
      +query: Symfony\Component\HttpFoundation\ParameterBag {#50}
      +server: Symfony\Component\HttpFoundation\ServerBag {#46}
      +files: Symfony\Component\HttpFoundation\FileBag {#47}
      +cookies: Symfony\Component\HttpFoundation\ParameterBag {#45}
      +headers: Symfony\Component\HttpFoundation\HeaderBag {#48}
      #content: null
      #languages: null
      #charsets: null
      #encodings: null
      #acceptableContentTypes: array:1 [
        0 => "*/*"
      ]
      #pathInfo: "/news/btc-mining-firm-griid-receives-525-million-credit-facility-from-blockchain-com"
      #requestUri: "/news/btc-mining-firm-griid-receives-525-million-credit-facility-from-blockchain-com"
      #baseUrl: ""
      #basePath: null
      #method: "GET"
      #format: null
      #session: null
      #locale: null
      #defaultLocale: "en"
      -preferredFormat: null
      -isHostValid: true
      -isForwardedValid: true
      basePath: ""
      format: "html"
    }
    
/var/www/topshot-admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/CheckForMaintenanceMode.php
     *
     * @throws \Symfony\Component\HttpKernel\Exception\HttpException
     */
    public function handle($request, Closure $next)
    {
        if ($this->app->isDownForMaintenance()) {
            $data = json_decode(file_get_contents($this->app->storagePath().'/framework/down'), true);
 
            if (isset($data['allowed']) && IpUtils::checkIp($request->ip(), (array) $data['allowed'])) {
                return $next($request);
            }
 
            if ($this->inExceptArray($request)) {
                return $next($request);
            }
 
            throw new MaintenanceModeException($data['time'], $data['retry'], $data['message']);
        }
 
        return $next($request);
    }
 
    /**
     * Determine if the request has a URI that should be accessible in maintenance mode.
     *
     * @param  \Illuminate\Http\Request  $request
     * @return bool
     */
    protected function inExceptArray($request)
    {
        foreach ($this->except as $except) {
            if ($except !== '/') {
                $except = trim($except, '/');
            }
 
            if ($request->fullUrlIs($except) || $request->is($except)) {
                return true;
            }
        }
 
Arguments
  1. Illuminate\Http\Request {#42
      #json: null
      #convertedFiles: null
      #userResolver: Closure($guard = null) {#877 …4}
      #routeResolver: null
      +attributes: Symfony\Component\HttpFoundation\ParameterBag {#44}
      +request: Symfony\Component\HttpFoundation\ParameterBag {#50}
      +query: Symfony\Component\HttpFoundation\ParameterBag {#50}
      +server: Symfony\Component\HttpFoundation\ServerBag {#46}
      +files: Symfony\Component\HttpFoundation\FileBag {#47}
      +cookies: Symfony\Component\HttpFoundation\ParameterBag {#45}
      +headers: Symfony\Component\HttpFoundation\HeaderBag {#48}
      #content: null
      #languages: null
      #charsets: null
      #encodings: null
      #acceptableContentTypes: array:1 [
        0 => "*/*"
      ]
      #pathInfo: "/news/btc-mining-firm-griid-receives-525-million-credit-facility-from-blockchain-com"
      #requestUri: "/news/btc-mining-firm-griid-receives-525-million-credit-facility-from-blockchain-com"
      #baseUrl: ""
      #basePath: null
      #method: "GET"
      #format: null
      #session: null
      #locale: null
      #defaultLocale: "en"
      -preferredFormat: null
      -isHostValid: true
      -isForwardedValid: true
      basePath: ""
      format: "html"
    }
    
/var/www/topshot-admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php
                    // the appropriate method and arguments, returning the results back out.
                    return $pipe($passable, $stack);
                } elseif (! is_object($pipe)) {
                    [$name, $parameters] = $this->parsePipeString($pipe);
 
                    // If the pipe is a string we will parse the string and resolve the class out
                    // of the dependency injection container. We can then build a callable and
                    // execute the pipe function giving in the parameters that are required.
                    $pipe = $this->getContainer()->make($name);
 
                    $parameters = array_merge([$passable, $stack], $parameters);
                } else {
                    // If the pipe is already an object we'll just make a callable and pass it to
                    // the pipe as-is. There is no need to do any extra parsing and formatting
                    // since the object we're given was already a fully instantiated object.
                    $parameters = [$passable, $stack];
                }
 
                $response = method_exists($pipe, $this->method)
                                ? $pipe->{$this->method}(...$parameters)
                                : $pipe(...$parameters);
 
                return $response instanceof Responsable
                            ? $response->toResponse($this->getContainer()->make(Request::class))
                            : $response;
            };
        };
    }
 
    /**
     * Parse full pipe string to get name and parameters.
     *
     * @param  string $pipe
     * @return array
     */
    protected function parsePipeString($pipe)
    {
        [$name, $parameters] = array_pad(explode(':', $pipe, 2), 2, []);
 
        if (is_string($parameters)) {
Arguments
  1. Illuminate\Http\Request {#42
      #json: null
      #convertedFiles: null
      #userResolver: Closure($guard = null) {#877 …4}
      #routeResolver: null
      +attributes: Symfony\Component\HttpFoundation\ParameterBag {#44}
      +request: Symfony\Component\HttpFoundation\ParameterBag {#50}
      +query: Symfony\Component\HttpFoundation\ParameterBag {#50}
      +server: Symfony\Component\HttpFoundation\ServerBag {#46}
      +files: Symfony\Component\HttpFoundation\FileBag {#47}
      +cookies: Symfony\Component\HttpFoundation\ParameterBag {#45}
      +headers: Symfony\Component\HttpFoundation\HeaderBag {#48}
      #content: null
      #languages: null
      #charsets: null
      #encodings: null
      #acceptableContentTypes: array:1 [
        0 => "*/*"
      ]
      #pathInfo: "/news/btc-mining-firm-griid-receives-525-million-credit-facility-from-blockchain-com"
      #requestUri: "/news/btc-mining-firm-griid-receives-525-million-credit-facility-from-blockchain-com"
      #baseUrl: ""
      #basePath: null
      #method: "GET"
      #format: null
      #session: null
      #locale: null
      #defaultLocale: "en"
      -preferredFormat: null
      -isHostValid: true
      -isForwardedValid: true
      basePath: ""
      format: "html"
    }
    
  2. Closure($passable) {#860 …4}
    
/var/www/topshot-admin/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php
                return $this->handleException($passable, new FatalThrowableError($e));
            }
        };
    }
 
    /**
     * Get a Closure that represents a slice of the application onion.
     *
     * @return \Closure
     */
    protected function carry()
    {
        return function ($stack, $pipe) {
            return function ($passable) use ($stack, $pipe) {
                try {
                    $slice = parent::carry();
 
                    $callable = $slice($stack, $pipe);
 
                    return $callable($passable);
                } catch (Exception $e) {
                    return $this->handleException($passable, $e);
                } catch (Throwable $e) {
                    return $this->handleException($passable, new FatalThrowableError($e));
                }
            };
        };
    }
 
    /**
     * Handle the given exception.
     *
     * @param  mixed  $passable
     * @param  \Exception  $e
     * @return mixed
     *
     * @throws \Exception
     */
    protected function handleException($passable, Exception $e)
    {
Arguments
  1. Illuminate\Http\Request {#42
      #json: null
      #convertedFiles: null
      #userResolver: Closure($guard = null) {#877 …4}
      #routeResolver: null
      +attributes: Symfony\Component\HttpFoundation\ParameterBag {#44}
      +request: Symfony\Component\HttpFoundation\ParameterBag {#50}
      +query: Symfony\Component\HttpFoundation\ParameterBag {#50}
      +server: Symfony\Component\HttpFoundation\ServerBag {#46}
      +files: Symfony\Component\HttpFoundation\FileBag {#47}
      +cookies: Symfony\Component\HttpFoundation\ParameterBag {#45}
      +headers: Symfony\Component\HttpFoundation\HeaderBag {#48}
      #content: null
      #languages: null
      #charsets: null
      #encodings: null
      #acceptableContentTypes: array:1 [
        0 => "*/*"
      ]
      #pathInfo: "/news/btc-mining-firm-griid-receives-525-million-credit-facility-from-blockchain-com"
      #requestUri: "/news/btc-mining-firm-griid-receives-525-million-credit-facility-from-blockchain-com"
      #baseUrl: ""
      #basePath: null
      #method: "GET"
      #format: null
      #session: null
      #locale: null
      #defaultLocale: "en"
      -preferredFormat: null
      -isHostValid: true
      -isForwardedValid: true
      basePath: ""
      format: "html"
    }
    
/var/www/topshot-admin/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php
    public function via($method)
    {
        $this->method = $method;
 
        return $this;
    }
 
    /**
     * Run the pipeline with a final destination callback.
     *
     * @param  \Closure  $destination
     * @return mixed
     */
    public function then(Closure $destination)
    {
        $pipeline = array_reduce(
            array_reverse($this->pipes), $this->carry(), $this->prepareDestination($destination)
        );
 
        return $pipeline($this->passable);
    }
 
    /**
     * Run the pipeline and return the result.
     *
     * @return mixed
     */
    public function thenReturn()
    {
        return $this->then(function ($passable) {
            return $passable;
        });
    }
 
    /**
     * Get the final piece of the Closure onion.
     *
     * @param  \Closure  $destination
     * @return \Closure
     */
Arguments
  1. Illuminate\Http\Request {#42
      #json: null
      #convertedFiles: null
      #userResolver: Closure($guard = null) {#877 …4}
      #routeResolver: null
      +attributes: Symfony\Component\HttpFoundation\ParameterBag {#44}
      +request: Symfony\Component\HttpFoundation\ParameterBag {#50}
      +query: Symfony\Component\HttpFoundation\ParameterBag {#50}
      +server: Symfony\Component\HttpFoundation\ServerBag {#46}
      +files: Symfony\Component\HttpFoundation\FileBag {#47}
      +cookies: Symfony\Component\HttpFoundation\ParameterBag {#45}
      +headers: Symfony\Component\HttpFoundation\HeaderBag {#48}
      #content: null
      #languages: null
      #charsets: null
      #encodings: null
      #acceptableContentTypes: array:1 [
        0 => "*/*"
      ]
      #pathInfo: "/news/btc-mining-firm-griid-receives-525-million-credit-facility-from-blockchain-com"
      #requestUri: "/news/btc-mining-firm-griid-receives-525-million-credit-facility-from-blockchain-com"
      #baseUrl: ""
      #basePath: null
      #method: "GET"
      #format: null
      #session: null
      #locale: null
      #defaultLocale: "en"
      -preferredFormat: null
      -isHostValid: true
      -isForwardedValid: true
      basePath: ""
      format: "html"
    }
    
/var/www/topshot-admin/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php
    }
 
    /**
     * 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());
        }
    }
 
    /**
     * Get the route dispatcher callback.
     *
     * @return \Closure
     */
    protected function dispatchToRouter()
Arguments
  1. Closure($request) {#667 …4}
    
/var/www/topshot-admin/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 {#42
      #json: null
      #convertedFiles: null
      #userResolver: Closure($guard = null) {#877 …4}
      #routeResolver: null
      +attributes: Symfony\Component\HttpFoundation\ParameterBag {#44}
      +request: Symfony\Component\HttpFoundation\ParameterBag {#50}
      +query: Symfony\Component\HttpFoundation\ParameterBag {#50}
      +server: Symfony\Component\HttpFoundation\ServerBag {#46}
      +files: Symfony\Component\HttpFoundation\FileBag {#47}
      +cookies: Symfony\Component\HttpFoundation\ParameterBag {#45}
      +headers: Symfony\Component\HttpFoundation\HeaderBag {#48}
      #content: null
      #languages: null
      #charsets: null
      #encodings: null
      #acceptableContentTypes: array:1 [
        0 => "*/*"
      ]
      #pathInfo: "/news/btc-mining-firm-griid-receives-525-million-credit-facility-from-blockchain-com"
      #requestUri: "/news/btc-mining-firm-griid-receives-525-million-credit-facility-from-blockchain-com"
      #baseUrl: ""
      #basePath: null
      #method: "GET"
      #format: null
      #session: null
      #locale: null
      #defaultLocale: "en"
      -preferredFormat: null
      -isHostValid: true
      -isForwardedValid: true
      basePath: ""
      format: "html"
    }
    
/var/www/topshot-admin/public/index.php
*/
 
$app = require_once __DIR__.'/../bootstrap/app.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.
|
*/
 
$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 {#42
      #json: null
      #convertedFiles: null
      #userResolver: Closure($guard = null) {#877 …4}
      #routeResolver: null
      +attributes: Symfony\Component\HttpFoundation\ParameterBag {#44}
      +request: Symfony\Component\HttpFoundation\ParameterBag {#50}
      +query: Symfony\Component\HttpFoundation\ParameterBag {#50}
      +server: Symfony\Component\HttpFoundation\ServerBag {#46}
      +files: Symfony\Component\HttpFoundation\FileBag {#47}
      +cookies: Symfony\Component\HttpFoundation\ParameterBag {#45}
      +headers: Symfony\Component\HttpFoundation\HeaderBag {#48}
      #content: null
      #languages: null
      #charsets: null
      #encodings: null
      #acceptableContentTypes: array:1 [
        0 => "*/*"
      ]
      #pathInfo: "/news/btc-mining-firm-griid-receives-525-million-credit-facility-from-blockchain-com"
      #requestUri: "/news/btc-mining-firm-griid-receives-525-million-credit-facility-from-blockchain-com"
      #baseUrl: ""
      #basePath: null
      #method: "GET"
      #format: null
      #session: null
      #locale: null
      #defaultLocale: "en"
      -preferredFormat: null
      -isHostValid: true
      -isForwardedValid: true
      basePath: ""
      format: "html"
    }
    
/var/www/topshot-admin/index.php
 
/**
 * Laravel - A PHP Framework For Web Artisans
 *
 * @package  Laravel
 * @author   Taylor Otwell <[email protected]>
 */
 
$uri = urldecode(
    parse_url($_SERVER['REQUEST_URI'], PHP_URL_PATH)
);
 
// This file allows us to emulate Apache's "mod_rewrite" functionality from the
// built-in PHP web server. This provides a convenient way to test a Laravel
// application without having installed a "real" web server software here.
if ($uri !== '/' && file_exists(__DIR__.'/public'.$uri)) {
    return false;
}
 
require_once __DIR__.'/public/index.php';
 
Arguments
  1. "/var/www/topshot-admin/public/index.php"
    

Environment & details:

empty
empty
empty
empty
empty
Key Value
REDIRECT_HTTPS
"on"
REDIRECT_SSL_TLS_SNI
"cryptotokenoption.com"
REDIRECT_STATUS
"200"
HTTPS
"on"
SSL_TLS_SNI
"cryptotokenoption.com"
HTTP_HOST
"cryptotokenoption.com"
HTTP_CONNECTION
"Keep-Alive"
HTTP_ACCEPT_ENCODING
"gzip, br"
HTTP_X_FORWARDED_FOR
"3.85.63.190"
HTTP_CF_RAY
"866a9bacaf4c081a-IAD"
HTTP_X_FORWARDED_PROTO
"https"
HTTP_CF_VISITOR
"{"scheme":"https"}"
HTTP_ACCEPT
"*/*"
HTTP_USER_AGENT
"claudebot"
HTTP_REFERER
"https://cryptotokenoption.com/news/btc-mining-firm-griid-receives-525-million-credit-facility-from-blockchain-com/"
HTTP_CF_CONNECTING_IP
"3.85.63.190"
HTTP_CDN_LOOP
"cloudflare"
HTTP_CF_IPCOUNTRY
"US"
PATH
"/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin"
SERVER_SIGNATURE
"<address>Apache/2.4.29 (Ubuntu) Server at cryptotokenoption.com Port 443</address>\n"
SERVER_SOFTWARE
"Apache/2.4.29 (Ubuntu)"
SERVER_NAME
"cryptotokenoption.com"
SERVER_ADDR
"159.223.76.56"
SERVER_PORT
"443"
REMOTE_ADDR
"172.70.38.171"
DOCUMENT_ROOT
"/var/www/topshot-admin"
REQUEST_SCHEME
"https"
CONTEXT_PREFIX
""
CONTEXT_DOCUMENT_ROOT
"/var/www/topshot-admin"
SERVER_ADMIN
"webmaster@localhost"
SCRIPT_FILENAME
"/var/www/topshot-admin/index.php"
REMOTE_PORT
"22558"
REDIRECT_URL
"/news/btc-mining-firm-griid-receives-525-million-credit-facility-from-blockchain-com"
GATEWAY_INTERFACE
"CGI/1.1"
SERVER_PROTOCOL
"HTTP/1.1"
REQUEST_METHOD
"GET"
QUERY_STRING
""
REQUEST_URI
"/news/btc-mining-firm-griid-receives-525-million-credit-facility-from-blockchain-com"
SCRIPT_NAME
"/index.php"
PHP_SELF
"/index.php"
REQUEST_TIME_FLOAT
1710821378.149
REQUEST_TIME
1710821378
APP_NAME
"Laravel"
APP_ENV
"local"
APP_KEY
"base64:zUx7lZG4Qaui5bTF06p3ecVUO5jCnypIR5+HklXR8e0="
APP_DEBUG
"true"
APP_URL
"https://ajennt.lengbet.com"
LOG_CHANNEL
"stack"
DB_CONNECTION
"mysql"
DB_HOST
"127.0.0.1"
DB_PORT
"3306"
DB_DATABASE
"topshot"
DB_USERNAME
"root"
DB_PASSWORD
"S)ue)5:2YR"23J"
BROADCAST_DRIVER
"log"
CACHE_DRIVER
"file"
QUEUE_CONNECTION
"sync"
SESSION_DRIVER
"file"
SESSION_LIFETIME
"120"
REDIS_HOST
"127.0.0.1"
REDIS_PASSWORD
"null"
REDIS_PORT
"6379"
MAIL_MAILER
"smtp"
MAIL_HOST
"smtp.mailtrap.io"
MAIL_PORT
"2525"
MAIL_USERNAME
"9d084db8029c69"
MAIL_PASSWORD
"b9b7b51dac5309"
MAIL_ENCRYPTION
"tls"
MAIL_FROM_ADDRESS
"[email protected]"
MAIL_FROM_NAME
"TSHOT"
PUSHER_APP_ID
""
PUSHER_APP_KEY
""
PUSHER_APP_SECRET
""
PUSHER_APP_CLUSTER
"mt1"
MIX_PUSHER_APP_KEY
""
MIX_PUSHER_APP_CLUSTER
"mt1"
ADMIN_URL
"https://ajennt.lengbet.com/"
ASSETS_NEW_URL
"https://azzetxs.lengbet.com/"
ASSET_STORAGE_PATH
"/var/www/topshot-asset"
AGENT_URL
"https://lengbet.com/"
SHELL_VERBOSITY
0
Key Value
APP_NAME
"Laravel"
APP_ENV
"local"
APP_KEY
"base64:zUx7lZG4Qaui5bTF06p3ecVUO5jCnypIR5+HklXR8e0="
APP_DEBUG
"true"
APP_URL
"https://ajennt.lengbet.com"
LOG_CHANNEL
"stack"
DB_CONNECTION
"mysql"
DB_HOST
"127.0.0.1"
DB_PORT
"3306"
DB_DATABASE
"topshot"
DB_USERNAME
"root"
DB_PASSWORD
"S)ue)5:2YR"23J"
BROADCAST_DRIVER
"log"
CACHE_DRIVER
"file"
QUEUE_CONNECTION
"sync"
SESSION_DRIVER
"file"
SESSION_LIFETIME
"120"
REDIS_HOST
"127.0.0.1"
REDIS_PASSWORD
"null"
REDIS_PORT
"6379"
MAIL_MAILER
"smtp"
MAIL_HOST
"smtp.mailtrap.io"
MAIL_PORT
"2525"
MAIL_USERNAME
"9d084db8029c69"
MAIL_PASSWORD
"b9b7b51dac5309"
MAIL_ENCRYPTION
"tls"
MAIL_FROM_ADDRESS
"[email protected]"
MAIL_FROM_NAME
"TSHOT"
PUSHER_APP_ID
""
PUSHER_APP_KEY
""
PUSHER_APP_SECRET
""
PUSHER_APP_CLUSTER
"mt1"
MIX_PUSHER_APP_KEY
""
MIX_PUSHER_APP_CLUSTER
"mt1"
ADMIN_URL
"https://ajennt.lengbet.com/"
ASSETS_NEW_URL
"https://azzetxs.lengbet.com/"
ASSET_STORAGE_PATH
"/var/www/topshot-asset"
AGENT_URL
"https://lengbet.com/"
SHELL_VERBOSITY
0
0. Whoops\Handler\PrettyPageHandler