Illuminate \ Database \ QueryException (2002)
SQLSTATE[HY000] [2002] Connection refused (SQL: select * from `settings` 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` limit 1)" Stacktrace: #65 Illuminate\Database\QueryException in /home/tcmeducation/public_html/vendor/laravel/framework/src/Illuminate/Database/Connection.php:669 #64 Illuminate\Foundation\Application:Illuminate\Foundation\{closure} in [internal]:0 #63 PDOException in /home/tcmeducation/public_html/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php:70 #62 PDO:__construct in /home/tcmeducation/public_html/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php:70 #61 Illuminate\Database\Connectors\Connector:createPdoConnection in /home/tcmeducation/public_html/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php:100 #60 Illuminate\Database\Connectors\Connector:tryAgainIfCausedByLostConnection in /home/tcmeducation/public_html/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php:50 #59 Illuminate\Database\Connectors\Connector:createConnection in /home/tcmeducation/public_html/vendor/laravel/framework/src/Illuminate/Database/Connectors/MySqlConnector.php:24 #58 Illuminate\Database\Connectors\MySqlConnector:connect in /home/tcmeducation/public_html/vendor/laravel/framework/src/Illuminate/Database/Connectors/ConnectionFactory.php:182 #57 Illuminate\Database\Connectors\ConnectionFactory:Illuminate\Database\Connectors\{closure} in /home/tcmeducation/public_html/vendor/laravel/framework/src/Illuminate/Database/Connection.php:924 #56 call_user_func in /home/tcmeducation/public_html/vendor/laravel/framework/src/Illuminate/Database/Connection.php:924 #55 Illuminate\Database\Connection:getPdo in /home/tcmeducation/public_html/vendor/laravel/framework/src/Illuminate/Database/Connection.php:959 #54 Illuminate\Database\Connection:getReadPdo in /home/tcmeducation/public_html/vendor/laravel/framework/src/Illuminate/Database/Connection.php:404 #53 Illuminate\Database\Connection:getPdoForSelect in /home/tcmeducation/public_html/vendor/laravel/framework/src/Illuminate/Database/Connection.php:330 #52 Illuminate\Database\Connection:Illuminate\Database\{closure} in /home/tcmeducation/public_html/vendor/laravel/framework/src/Illuminate/Database/Connection.php:662 #51 Illuminate\Database\Connection:runQueryCallback in /home/tcmeducation/public_html/vendor/laravel/framework/src/Illuminate/Database/Connection.php:743 #50 Illuminate\Database\Connection:tryAgainIfCausedByLostConnection in /home/tcmeducation/public_html/vendor/laravel/framework/src/Illuminate/Database/Connection.php:723 #49 Illuminate\Database\Connection:handleQueryException in /home/tcmeducation/public_html/vendor/laravel/framework/src/Illuminate/Database/Connection.php:632 #48 Illuminate\Database\Connection:run in /home/tcmeducation/public_html/vendor/laravel/framework/src/Illuminate/Database/Connection.php:338 #47 Illuminate\Database\Connection:select in /home/tcmeducation/public_html/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php:2159 #46 Illuminate\Database\Query\Builder:runSelect in /home/tcmeducation/public_html/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php:2147 #45 Illuminate\Database\Query\Builder:Illuminate\Database\Query\{closure} in /home/tcmeducation/public_html/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php:2619 #44 Illuminate\Database\Query\Builder:onceWithColumns in /home/tcmeducation/public_html/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php:2148 #43 Illuminate\Database\Query\Builder:get in /home/tcmeducation/public_html/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php:546 #42 Illuminate\Database\Eloquent\Builder:getModels in /home/tcmeducation/public_html/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php:530 #41 Illuminate\Database\Eloquent\Builder:get in /home/tcmeducation/public_html/vendor/laravel/framework/src/Illuminate/Database/Concerns/BuildsQueries.php:143 #40 Illuminate\Database\Eloquent\Builder:first in /home/tcmeducation/public_html/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php:23 #39 Illuminate\Database\Eloquent\Model:forwardCallTo in /home/tcmeducation/public_html/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php:1622 #38 Illuminate\Database\Eloquent\Model:__call in /home/tcmeducation/public_html/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php:1634 #37 Illuminate\Database\Eloquent\Model:__callStatic in /home/tcmeducation/public_html/routes/web.php:778 #36 Illuminate\Routing\RouteFileRegistrar:{closure} in /home/tcmeducation/public_html/vendor/laravel/framework/src/Illuminate/Routing/Router.php:414 #35 Illuminate\Routing\Router:loadRoutes in /home/tcmeducation/public_html/vendor/laravel/framework/src/Illuminate/Routing/Router.php:374 #34 Illuminate\Routing\Router:group in /home/tcmeducation/public_html/vendor/laravel/framework/src/Illuminate/Routing/RouteRegistrar.php:122 #33 Illuminate\Routing\RouteRegistrar:group in /home/tcmeducation/public_html/routes/web.php:892 #32 Illuminate\Routing\RouteFileRegistrar:{closure} in /home/tcmeducation/public_html/vendor/laravel/framework/src/Illuminate/Routing/Router.php:414 #31 Illuminate\Routing\Router:loadRoutes in /home/tcmeducation/public_html/vendor/laravel/framework/src/Illuminate/Routing/Router.php:374 #30 Illuminate\Routing\Router:group in /home/tcmeducation/public_html/vendor/laravel/framework/src/Illuminate/Routing/RouteRegistrar.php:122 #29 Illuminate\Routing\RouteRegistrar:group in /home/tcmeducation/public_html/routes/web.php:1117 #28 require in /home/tcmeducation/public_html/vendor/laravel/framework/src/Illuminate/Routing/RouteFileRegistrar.php:35 #27 Illuminate\Routing\RouteFileRegistrar:register in /home/tcmeducation/public_html/vendor/laravel/framework/src/Illuminate/Routing/Router.php:416 #26 Illuminate\Routing\Router:loadRoutes in /home/tcmeducation/public_html/vendor/laravel/framework/src/Illuminate/Routing/Router.php:374 #25 Illuminate\Routing\Router:group in /home/tcmeducation/public_html/vendor/laravel/framework/src/Illuminate/Routing/RouteRegistrar.php:122 #24 Illuminate\Routing\RouteRegistrar:group in /home/tcmeducation/public_html/app/Providers/RouteServiceProvider.php:56 #23 App\Providers\RouteServiceProvider:mapWebRoutes in /home/tcmeducation/public_html/app/Providers/RouteServiceProvider.php:40 #22 App\Providers\RouteServiceProvider:map in /home/tcmeducation/public_html/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php:36 #21 Illuminate\Container\BoundMethod:Illuminate\Container\{closure} in /home/tcmeducation/public_html/vendor/laravel/framework/src/Illuminate/Container/Util.php:37 #20 Illuminate\Container\Util:unwrapIfClosure in /home/tcmeducation/public_html/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php:93 #19 Illuminate\Container\BoundMethod:callBoundMethod in /home/tcmeducation/public_html/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php:37 #18 Illuminate\Container\BoundMethod:call in /home/tcmeducation/public_html/vendor/laravel/framework/src/Illuminate/Container/Container.php:590 #17 Illuminate\Container\Container:call in /home/tcmeducation/public_html/vendor/laravel/framework/src/Illuminate/Foundation/Support/Providers/RouteServiceProvider.php:87 #16 Illuminate\Foundation\Support\Providers\RouteServiceProvider:loadRoutes in /home/tcmeducation/public_html/vendor/laravel/framework/src/Illuminate/Foundation/Support/Providers/RouteServiceProvider.php:36 #15 Illuminate\Foundation\Support\Providers\RouteServiceProvider:boot in /home/tcmeducation/public_html/app/Providers/RouteServiceProvider.php:28 #14 App\Providers\RouteServiceProvider:boot in /home/tcmeducation/public_html/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php:36 #13 Illuminate\Container\BoundMethod:Illuminate\Container\{closure} in /home/tcmeducation/public_html/vendor/laravel/framework/src/Illuminate/Container/Util.php:37 #12 Illuminate\Container\Util:unwrapIfClosure in /home/tcmeducation/public_html/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php:93 #11 Illuminate\Container\BoundMethod:callBoundMethod in /home/tcmeducation/public_html/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php:37 #10 Illuminate\Container\BoundMethod:call in /home/tcmeducation/public_html/vendor/laravel/framework/src/Illuminate/Container/Container.php:590 #9 Illuminate\Container\Container:call in /home/tcmeducation/public_html/vendor/laravel/framework/src/Illuminate/Foundation/Application.php:856 #8 Illuminate\Foundation\Application:bootProvider in /home/tcmeducation/public_html/vendor/laravel/framework/src/Illuminate/Foundation/Application.php:839 #7 Illuminate\Foundation\Application:Illuminate\Foundation\{closure} in [internal]:0 #6 array_walk in /home/tcmeducation/public_html/vendor/laravel/framework/src/Illuminate/Foundation/Application.php:840 #5 Illuminate\Foundation\Application:boot in /home/tcmeducation/public_html/vendor/laravel/framework/src/Illuminate/Foundation/Bootstrap/BootProviders.php:17 #4 Illuminate\Foundation\Bootstrap\BootProviders:bootstrap in /home/tcmeducation/public_html/vendor/laravel/framework/src/Illuminate/Foundation/Application.php:219 #3 Illuminate\Foundation\Application:bootstrapWith in /home/tcmeducation/public_html/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php:156 #2 Illuminate\Foundation\Http\Kernel:bootstrap in /home/tcmeducation/public_html/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php:140 #1 Illuminate\Foundation\Http\Kernel:sendRequestThroughRouter in /home/tcmeducation/public_html/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php:110 #0 Illuminate\Foundation\Http\Kernel:handle in /home/tcmeducation/public_html/public/index.php:55
65
Illuminate\Database\QueryException
/vendor/laravel/framework/src/Illuminate/Database/Connection.php669
64
Illuminate\Foundation\Application Illuminate\Foundation\{closure}
[internal]0
63
PDOException
/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php70
62
PDO __construct
/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php70
61
Illuminate\Database\Connectors\Connector createPdoConnection
/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php100
60
Illuminate\Database\Connectors\Connector tryAgainIfCausedByLostConnection
/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php50
59
Illuminate\Database\Connectors\Connector createConnection
/vendor/laravel/framework/src/Illuminate/Database/Connectors/MySqlConnector.php24
58
Illuminate\Database\Connectors\MySqlConnector connect
/vendor/laravel/framework/src/Illuminate/Database/Connectors/ConnectionFactory.php182
57
Illuminate\Database\Connectors\ConnectionFactory Illuminate\Database\Connectors\{closure}
/vendor/laravel/framework/src/Illuminate/Database/Connection.php924
56
call_user_func
/vendor/laravel/framework/src/Illuminate/Database/Connection.php924
55
Illuminate\Database\Connection getPdo
/vendor/laravel/framework/src/Illuminate/Database/Connection.php959
54
Illuminate\Database\Connection getReadPdo
/vendor/laravel/framework/src/Illuminate/Database/Connection.php404
53
Illuminate\Database\Connection getPdoForSelect
/vendor/laravel/framework/src/Illuminate/Database/Connection.php330
52
Illuminate\Database\Connection Illuminate\Database\{closure}
/vendor/laravel/framework/src/Illuminate/Database/Connection.php662
51
Illuminate\Database\Connection runQueryCallback
/vendor/laravel/framework/src/Illuminate/Database/Connection.php743
50
Illuminate\Database\Connection tryAgainIfCausedByLostConnection
/vendor/laravel/framework/src/Illuminate/Database/Connection.php723
49
Illuminate\Database\Connection handleQueryException
/vendor/laravel/framework/src/Illuminate/Database/Connection.php632
48
Illuminate\Database\Connection run
/vendor/laravel/framework/src/Illuminate/Database/Connection.php338
47
Illuminate\Database\Connection select
/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php2159
46
Illuminate\Database\Query\Builder runSelect
/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php2147
45
Illuminate\Database\Query\Builder Illuminate\Database\Query\{closure}
/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php2619
44
Illuminate\Database\Query\Builder onceWithColumns
/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php2148
43
Illuminate\Database\Query\Builder get
/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php546
42
Illuminate\Database\Eloquent\Builder getModels
/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php530
41
Illuminate\Database\Eloquent\Builder get
/vendor/laravel/framework/src/Illuminate/Database/Concerns/BuildsQueries.php143
40
Illuminate\Database\Eloquent\Builder first
/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php23
39
Illuminate\Database\Eloquent\Model forwardCallTo
/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php1622
38
Illuminate\Database\Eloquent\Model __call
/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php1634
37
Illuminate\Database\Eloquent\Model __callStatic
/routes/web.php778
36
Illuminate\Routing\RouteFileRegistrar {closure}
/vendor/laravel/framework/src/Illuminate/Routing/Router.php414
35
Illuminate\Routing\Router loadRoutes
/vendor/laravel/framework/src/Illuminate/Routing/Router.php374
34
Illuminate\Routing\Router group
/vendor/laravel/framework/src/Illuminate/Routing/RouteRegistrar.php122
33
Illuminate\Routing\RouteRegistrar group
/routes/web.php892
32
Illuminate\Routing\RouteFileRegistrar {closure}
/vendor/laravel/framework/src/Illuminate/Routing/Router.php414
31
Illuminate\Routing\Router loadRoutes
/vendor/laravel/framework/src/Illuminate/Routing/Router.php374
30
Illuminate\Routing\Router group
/vendor/laravel/framework/src/Illuminate/Routing/RouteRegistrar.php122
29
Illuminate\Routing\RouteRegistrar group
/routes/web.php1117
28
require
/vendor/laravel/framework/src/Illuminate/Routing/RouteFileRegistrar.php35
27
Illuminate\Routing\RouteFileRegistrar register
/vendor/laravel/framework/src/Illuminate/Routing/Router.php416
26
Illuminate\Routing\Router loadRoutes
/vendor/laravel/framework/src/Illuminate/Routing/Router.php374
25
Illuminate\Routing\Router group
/vendor/laravel/framework/src/Illuminate/Routing/RouteRegistrar.php122
24
Illuminate\Routing\RouteRegistrar group
/app/Providers/RouteServiceProvider.php56
23
App\Providers\RouteServiceProvider mapWebRoutes
/app/Providers/RouteServiceProvider.php40
22
App\Providers\RouteServiceProvider map
/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php36
21
Illuminate\Container\BoundMethod Illuminate\Container\{closure}
/vendor/laravel/framework/src/Illuminate/Container/Util.php37
20
Illuminate\Container\Util unwrapIfClosure
/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php93
19
Illuminate\Container\BoundMethod callBoundMethod
/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php37
18
Illuminate\Container\BoundMethod call
/vendor/laravel/framework/src/Illuminate/Container/Container.php590
17
Illuminate\Container\Container call
/vendor/laravel/framework/src/Illuminate/Foundation/Support/Providers/RouteServiceProvider.php87
16
Illuminate\Foundation\Support\Providers\RouteServiceProvider loadRoutes
/vendor/laravel/framework/src/Illuminate/Foundation/Support/Providers/RouteServiceProvider.php36
15
Illuminate\Foundation\Support\Providers\RouteServiceProvider boot
/app/Providers/RouteServiceProvider.php28
14
App\Providers\RouteServiceProvider boot
/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php36
13
Illuminate\Container\BoundMethod Illuminate\Container\{closure}
/vendor/laravel/framework/src/Illuminate/Container/Util.php37
12
Illuminate\Container\Util unwrapIfClosure
/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php93
11
Illuminate\Container\BoundMethod callBoundMethod
/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php37
10
Illuminate\Container\BoundMethod call
/vendor/laravel/framework/src/Illuminate/Container/Container.php590
9
Illuminate\Container\Container call
/vendor/laravel/framework/src/Illuminate/Foundation/Application.php856
8
Illuminate\Foundation\Application bootProvider
/vendor/laravel/framework/src/Illuminate/Foundation/Application.php839
7
Illuminate\Foundation\Application Illuminate\Foundation\{closure}
[internal]0
6
array_walk
/vendor/laravel/framework/src/Illuminate/Foundation/Application.php840
5
Illuminate\Foundation\Application boot
/vendor/laravel/framework/src/Illuminate/Foundation/Bootstrap/BootProviders.php17
4
Illuminate\Foundation\Bootstrap\BootProviders bootstrap
/vendor/laravel/framework/src/Illuminate/Foundation/Application.php219
3
Illuminate\Foundation\Application bootstrapWith
/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php156
2
Illuminate\Foundation\Http\Kernel bootstrap
/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php140
1
Illuminate\Foundation\Http\Kernel sendRequestThroughRouter
/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php110
0
Illuminate\Foundation\Http\Kernel handle
/public/index.php55
/home/tcmeducation/public_html/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` limit 1)"
    
[internal]
Arguments
  1. App\Providers\RouteServiceProvider {#170}
    
  2. 41
    
/home/tcmeducation/public_html/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php
            );
        }
    }
 
    /**
     * Create a new PDO connection instance.
     *
     * @param  string  $dsn
     * @param  string  $username
     * @param  string  $password
     * @param  array  $options
     * @return \PDO
     */
    protected function createPdoConnection($dsn, $username, $password, $options)
    {
        if (class_exists(PDOConnection::class) && ! $this->isPersistentConnection($options)) {
            return new PDOConnection($dsn, $username, $password, $options);
        }
 
        return new PDO($dsn, $username, $password, $options);
    }
 
    /**
     * Determine if the connection is persistent.
     *
     * @param  array  $options
     * @return bool
     */
    protected function isPersistentConnection($options)
    {
        return isset($options[PDO::ATTR_PERSISTENT]) &&
               $options[PDO::ATTR_PERSISTENT];
    }
 
    /**
     * Handle an exception that occurred during connect execution.
     *
     * @param  \Throwable  $e
     * @param  string  $dsn
     * @param  string  $username
Arguments
  1. "SQLSTATE[HY000] [2002] Connection refused"
    
Exception message: SQLSTATE[HY000] [2002] Connection refused
/home/tcmeducation/public_html/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=tcmeduca_tcmedu"
    
  2. "tcmeduca_tcm"
    
  3. "EWY;d~xtP!D8"
    
  4. array:5 [
      8 => 0
      3 => 2
      11 => 0
      17 => false
      20 => false
    ]
    
/home/tcmeducation/public_html/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php
        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
     * @param  string  $password
     * @param  array  $options
     * @return \PDO
     *
     * @throws \Exception
     */
    protected function tryAgainIfCausedByLostConnection(Throwable $e, $dsn, $username, $password, $options)
    {
        if ($this->causedByLostConnection($e)) {
            return $this->createPdoConnection($dsn, $username, $password, $options);
        }
 
        throw $e;
    }
 
    /**
     * Get the PDO options based on the configuration.
     *
     * @param  array  $config
     * @return array
     */
    public function getOptions(array $config)
    {
        $options = $config['options'] ?? [];
 
        return array_diff_key($this->options, $options) + $options;
    }
 
    /**
     * Get the default PDO connection options.
Arguments
  1. "mysql:host=127.0.0.1;port=3306;dbname=tcmeduca_tcmedu"
    
  2. "tcmeduca_tcm"
    
  3. "EWY;d~xtP!D8"
    
  4. array:5 [
      8 => 0
      3 => 2
      11 => 0
      17 => false
      20 => false
    ]
    
/home/tcmeducation/public_html/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php
     * @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)) {
            return new PDOConnection($dsn, $username, $password, $options);
        }
 
        return new PDO($dsn, $username, $password, $options);
Arguments
  1. PDOException {#1688
      #message: "SQLSTATE[HY000] [2002] Connection refused"
      #code: 2002
      #file: "/home/tcmeducation/public_html/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php"
      #line: 70
      +errorInfo: array:3 [
        0 => "HY000"
        1 => 2002
        2 => "Connection refused"
      ]
    }
    
  2. "mysql:host=127.0.0.1;port=3306;dbname=tcmeduca_tcmedu"
    
  3. "tcmeduca_tcm"
    
  4. "EWY;d~xtP!D8"
    
  5. array:5 [
      8 => 0
      3 => 2
      11 => 0
      17 => false
      20 => false
    ]
    
/home/tcmeducation/public_html/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=tcmeduca_tcmedu"
    
  2. array:14 [
      "driver" => "mysql"
      "host" => "127.0.0.1"
      "port" => "3306"
      "database" => "tcmeduca_tcmedu"
      "username" => "tcmeduca_tcm"
      "password" => "EWY;d~xtP!D8"
      "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
    ]
    
/home/tcmeducation/public_html/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
     *
     * @throws \InvalidArgumentException
     */
    protected function parseHosts(array $config)
    {
        $hosts = Arr::wrap($config['host']);
Arguments
  1. array:14 [
      "driver" => "mysql"
      "host" => "127.0.0.1"
      "port" => "3306"
      "database" => "tcmeduca_tcmedu"
      "username" => "tcmeduca_tcm"
      "password" => "EWY;d~xtP!D8"
      "unix_socket" => ""
      "charset" => "utf8mb4"
      "collation" => "utf8mb4_unicode_ci"
      "prefix" => ""
      "prefix_indexes" => true
      "strict" => false
      "engine" => null
      "name" => "mysql"
    ]
    
/home/tcmeducation/public_html/vendor/laravel/framework/src/Illuminate/Database/Connection.php
            $this->doctrineConnection = new DoctrineConnection(array_filter([
                'pdo' => $this->getPdo(),
                'dbname' => $this->getDatabaseName(),
                'driver' => $driver->getName(),
                'serverVersion' => $this->getConfig('server_version'),
            ]), $driver);
        }
 
        return $this->doctrineConnection;
    }
 
    /**
     * Get the current PDO connection.
     *
     * @return \PDO
     */
    public function getPdo()
    {
        if ($this->pdo instanceof Closure) {
            return $this->pdo = call_user_func($this->pdo);
        }
 
        return $this->pdo;
    }
 
    /**
     * Get the current PDO connection parameter without executing any reconnect logic.
     *
     * @return \PDO|\Closure|null
     */
    public function getRawPdo()
    {
        return $this->pdo;
    }
 
    /**
     * Get the current PDO connection used for reading.
     *
     * @return \PDO
     */
/home/tcmeducation/public_html/vendor/laravel/framework/src/Illuminate/Database/Connection.php
            $this->doctrineConnection = new DoctrineConnection(array_filter([
                'pdo' => $this->getPdo(),
                'dbname' => $this->getDatabaseName(),
                'driver' => $driver->getName(),
                'serverVersion' => $this->getConfig('server_version'),
            ]), $driver);
        }
 
        return $this->doctrineConnection;
    }
 
    /**
     * Get the current PDO connection.
     *
     * @return \PDO
     */
    public function getPdo()
    {
        if ($this->pdo instanceof Closure) {
            return $this->pdo = call_user_func($this->pdo);
        }
 
        return $this->pdo;
    }
 
    /**
     * Get the current PDO connection parameter without executing any reconnect logic.
     *
     * @return \PDO|\Closure|null
     */
    public function getRawPdo()
    {
        return $this->pdo;
    }
 
    /**
     * Get the current PDO connection used for reading.
     *
     * @return \PDO
     */
Arguments
  1. Closure() {#1684 …4}
    
/home/tcmeducation/public_html/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();
    }
 
    /**
     * Get the current read PDO connection parameter without executing any reconnect logic.
     *
     * @return \PDO|\Closure|null
     */
    public function getRawReadPdo()
    {
        return $this->readPdo;
    }
 
    /**
     * Set the PDO connection.
     *
     * @param  \PDO|\Closure|null  $pdo
     * @return $this
     */
    public function setPdo($pdo)
    {
/home/tcmeducation/public_html/vendor/laravel/framework/src/Illuminate/Database/Connection.php
    protected function prepared(PDOStatement $statement)
    {
        $statement->setFetchMode($this->fetchMode);
 
        $this->event(new StatementPrepared(
            $this, $statement
        ));
 
        return $statement;
    }
 
    /**
     * Get the PDO connection to use for a select query.
     *
     * @param  bool  $useReadPdo
     * @return \PDO
     */
    protected function getPdoForSelect($useReadPdo = true)
    {
        return $useReadPdo ? $this->getReadPdo() : $this->getPdo();
    }
 
    /**
     * Run an insert statement against the database.
     *
     * @param  string  $query
     * @param  array  $bindings
     * @return bool
     */
    public function insert($query, $bindings = [])
    {
        return $this->statement($query, $bindings);
    }
 
    /**
     * Run an update statement against the database.
     *
     * @param  string  $query
     * @param  array  $bindings
     * @return int
/home/tcmeducation/public_html/vendor/laravel/framework/src/Illuminate/Database/Connection.php
 
    /**
     * Run a select statement against the database.
     *
     * @param  string  $query
     * @param  array  $bindings
     * @param  bool  $useReadPdo
     * @return array
     */
    public function select($query, $bindings = [], $useReadPdo = true)
    {
        return $this->run($query, $bindings, function ($query, $bindings) use ($useReadPdo) {
            if ($this->pretending()) {
                return [];
            }
 
            // For select statements, we'll simply execute the query and return an array
            // of the database result set. Each element in the array will be a single
            // row from the database table, and will either be an array or objects.
            $statement = $this->prepared($this->getPdoForSelect($useReadPdo)
                              ->prepare($query));
 
            $this->bindValues($statement, $this->prepareBindings($bindings));
 
            $statement->execute();
 
            return $statement->fetchAll();
        });
    }
 
    /**
     * Run a select statement against the database and returns a generator.
     *
     * @param  string  $query
     * @param  array  $bindings
     * @param  bool  $useReadPdo
     * @return \Generator
     */
    public function cursor($query, $bindings = [], $useReadPdo = true)
    {
Arguments
  1. true
    
/home/tcmeducation/public_html/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` limit 1"
    
  2. []
    
/home/tcmeducation/public_html/vendor/laravel/framework/src/Illuminate/Database/Connection.php
        );
    }
 
    /**
     * Handle a query exception that occurred during query execution.
     *
     * @param  \Illuminate\Database\QueryException  $e
     * @param  string  $query
     * @param  array  $bindings
     * @param  \Closure  $callback
     * @return mixed
     *
     * @throws \Illuminate\Database\QueryException
     */
    protected function tryAgainIfCausedByLostConnection(QueryException $e, $query, $bindings, Closure $callback)
    {
        if ($this->causedByLostConnection($e->getPrevious())) {
            $this->reconnect();
 
            return $this->runQueryCallback($query, $bindings, $callback);
        }
 
        throw $e;
    }
 
    /**
     * Reconnect to the database.
     *
     * @return void
     *
     * @throws \LogicException
     */
    public function reconnect()
    {
        if (is_callable($this->reconnector)) {
            $this->doctrineConnection = null;
 
            return call_user_func($this->reconnector, $this);
        }
 
Arguments
  1. "select * from `settings` limit 1"
    
  2. []
    
  3. Closure($query, $bindings) {#1682 …4}
    
/home/tcmeducation/public_html/vendor/laravel/framework/src/Illuminate/Database/Connection.php
 
    /**
     * Handle a query exception.
     *
     * @param  \Illuminate\Database\QueryException  $e
     * @param  string  $query
     * @param  array  $bindings
     * @param  \Closure  $callback
     * @return mixed
     *
     * @throws \Illuminate\Database\QueryException
     */
    protected function handleQueryException(QueryException $e, $query, $bindings, Closure $callback)
    {
        if ($this->transactions >= 1) {
            throw $e;
        }
 
        return $this->tryAgainIfCausedByLostConnection(
            $e, $query, $bindings, $callback
        );
    }
 
    /**
     * Handle a query exception that occurred during query execution.
     *
     * @param  \Illuminate\Database\QueryException  $e
     * @param  string  $query
     * @param  array  $bindings
     * @param  \Closure  $callback
     * @return mixed
     *
     * @throws \Illuminate\Database\QueryException
     */
    protected function tryAgainIfCausedByLostConnection(QueryException $e, $query, $bindings, Closure $callback)
    {
        if ($this->causedByLostConnection($e->getPrevious())) {
            $this->reconnect();
 
            return $this->runQueryCallback($query, $bindings, $callback);
Arguments
  1. Illuminate\Database\QueryException {#1683
      #sql: "select * from `settings` limit 1"
      #bindings: []
      #message: "SQLSTATE[HY000] [2002] Connection refused (SQL: select * from `settings` limit 1)"
      #code: 2002
      #file: "/home/tcmeducation/public_html/vendor/laravel/framework/src/Illuminate/Database/Connection.php"
      #line: 669
      -previous: PDOException {#1686
        #message: "SQLSTATE[HY000] [2002] Connection refused"
        #code: 2002
        #file: "/home/tcmeducation/public_html/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php"
        #line: 70
        +errorInfo: array:3 [
          0 => "HY000"
          1 => 2002
          2 => "Connection refused"
        ]
      }
      +errorInfo: array:3 [
        0 => "HY000"
        1 => 2002
        2 => "Connection refused"
      ]
    }
    
  2. "select * from `settings` limit 1"
    
  3. []
    
  4. Closure($query, $bindings) {#1682 …4}
    
/home/tcmeducation/public_html/vendor/laravel/framework/src/Illuminate/Database/Connection.php
     * @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
     * @param  array  $bindings
     * @param  \Closure  $callback
     * @return mixed
Arguments
  1. Illuminate\Database\QueryException {#1683
      #sql: "select * from `settings` limit 1"
      #bindings: []
      #message: "SQLSTATE[HY000] [2002] Connection refused (SQL: select * from `settings` limit 1)"
      #code: 2002
      #file: "/home/tcmeducation/public_html/vendor/laravel/framework/src/Illuminate/Database/Connection.php"
      #line: 669
      -previous: PDOException {#1686
        #message: "SQLSTATE[HY000] [2002] Connection refused"
        #code: 2002
        #file: "/home/tcmeducation/public_html/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php"
        #line: 70
        +errorInfo: array:3 [
          0 => "HY000"
          1 => 2002
          2 => "Connection refused"
        ]
      }
      +errorInfo: array:3 [
        0 => "HY000"
        1 => 2002
        2 => "Connection refused"
      ]
    }
    
  2. "select * from `settings` limit 1"
    
  3. []
    
  4. Closure($query, $bindings) {#1682 …4}
    
/home/tcmeducation/public_html/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` limit 1"
    
  2. []
    
  3. Closure($query, $bindings) {#1682 …4}
    
/home/tcmeducation/public_html/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php
     *
     * @param  array|string  $columns
     * @return \Illuminate\Support\Collection
     */
    public function get($columns = ['*'])
    {
        return collect($this->onceWithColumns(Arr::wrap($columns), function () {
            return $this->processor->processSelect($this, $this->runSelect());
        }));
    }
 
    /**
     * Run the query as a "select" statement against the connection.
     *
     * @return array
     */
    protected function runSelect()
    {
        return $this->connection->select(
            $this->toSql(), $this->getBindings(), ! $this->useWritePdo
        );
    }
 
    /**
     * Paginate the given query into a simple paginator.
     *
     * @param  int  $perPage
     * @param  array  $columns
     * @param  string  $pageName
     * @param  int|null  $page
     * @return \Illuminate\Contracts\Pagination\LengthAwarePaginator
     */
    public function paginate($perPage = 15, $columns = ['*'], $pageName = 'page', $page = null)
    {
        $page = $page ?: Paginator::resolveCurrentPage($pageName);
 
        $total = $this->getCountForPagination();
 
        $results = $total ? $this->forPage($page, $perPage)->get($columns) : collect();
 
Arguments
  1. "select * from `settings` limit 1"
    
  2. []
    
  3. true
    
/home/tcmeducation/public_html/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php
     * @param  string  $column
     * @return mixed
     */
    public function value($column)
    {
        $result = (array) $this->first([$column]);
 
        return count($result) > 0 ? reset($result) : null;
    }
 
    /**
     * Execute the query as a "select" statement.
     *
     * @param  array|string  $columns
     * @return \Illuminate\Support\Collection
     */
    public function get($columns = ['*'])
    {
        return collect($this->onceWithColumns(Arr::wrap($columns), function () {
            return $this->processor->processSelect($this, $this->runSelect());
        }));
    }
 
    /**
     * Run the query as a "select" statement against the connection.
     *
     * @return array
     */
    protected function runSelect()
    {
        return $this->connection->select(
            $this->toSql(), $this->getBindings(), ! $this->useWritePdo
        );
    }
 
    /**
     * Paginate the given query into a simple paginator.
     *
     * @param  int  $perPage
     * @param  array  $columns
/home/tcmeducation/public_html/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php
    }
 
    /**
     * Execute the given callback while selecting the given columns.
     *
     * After running the callback, the columns are reset to the original value.
     *
     * @param  array  $columns
     * @param  callable  $callback
     * @return mixed
     */
    protected function onceWithColumns($columns, $callback)
    {
        $original = $this->columns;
 
        if (is_null($original)) {
            $this->columns = $columns;
        }
 
        $result = $callback();
 
        $this->columns = $original;
 
        return $result;
    }
 
    /**
     * Insert a new record into the database.
     *
     * @param  array  $values
     * @return bool
     */
    public function insert(array $values)
    {
        // Since every insert gets treated like a batch insert, we will make sure the
        // bindings are structured in a way that is convenient when building these
        // inserts statements by verifying these elements are actually an array.
        if (empty($values)) {
            return true;
        }
/home/tcmeducation/public_html/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php
     * @return mixed
     */
    public function value($column)
    {
        $result = (array) $this->first([$column]);
 
        return count($result) > 0 ? reset($result) : null;
    }
 
    /**
     * Execute the query as a "select" statement.
     *
     * @param  array|string  $columns
     * @return \Illuminate\Support\Collection
     */
    public function get($columns = ['*'])
    {
        return collect($this->onceWithColumns(Arr::wrap($columns), function () {
            return $this->processor->processSelect($this, $this->runSelect());
        }));
    }
 
    /**
     * Run the query as a "select" statement against the connection.
     *
     * @return array
     */
    protected function runSelect()
    {
        return $this->connection->select(
            $this->toSql(), $this->getBindings(), ! $this->useWritePdo
        );
    }
 
    /**
     * Paginate the given query into a simple paginator.
     *
     * @param  int  $perPage
     * @param  array  $columns
     * @param  string  $pageName
Arguments
  1. array:1 [
      0 => "*"
    ]
    
  2. Closure() {#1674 …4}
    
/home/tcmeducation/public_html/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|string  $columns
     * @return \Illuminate\Database\Eloquent\Model[]|static[]
     */
    public function getModels($columns = ['*'])
    {
        return $this->model->hydrate(
            $this->query->get($columns)->all()
        )->all();
    }
 
    /**
     * Eager load the relationships for the models.
     *
     * @param  array  $models
     * @return array
     */
    public function eagerLoadRelations(array $models)
    {
        foreach ($this->eagerLoad as $name => $constraints) {
            // For nested eager loads we'll skip loading them here and they will be set as an
            // eager load on the query to retrieve the relation so that they will be eager
            // loaded on that query, because that is where they get hydrated as models.
            if (strpos($name, '.') === false) {
                $models = $this->eagerLoadRelation($models, $name, $constraints);
            }
        }
 
Arguments
  1. array:1 [
      0 => "*"
    ]
    
/home/tcmeducation/public_html/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php
    {
        if ($result = $this->first([$column])) {
            return $result->{Str::afterLast($column, '.')};
        }
    }
 
    /**
     * Execute the query as a "select" statement.
     *
     * @param  array|string  $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|string  $columns
     * @return \Illuminate\Database\Eloquent\Model[]|static[]
     */
    public function getModels($columns = ['*'])
    {
        return $this->model->hydrate(
            $this->query->get($columns)->all()
        )->all();
    }
 
    /**
Arguments
  1. array:1 [
      0 => "*"
    ]
    
/home/tcmeducation/public_html/vendor/laravel/framework/src/Illuminate/Database/Concerns/BuildsQueries.php
    public function eachById(callable $callback, $count = 1000, $column = null, $alias = null)
    {
        return $this->chunkById($count, function ($results) use ($callback) {
            foreach ($results as $key => $value) {
                if ($callback($value, $key) === false) {
                    return false;
                }
            }
        }, $column, $alias);
    }
 
    /**
     * Execute the query and get the first result.
     *
     * @param  array|string  $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|null  $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 => "*"
    ]
    
/home/tcmeducation/public_html/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php
 
use BadMethodCallException;
use Error;
 
trait ForwardsCalls
{
    /**
     * Forward a method call to the given object.
     *
     * @param  mixed  $object
     * @param  string  $method
     * @param  array  $parameters
     * @return mixed
     *
     * @throws \BadMethodCallException
     */
    protected function forwardCallTo($object, $method, $parameters)
    {
        try {
            return $object->{$method}(...$parameters);
        } catch (Error | BadMethodCallException $e) {
            $pattern = '~^Call to undefined method (?P<class>[^:]+)::(?P<method>[^\(]+)\(\)$~';
 
            if (! preg_match($pattern, $e->getMessage(), $matches)) {
                throw $e;
            }
 
            if ($matches['class'] != get_class($object) ||
                $matches['method'] != $method) {
                throw $e;
            }
 
            static::throwBadMethodCallException($method);
        }
    }
 
    /**
     * Throw a bad method call exception for the given method.
     *
     * @param  string  $method
/home/tcmeducation/public_html/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php
     */
    public function __unset($key)
    {
        $this->offsetUnset($key);
    }
 
    /**
     * Handle dynamic method calls into the model.
     *
     * @param  string  $method
     * @param  array  $parameters
     * @return mixed
     */
    public function __call($method, $parameters)
    {
        if (in_array($method, ['increment', 'decrement'])) {
            return $this->$method(...$parameters);
        }
 
        return $this->forwardCallTo($this->newQuery(), $method, $parameters);
    }
 
    /**
     * Handle dynamic static method calls into the method.
     *
     * @param  string  $method
     * @param  array  $parameters
     * @return mixed
     */
    public static function __callStatic($method, $parameters)
    {
        return (new static)->$method(...$parameters);
    }
 
    /**
     * Convert the model to its string representation.
     *
     * @return string
     */
    public function __toString()
Arguments
  1. Illuminate\Database\Eloquent\Builder {#1672}
    
  2. "first"
    
  3. []
    
/home/tcmeducation/public_html/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php
     */
    public function __call($method, $parameters)
    {
        if (in_array($method, ['increment', 'decrement'])) {
            return $this->$method(...$parameters);
        }
 
        return $this->forwardCallTo($this->newQuery(), $method, $parameters);
    }
 
    /**
     * Handle dynamic static method calls into the method.
     *
     * @param  string  $method
     * @param  array  $parameters
     * @return mixed
     */
    public static function __callStatic($method, $parameters)
    {
        return (new static)->$method(...$parameters);
    }
 
    /**
     * Convert the model to its string representation.
     *
     * @return string
     */
    public function __toString()
    {
        return $this->toJson();
    }
 
    /**
     * When a model is being unserialized, check if it needs to be booted.
     *
     * @return void
     */
    public function __wakeup()
    {
        $this->bootIfNotBooted();
Arguments
  1. "first"
    
  2. []
    
/home/tcmeducation/public_html/routes/web.php
 
    Route::post('/admin/manualcity','CityController@addcity')->name('city.manual');
 
    Route::post('/admin/manualstate','StateController@addstate')->name('state.manual');
 
    Route::resource('user/question/report','QuestionReportController');
 
    // adsense routes
    Route::get('/admin/adsensesetting/','AdsenseController@index')->name('adsense');
    Route::put('/admin/adsensesetting','AdsenseController@update')->name('adsense.update');
 
  });
 
  Route::middleware(['web', 'is_active', 'auth', 'admin_instructor', 'switch_languages'])->group(function () {
 
    
 
  if(\DB::connection()->getDatabaseName()){
     if(env('IS_INSTALLED') == 1){
        $zoom_enable = Setting::first()->zoom_enable;
 
        $bbl_enable  = Setting::first()->bbl_enable;
        
        if(isset($zoom_enable) && $zoom_enable == 1){
            
            Route::prefix('zoom')->group(function (){
                Route::get('setting','ZoomController@setting')->name('zoom.setting');
                Route::get('dashboard','ZoomController@dashboard')->name('zoom.index');
                Route::post('token/update','ZoomController@updateToken')->name('updateToken');
                Route::get('create/meeting','ZoomController@create')->name('meeting.create');
                Route::delete('delete/meeting/{id}','ZoomController@delete')->name('zoom.delete');
                Route::post('store/new/meeting','ZoomController@store')->name('zoom.store');
                Route::get('edit/meeting/{meetingid}','ZoomController@edit')->name('zoom.edit');
                Route::post('update/meeting/{meetingid}','ZoomController@updatemeeting')->name('zoom.update');
                Route::get('show/meeting/{meetingid}','ZoomController@show')->name('zoom.show');
            });
        }
 
        if(isset($bbl_enable) && $bbl_enable == 1){
            Route::prefix('bigblue')->group(function (){
Arguments
  1. "first"
    
  2. []
    
/home/tcmeducation/public_html/vendor/laravel/framework/src/Illuminate/Routing/Router.php
     * Merge the given array with the last group stack.
     *
     * @param  array  $new
     * @return array
     */
    public function mergeWithLastGroup($new)
    {
        return RouteGroup::merge($new, end($this->groupStack));
    }
 
    /**
     * Load the provided routes.
     *
     * @param  \Closure|string  $routes
     * @return void
     */
    protected function loadRoutes($routes)
    {
        if ($routes instanceof Closure) {
            $routes($this);
        } else {
            (new RouteFileRegistrar($this))->register($routes);
        }
    }
 
    /**
     * Get the prefix from the last group on the stack.
     *
     * @return string
     */
    public function getLastGroupPrefix()
    {
        if ($this->hasGroupStack()) {
            $last = end($this->groupStack);
 
            return $last['prefix'] ?? '';
        }
 
        return '';
    }
Arguments
  1. Illuminate\Routing\Router {#34}
    
/home/tcmeducation/public_html/vendor/laravel/framework/src/Illuminate/Routing/Router.php
        return $this->resource($name, $controller, array_merge([
            'only' => $only,
        ], $options));
    }
 
    /**
     * Create a route group with shared attributes.
     *
     * @param  array  $attributes
     * @param  \Closure|string  $routes
     * @return void
     */
    public function group(array $attributes, $routes)
    {
        $this->updateGroupStack($attributes);
 
        // Once we have updated the group stack, we'll load the provided routes and
        // merge in the group's attributes when the routes are created. After we
        // have created the routes, we will pop the attributes off the stack.
        $this->loadRoutes($routes);
 
        array_pop($this->groupStack);
    }
 
    /**
     * Update the group stack with the given attributes.
     *
     * @param  array  $attributes
     * @return void
     */
    protected function updateGroupStack(array $attributes)
    {
        if ($this->hasGroupStack()) {
            $attributes = $this->mergeWithLastGroup($attributes);
        }
 
        $this->groupStack[] = $attributes;
    }
 
    /**
Arguments
  1. Closure() {#533 …4}
    
/home/tcmeducation/public_html/vendor/laravel/framework/src/Illuminate/Routing/RouteRegistrar.php
     *
     * @param  string  $name
     * @param  string  $controller
     * @param  array  $options
     * @return \Illuminate\Routing\PendingResourceRegistration
     */
    public function resource($name, $controller, array $options = [])
    {
        return $this->router->resource($name, $controller, $this->attributes + $options);
    }
 
    /**
     * Create a route group with shared attributes.
     *
     * @param  \Closure|string  $callback
     * @return void
     */
    public function group($callback)
    {
        $this->router->group($this->attributes, $callback);
    }
 
    /**
     * Register a new route with the given verbs.
     *
     * @param  array|string  $methods
     * @param  string  $uri
     * @param  \Closure|array|string|null  $action
     * @return \Illuminate\Routing\Route
     */
    public function match($methods, $uri, $action = null)
    {
        return $this->router->match($methods, $uri, $this->compileAction($action));
    }
 
    /**
     * Register a new route with the router.
     *
     * @param  string  $method
     * @param  string  $uri
Arguments
  1. array:1 [
      "middleware" => array:5 [
        0 => "web"
        1 => "is_active"
        2 => "auth"
        3 => "admin_instructor"
        4 => "switch_languages"
      ]
    ]
    
  2. Closure() {#533 …4}
    
/home/tcmeducation/public_html/routes/web.php
 
    Route::resource('admin/quiztopic', 'QuizTopicController');
 
    Route::resource('/admin/questions', 'QuizController');
 
    Route::resource('blog', 'BlogController');
 
    Route::resource('order', 'OrderController');
 
    Route::resource('featurecourse', 'FeatureCourseController');
 
    Route::post('/paywithpaytm', 'FeatureCourseController@order')->name('paywithpaytm');
    Route::post('/featurepayment/status', 'FeatureCourseController@paymentCallback');
 
    Route::post('featuredwithpaypal', 'FeatureCourseController@payWithpaypal')->name('featuredWithpaypal');
    Route::get('getfeaturedstatus', 'FeatureCourseController@getPaymentStatus')->name('featured');
 
    Route::resource('bundle', 'BundleCourseController');
 
  });
 
  
  Route::get('/best-coaching-for/{id}/{slug}','CategoriesController@categoryPage');
  
  Route::get('/{id}/{slug}','SubcategoryController@categoryPage');
  Route::get('/free-study-material/{id}/{slug}','SubcategoryController@materialPage');
  
  
   
   
  Route::middleware(['web','switch_languages', 'is_verified'])->group(function () {
 
    Route::post('rating/show/{id}','ReviewratingController@rating')->name('course.rating');
    Route::post('reports/insert/{id}','ReportReviewController@store')->name('report.review');
    Route::get('/course/{id}/{slug}','CourseController@CourseDetailPage')->name('user.course.show');
    Route::get('/my-course/detail/{id}/{slug}','CourseController@studentcourseDetailPage');
    Route::get('/my-course/sheet/{id}/{slug}','CourseController@coursesheetDetail');
    Route::get('/my-course/schedule/{id}/{slug}','CourseController@coursescheduleDetail');
    Route::get('/my-attendance/course/{id}/{slug}','CourseController@attndanceDetail');
    
Arguments
  1. Closure() {#533 …4}
    
/home/tcmeducation/public_html/vendor/laravel/framework/src/Illuminate/Routing/Router.php
     * Merge the given array with the last group stack.
     *
     * @param  array  $new
     * @return array
     */
    public function mergeWithLastGroup($new)
    {
        return RouteGroup::merge($new, end($this->groupStack));
    }
 
    /**
     * Load the provided routes.
     *
     * @param  \Closure|string  $routes
     * @return void
     */
    protected function loadRoutes($routes)
    {
        if ($routes instanceof Closure) {
            $routes($this);
        } else {
            (new RouteFileRegistrar($this))->register($routes);
        }
    }
 
    /**
     * Get the prefix from the last group on the stack.
     *
     * @return string
     */
    public function getLastGroupPrefix()
    {
        if ($this->hasGroupStack()) {
            $last = end($this->groupStack);
 
            return $last['prefix'] ?? '';
        }
 
        return '';
    }
Arguments
  1. Illuminate\Routing\Router {#34}
    
/home/tcmeducation/public_html/vendor/laravel/framework/src/Illuminate/Routing/Router.php
        return $this->resource($name, $controller, array_merge([
            'only' => $only,
        ], $options));
    }
 
    /**
     * Create a route group with shared attributes.
     *
     * @param  array  $attributes
     * @param  \Closure|string  $routes
     * @return void
     */
    public function group(array $attributes, $routes)
    {
        $this->updateGroupStack($attributes);
 
        // Once we have updated the group stack, we'll load the provided routes and
        // merge in the group's attributes when the routes are created. After we
        // have created the routes, we will pop the attributes off the stack.
        $this->loadRoutes($routes);
 
        array_pop($this->groupStack);
    }
 
    /**
     * Update the group stack with the given attributes.
     *
     * @param  array  $attributes
     * @return void
     */
    protected function updateGroupStack(array $attributes)
    {
        if ($this->hasGroupStack()) {
            $attributes = $this->mergeWithLastGroup($attributes);
        }
 
        $this->groupStack[] = $attributes;
    }
 
    /**
Arguments
  1. Closure() {#494 …4}
    
/home/tcmeducation/public_html/vendor/laravel/framework/src/Illuminate/Routing/RouteRegistrar.php
     *
     * @param  string  $name
     * @param  string  $controller
     * @param  array  $options
     * @return \Illuminate\Routing\PendingResourceRegistration
     */
    public function resource($name, $controller, array $options = [])
    {
        return $this->router->resource($name, $controller, $this->attributes + $options);
    }
 
    /**
     * Create a route group with shared attributes.
     *
     * @param  \Closure|string  $callback
     * @return void
     */
    public function group($callback)
    {
        $this->router->group($this->attributes, $callback);
    }
 
    /**
     * Register a new route with the given verbs.
     *
     * @param  array|string  $methods
     * @param  string  $uri
     * @param  \Closure|array|string|null  $action
     * @return \Illuminate\Routing\Route
     */
    public function match($methods, $uri, $action = null)
    {
        return $this->router->match($methods, $uri, $this->compileAction($action));
    }
 
    /**
     * Register a new route with the router.
     *
     * @param  string  $method
     * @param  string  $uri
Arguments
  1. array:1 [
      "middleware" => array:3 [
        0 => "web"
        1 => "IsInstalled"
        2 => "switch_languages"
      ]
    ]
    
  2. Closure() {#494 …4}
    
/home/tcmeducation/public_html/routes/web.php
    Route::get('admin/completed/payout', 'CompletedPayoutController@show')->name('admin.completed');
    Route::get('payout/completed/view/{id}', 'CompletedPayoutController@view')->name('completed.view');
 
    Route::get('admin/meeting/show', 'MeetingController@index')->name('meeting.show');
 
    Route::post('course/checked/{id}', 'CourseProgressController@checked');
 
    Route::post('bundle/cart/{id}', 'BundleCourseController@addtocart')->name('bundlecart');
    Route::get('bundle/detail/{id}', 'BundleCourseController@detailpage')->name('bundle.detail');
    Route::get('bundle/enroll/{id}', 'BundleCourseController@enroll')->name('bundle.enroll');
 
    Route::get('bbl/detail/{id}', 'BigBlueController@detailpage')->name('bbl.detail');
 
    Route::get('join/meeting/{meetingid}','BigBlueController@joinview')->name('bbluserjoin');
    Route::post('api/join/meeting','BigBlueController@apiJoin')->name('bbl.api.join');
    Route::post('api/join/meeting1','BigBlueController@apiJoinWebinar')->name('bbl.api.joinwebinar');
 
  });
 
});
 
 
Route::get("allcountry/dropdown","AllCountryController@upload_info");
Route::get("allcountry/gcity","AllCountryController@gcity");
 
 
Route::post('course/assignment/{id}', 'AssignmentController@submit')->name('assignment.submit');
Route::post('assignment/delete/{id}', 'AssignmentController@delete');
 
Route::resource('assignment', 'AssignmentController');
 
Route::get('instructor/{id}', 'InstructorSettingController@instructorprofile')->name('instructor.profile');
 
Route::post('course/appointment/{id}', 'AppointmentController@request')->name('appointment.request');
 
Route::resource('appointment', 'AppointmentController');
Route::post('appointment/delete/{id}', 'AppointmentController@delete');
 
 
Route::get('counsellor/user','CouncellorController@viewAllUser');
Arguments
  1. Closure() {#494 …4}
    
/home/tcmeducation/public_html/vendor/laravel/framework/src/Illuminate/Routing/RouteFileRegistrar.php
     *
     * @param  \Illuminate\Routing\Router  $router
     * @return void
     */
    public function __construct(Router $router)
    {
        $this->router = $router;
    }
 
    /**
     * Require the given routes file.
     *
     * @param  string  $routes
     * @return void
     */
    public function register($routes)
    {
        $router = $this->router;
 
        require $routes;
    }
}
 
Arguments
  1. "/home/tcmeducation/public_html/routes/web.php"
    
/home/tcmeducation/public_html/vendor/laravel/framework/src/Illuminate/Routing/Router.php
     * @param  array  $new
     * @return array
     */
    public function mergeWithLastGroup($new)
    {
        return RouteGroup::merge($new, end($this->groupStack));
    }
 
    /**
     * Load the provided routes.
     *
     * @param  \Closure|string  $routes
     * @return void
     */
    protected function loadRoutes($routes)
    {
        if ($routes instanceof Closure) {
            $routes($this);
        } else {
            (new RouteFileRegistrar($this))->register($routes);
        }
    }
 
    /**
     * Get the prefix from the last group on the stack.
     *
     * @return string
     */
    public function getLastGroupPrefix()
    {
        if ($this->hasGroupStack()) {
            $last = end($this->groupStack);
 
            return $last['prefix'] ?? '';
        }
 
        return '';
    }
 
    /**
Arguments
  1. "/home/tcmeducation/public_html/routes/web.php"
    
/home/tcmeducation/public_html/vendor/laravel/framework/src/Illuminate/Routing/Router.php
        return $this->resource($name, $controller, array_merge([
            'only' => $only,
        ], $options));
    }
 
    /**
     * Create a route group with shared attributes.
     *
     * @param  array  $attributes
     * @param  \Closure|string  $routes
     * @return void
     */
    public function group(array $attributes, $routes)
    {
        $this->updateGroupStack($attributes);
 
        // Once we have updated the group stack, we'll load the provided routes and
        // merge in the group's attributes when the routes are created. After we
        // have created the routes, we will pop the attributes off the stack.
        $this->loadRoutes($routes);
 
        array_pop($this->groupStack);
    }
 
    /**
     * Update the group stack with the given attributes.
     *
     * @param  array  $attributes
     * @return void
     */
    protected function updateGroupStack(array $attributes)
    {
        if ($this->hasGroupStack()) {
            $attributes = $this->mergeWithLastGroup($attributes);
        }
 
        $this->groupStack[] = $attributes;
    }
 
    /**
Arguments
  1. "/home/tcmeducation/public_html/routes/web.php"
    
/home/tcmeducation/public_html/vendor/laravel/framework/src/Illuminate/Routing/RouteRegistrar.php
     *
     * @param  string  $name
     * @param  string  $controller
     * @param  array  $options
     * @return \Illuminate\Routing\PendingResourceRegistration
     */
    public function resource($name, $controller, array $options = [])
    {
        return $this->router->resource($name, $controller, $this->attributes + $options);
    }
 
    /**
     * Create a route group with shared attributes.
     *
     * @param  \Closure|string  $callback
     * @return void
     */
    public function group($callback)
    {
        $this->router->group($this->attributes, $callback);
    }
 
    /**
     * Register a new route with the given verbs.
     *
     * @param  array|string  $methods
     * @param  string  $uri
     * @param  \Closure|array|string|null  $action
     * @return \Illuminate\Routing\Route
     */
    public function match($methods, $uri, $action = null)
    {
        return $this->router->match($methods, $uri, $this->compileAction($action));
    }
 
    /**
     * Register a new route with the router.
     *
     * @param  string  $method
     * @param  string  $uri
Arguments
  1. array:2 [
      "middleware" => array:1 [
        0 => "web"
      ]
      "namespace" => "App\Http\Controllers"
    ]
    
  2. "/home/tcmeducation/public_html/routes/web.php"
    
/home/tcmeducation/public_html/app/Providers/RouteServiceProvider.php
    {
        $this->mapApiRoutes();
 
        $this->mapWebRoutes();
 
        //
    }
 
    /**
     * Define the "web" routes for the application.
     *
     * These routes all receive session state, CSRF protection, etc.
     *
     * @return void
     */
    protected function mapWebRoutes()
    {
        Route::middleware('web')
             ->namespace($this->namespace)
             ->group(base_path('routes/web.php'));
    }
 
    /**
     * Define the "api" routes for the application.
     *
     * These routes are typically stateless.
     *
     * @return void
     */
    protected function mapApiRoutes()
    {
        Route::prefix('api')
             ->middleware('api')
             ->namespace($this->namespace)
             ->group(base_path('routes/api.php'));
    }
}
 
Arguments
  1. "/home/tcmeducation/public_html/routes/web.php"
    
/home/tcmeducation/public_html/app/Providers/RouteServiceProvider.php
     *
     * @return void
     */
    public function boot()
    {
        //
 
        parent::boot();
    }
 
    /**
     * Define the routes for the application.
     *
     * @return void
     */
    public function map()
    {
        $this->mapApiRoutes();
 
        $this->mapWebRoutes();
 
        //
    }
 
    /**
     * Define the "web" routes for the application.
     *
     * These routes all receive session state, CSRF protection, etc.
     *
     * @return void
     */
    protected function mapWebRoutes()
    {
        Route::middleware('web')
             ->namespace($this->namespace)
             ->group(base_path('routes/web.php'));
    }
 
    /**
     * Define the "api" routes for the application.
/home/tcmeducation/public_html/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php
     * @param  callable|string  $callback
     * @param  array  $parameters
     * @param  string|null  $defaultMethod
     * @return mixed
     *
     * @throws \ReflectionException
     * @throws \InvalidArgumentException
     */
    public static function call($container, $callback, array $parameters = [], $defaultMethod = null)
    {
        if (is_string($callback) && ! $defaultMethod && method_exists($callback, '__invoke')) {
            $defaultMethod = '__invoke';
        }
 
        if (static::isCallableWithAtSign($callback) || $defaultMethod) {
            return static::callClass($container, $callback, $parameters, $defaultMethod);
        }
 
        return static::callBoundMethod($container, $callback, function () use ($container, $callback, $parameters) {
            return $callback(...array_values(static::getMethodDependencies($container, $callback, $parameters)));
        });
    }
 
    /**
     * Call a string reference to a class using Class@method syntax.
     *
     * @param  \Illuminate\Container\Container  $container
     * @param  string  $target
     * @param  array  $parameters
     * @param  string|null  $defaultMethod
     * @return mixed
     *
     * @throws \InvalidArgumentException
     */
    protected static function callClass($container, $target, array $parameters = [], $defaultMethod = null)
    {
        $segments = explode('@', $target);
 
        // We will assume an @ sign is used to delimit the class name from the method
        // name. We will split on this @ sign and then build a callable array that
/home/tcmeducation/public_html/vendor/laravel/framework/src/Illuminate/Container/Util.php
    public static function arrayWrap($value)
    {
        if (is_null($value)) {
            return [];
        }
 
        return is_array($value) ? $value : [$value];
    }
 
    /**
     * Return the default value of the given value.
     *
     * From global value() helper in Illuminate\Support.
     *
     * @param  mixed  $value
     * @return mixed
     */
    public static function unwrapIfClosure($value)
    {
        return $value instanceof Closure ? $value() : $value;
    }
 
    /**
     * Get the class name of the given parameter's type, if possible.
     *
     * From Reflector::getParameterClassName() in Illuminate\Support.
     *
     * @param  \ReflectionParameter  $parameter
     * @return string|null
     */
    public static function getParameterClassName($parameter)
    {
        $type = $parameter->getType();
 
        if (! $type instanceof ReflectionNamedType || $type->isBuiltin()) {
            return;
        }
 
        $name = $type->getName();
 
/home/tcmeducation/public_html/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php
     * @param  callable  $callback
     * @param  mixed  $default
     * @return mixed
     */
    protected static function callBoundMethod($container, $callback, $default)
    {
        if (! is_array($callback)) {
            return Util::unwrapIfClosure($default);
        }
 
        // Here we need to turn the array callable into a Class@method string we can use to
        // examine the container and see if there are any method bindings for this given
        // method. If there are, we can call this method binding callback immediately.
        $method = static::normalizeMethod($callback);
 
        if ($container->hasMethodBinding($method)) {
            return $container->callMethodBinding($method, $callback[0]);
        }
 
        return Util::unwrapIfClosure($default);
    }
 
    /**
     * Normalize the given callback into a Class@method string.
     *
     * @param  callable  $callback
     * @return string
     */
    protected static function normalizeMethod($callback)
    {
        $class = is_string($callback[0]) ? $callback[0] : get_class($callback[0]);
 
        return "{$class}@{$callback[1]}";
    }
 
    /**
     * Get all dependencies for a given method.
     *
     * @param  \Illuminate\Container\Container  $container
     * @param  callable|string  $callback
Arguments
  1. Closure() {#218 …3}
    
/home/tcmeducation/public_html/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php
     * @param  array  $parameters
     * @param  string|null  $defaultMethod
     * @return mixed
     *
     * @throws \ReflectionException
     * @throws \InvalidArgumentException
     */
    public static function call($container, $callback, array $parameters = [], $defaultMethod = null)
    {
        if (is_string($callback) && ! $defaultMethod && method_exists($callback, '__invoke')) {
            $defaultMethod = '__invoke';
        }
 
        if (static::isCallableWithAtSign($callback) || $defaultMethod) {
            return static::callClass($container, $callback, $parameters, $defaultMethod);
        }
 
        return static::callBoundMethod($container, $callback, function () use ($container, $callback, $parameters) {
            return $callback(...array_values(static::getMethodDependencies($container, $callback, $parameters)));
        });
    }
 
    /**
     * Call a string reference to a class using Class@method syntax.
     *
     * @param  \Illuminate\Container\Container  $container
     * @param  string  $target
     * @param  array  $parameters
     * @param  string|null  $defaultMethod
     * @return mixed
     *
     * @throws \InvalidArgumentException
     */
    protected static function callClass($container, $target, array $parameters = [], $defaultMethod = null)
    {
        $segments = explode('@', $target);
 
        // We will assume an @ sign is used to delimit the class name from the method
        // name. We will split on this @ sign and then build a callable array that
        // we can pass right back into the "call" method for dependency binding.
Arguments
  1. Illuminate\Foundation\Application {#2}
    
  2. array:2 [
      0 => App\Providers\RouteServiceProvider {#170}
      1 => "map"
    ]
    
  3. Closure() {#218 …3}
    
/home/tcmeducation/public_html/vendor/laravel/framework/src/Illuminate/Container/Container.php
     * @return \Closure
     */
    public function wrap(Closure $callback, array $parameters = [])
    {
        return function () use ($callback, $parameters) {
            return $this->call($callback, $parameters);
        };
    }
 
    /**
     * Call the given Closure / class@method and inject its dependencies.
     *
     * @param  callable|string  $callback
     * @param  array  $parameters
     * @param  string|null  $defaultMethod
     * @return mixed
     */
    public function call($callback, array $parameters = [], $defaultMethod = null)
    {
        return BoundMethod::call($this, $callback, $parameters, $defaultMethod);
    }
 
    /**
     * Get a closure to resolve the given type from the container.
     *
     * @param  string  $abstract
     * @return \Closure
     */
    public function factory($abstract)
    {
        return function () use ($abstract) {
            return $this->make($abstract);
        };
    }
 
    /**
     * An alias function name for make().
     *
     * @param  string  $abstract
     * @param  array  $parameters
Arguments
  1. Illuminate\Foundation\Application {#2}
    
  2. array:2 [
      0 => App\Providers\RouteServiceProvider {#170}
      1 => "map"
    ]
    
  3. []
    
  4. null
    
/home/tcmeducation/public_html/vendor/laravel/framework/src/Illuminate/Foundation/Support/Providers/RouteServiceProvider.php
     * Load the cached routes for the application.
     *
     * @return void
     */
    protected function loadCachedRoutes()
    {
        $this->app->booted(function () {
            require $this->app->getCachedRoutesPath();
        });
    }
 
    /**
     * Load the application routes.
     *
     * @return void
     */
    protected function loadRoutes()
    {
        if (method_exists($this, 'map')) {
            $this->app->call([$this, 'map']);
        }
    }
 
    /**
     * Pass dynamic methods onto the router instance.
     *
     * @param  string  $method
     * @param  array  $parameters
     * @return mixed
     */
    public function __call($method, $parameters)
    {
        return $this->forwardCallTo(
            $this->app->make(Router::class), $method, $parameters
        );
    }
}
 
Arguments
  1. array:2 [
      0 => App\Providers\RouteServiceProvider {#170}
      1 => "map"
    ]
    
/home/tcmeducation/public_html/vendor/laravel/framework/src/Illuminate/Foundation/Support/Providers/RouteServiceProvider.php
    /**
     * The controller namespace for the application.
     *
     * @var string|null
     */
    protected $namespace;
 
    /**
     * Bootstrap any application services.
     *
     * @return void
     */
    public function boot()
    {
        $this->setRootControllerNamespace();
 
        if ($this->routesAreCached()) {
            $this->loadCachedRoutes();
        } else {
            $this->loadRoutes();
 
            $this->app->booted(function () {
                $this->app['router']->getRoutes()->refreshNameLookups();
                $this->app['router']->getRoutes()->refreshActionLookups();
            });
        }
    }
 
    /**
     * Set the root controller namespace for the application.
     *
     * @return void
     */
    protected function setRootControllerNamespace()
    {
        if (! is_null($this->namespace)) {
            $this->app[UrlGenerator::class]->setRootControllerNamespace($this->namespace);
        }
    }
 
/home/tcmeducation/public_html/app/Providers/RouteServiceProvider.php
{
    /**
     * This namespace is applied to your controller routes.
     *
     * In addition, it is set as the URL generator's root namespace.
     *
     * @var string
     */
    protected $namespace = 'App\Http\Controllers';
 
    /**
     * Define your route model bindings, pattern filters, etc.
     *
     * @return void
     */
    public function boot()
    {
        //
 
        parent::boot();
    }
 
    /**
     * Define the routes for the application.
     *
     * @return void
     */
    public function map()
    {
        $this->mapApiRoutes();
 
        $this->mapWebRoutes();
 
        //
    }
 
    /**
     * Define the "web" routes for the application.
     *
     * These routes all receive session state, CSRF protection, etc.
/home/tcmeducation/public_html/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php
     * @param  callable|string  $callback
     * @param  array  $parameters
     * @param  string|null  $defaultMethod
     * @return mixed
     *
     * @throws \ReflectionException
     * @throws \InvalidArgumentException
     */
    public static function call($container, $callback, array $parameters = [], $defaultMethod = null)
    {
        if (is_string($callback) && ! $defaultMethod && method_exists($callback, '__invoke')) {
            $defaultMethod = '__invoke';
        }
 
        if (static::isCallableWithAtSign($callback) || $defaultMethod) {
            return static::callClass($container, $callback, $parameters, $defaultMethod);
        }
 
        return static::callBoundMethod($container, $callback, function () use ($container, $callback, $parameters) {
            return $callback(...array_values(static::getMethodDependencies($container, $callback, $parameters)));
        });
    }
 
    /**
     * Call a string reference to a class using Class@method syntax.
     *
     * @param  \Illuminate\Container\Container  $container
     * @param  string  $target
     * @param  array  $parameters
     * @param  string|null  $defaultMethod
     * @return mixed
     *
     * @throws \InvalidArgumentException
     */
    protected static function callClass($container, $target, array $parameters = [], $defaultMethod = null)
    {
        $segments = explode('@', $target);
 
        // We will assume an @ sign is used to delimit the class name from the method
        // name. We will split on this @ sign and then build a callable array that
/home/tcmeducation/public_html/vendor/laravel/framework/src/Illuminate/Container/Util.php
    public static function arrayWrap($value)
    {
        if (is_null($value)) {
            return [];
        }
 
        return is_array($value) ? $value : [$value];
    }
 
    /**
     * Return the default value of the given value.
     *
     * From global value() helper in Illuminate\Support.
     *
     * @param  mixed  $value
     * @return mixed
     */
    public static function unwrapIfClosure($value)
    {
        return $value instanceof Closure ? $value() : $value;
    }
 
    /**
     * Get the class name of the given parameter's type, if possible.
     *
     * From Reflector::getParameterClassName() in Illuminate\Support.
     *
     * @param  \ReflectionParameter  $parameter
     * @return string|null
     */
    public static function getParameterClassName($parameter)
    {
        $type = $parameter->getType();
 
        if (! $type instanceof ReflectionNamedType || $type->isBuiltin()) {
            return;
        }
 
        $name = $type->getName();
 
/home/tcmeducation/public_html/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php
     * @param  callable  $callback
     * @param  mixed  $default
     * @return mixed
     */
    protected static function callBoundMethod($container, $callback, $default)
    {
        if (! is_array($callback)) {
            return Util::unwrapIfClosure($default);
        }
 
        // Here we need to turn the array callable into a Class@method string we can use to
        // examine the container and see if there are any method bindings for this given
        // method. If there are, we can call this method binding callback immediately.
        $method = static::normalizeMethod($callback);
 
        if ($container->hasMethodBinding($method)) {
            return $container->callMethodBinding($method, $callback[0]);
        }
 
        return Util::unwrapIfClosure($default);
    }
 
    /**
     * Normalize the given callback into a Class@method string.
     *
     * @param  callable  $callback
     * @return string
     */
    protected static function normalizeMethod($callback)
    {
        $class = is_string($callback[0]) ? $callback[0] : get_class($callback[0]);
 
        return "{$class}@{$callback[1]}";
    }
 
    /**
     * Get all dependencies for a given method.
     *
     * @param  \Illuminate\Container\Container  $container
     * @param  callable|string  $callback
Arguments
  1. Closure() {#227 …3}
    
/home/tcmeducation/public_html/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php
     * @param  array  $parameters
     * @param  string|null  $defaultMethod
     * @return mixed
     *
     * @throws \ReflectionException
     * @throws \InvalidArgumentException
     */
    public static function call($container, $callback, array $parameters = [], $defaultMethod = null)
    {
        if (is_string($callback) && ! $defaultMethod && method_exists($callback, '__invoke')) {
            $defaultMethod = '__invoke';
        }
 
        if (static::isCallableWithAtSign($callback) || $defaultMethod) {
            return static::callClass($container, $callback, $parameters, $defaultMethod);
        }
 
        return static::callBoundMethod($container, $callback, function () use ($container, $callback, $parameters) {
            return $callback(...array_values(static::getMethodDependencies($container, $callback, $parameters)));
        });
    }
 
    /**
     * Call a string reference to a class using Class@method syntax.
     *
     * @param  \Illuminate\Container\Container  $container
     * @param  string  $target
     * @param  array  $parameters
     * @param  string|null  $defaultMethod
     * @return mixed
     *
     * @throws \InvalidArgumentException
     */
    protected static function callClass($container, $target, array $parameters = [], $defaultMethod = null)
    {
        $segments = explode('@', $target);
 
        // We will assume an @ sign is used to delimit the class name from the method
        // name. We will split on this @ sign and then build a callable array that
        // we can pass right back into the "call" method for dependency binding.
Arguments
  1. Illuminate\Foundation\Application {#2}
    
  2. array:2 [
      0 => App\Providers\RouteServiceProvider {#170}
      1 => "boot"
    ]
    
  3. Closure() {#227 …3}
    
/home/tcmeducation/public_html/vendor/laravel/framework/src/Illuminate/Container/Container.php
     * @return \Closure
     */
    public function wrap(Closure $callback, array $parameters = [])
    {
        return function () use ($callback, $parameters) {
            return $this->call($callback, $parameters);
        };
    }
 
    /**
     * Call the given Closure / class@method and inject its dependencies.
     *
     * @param  callable|string  $callback
     * @param  array  $parameters
     * @param  string|null  $defaultMethod
     * @return mixed
     */
    public function call($callback, array $parameters = [], $defaultMethod = null)
    {
        return BoundMethod::call($this, $callback, $parameters, $defaultMethod);
    }
 
    /**
     * Get a closure to resolve the given type from the container.
     *
     * @param  string  $abstract
     * @return \Closure
     */
    public function factory($abstract)
    {
        return function () use ($abstract) {
            return $this->make($abstract);
        };
    }
 
    /**
     * An alias function name for make().
     *
     * @param  string  $abstract
     * @param  array  $parameters
Arguments
  1. Illuminate\Foundation\Application {#2}
    
  2. array:2 [
      0 => App\Providers\RouteServiceProvider {#170}
      1 => "boot"
    ]
    
  3. []
    
  4. null
    
/home/tcmeducation/public_html/vendor/laravel/framework/src/Illuminate/Foundation/Application.php
 
        array_walk($this->serviceProviders, function ($p) {
            $this->bootProvider($p);
        });
 
        $this->booted = true;
 
        $this->fireAppCallbacks($this->bootedCallbacks);
    }
 
    /**
     * Boot the given service provider.
     *
     * @param  \Illuminate\Support\ServiceProvider  $provider
     * @return mixed
     */
    protected function bootProvider(ServiceProvider $provider)
    {
        if (method_exists($provider, 'boot')) {
            return $this->call([$provider, 'boot']);
        }
    }
 
    /**
     * Register a new boot listener.
     *
     * @param  callable  $callback
     * @return void
     */
    public function booting($callback)
    {
        $this->bootingCallbacks[] = $callback;
    }
 
    /**
     * Register a new "booted" listener.
     *
     * @param  callable  $callback
     * @return void
     */
Arguments
  1. array:2 [
      0 => App\Providers\RouteServiceProvider {#170}
      1 => "boot"
    ]
    
/home/tcmeducation/public_html/vendor/laravel/framework/src/Illuminate/Foundation/Application.php
    }
 
    /**
     * Boot the application's service providers.
     *
     * @return void
     */
    public function boot()
    {
        if ($this->isBooted()) {
            return;
        }
 
        // Once the application has booted we will also fire some "booted" callbacks
        // for any listeners that need to do work after this initial booting gets
        // finished. This is useful when ordering the boot-up processes we run.
        $this->fireAppCallbacks($this->bootingCallbacks);
 
        array_walk($this->serviceProviders, function ($p) {
            $this->bootProvider($p);
        });
 
        $this->booted = true;
 
        $this->fireAppCallbacks($this->bootedCallbacks);
    }
 
    /**
     * Boot the given service provider.
     *
     * @param  \Illuminate\Support\ServiceProvider  $provider
     * @return mixed
     */
    protected function bootProvider(ServiceProvider $provider)
    {
        if (method_exists($provider, 'boot')) {
            return $this->call([$provider, 'boot']);
        }
    }
 
Arguments
  1. App\Providers\RouteServiceProvider {#170}
    
[internal]
Arguments
  1. App\Providers\RouteServiceProvider {#170}
    
  2. 41
    
/home/tcmeducation/public_html/vendor/laravel/framework/src/Illuminate/Foundation/Application.php
 
    /**
     * Boot the application's service providers.
     *
     * @return void
     */
    public function boot()
    {
        if ($this->isBooted()) {
            return;
        }
 
        // Once the application has booted we will also fire some "booted" callbacks
        // for any listeners that need to do work after this initial booting gets
        // finished. This is useful when ordering the boot-up processes we run.
        $this->fireAppCallbacks($this->bootingCallbacks);
 
        array_walk($this->serviceProviders, function ($p) {
            $this->bootProvider($p);
        });
 
        $this->booted = true;
 
        $this->fireAppCallbacks($this->bootedCallbacks);
    }
 
    /**
     * Boot the given service provider.
     *
     * @param  \Illuminate\Support\ServiceProvider  $provider
     * @return mixed
     */
    protected function bootProvider(ServiceProvider $provider)
    {
        if (method_exists($provider, 'boot')) {
            return $this->call([$provider, 'boot']);
        }
    }
 
    /**
Arguments
  1. array:46 [
      0 => Illuminate\Events\EventServiceProvider {#14}
      1 => Illuminate\Log\LogServiceProvider {#16}
      2 => Illuminate\Routing\RoutingServiceProvider {#18}
      3 => Illuminate\Auth\AuthServiceProvider {#50}
      4 => Illuminate\Cookie\CookieServiceProvider {#58}
      5 => Illuminate\Database\DatabaseServiceProvider {#33}
      6 => Illuminate\Encryption\EncryptionServiceProvider {#69}
      7 => Illuminate\Filesystem\FilesystemServiceProvider {#72}
      8 => Illuminate\Foundation\Providers\FormRequestServiceProvider {#78}
      9 => Illuminate\Foundation\Providers\FoundationServiceProvider {#77}
      10 => Illuminate\Notifications\NotificationServiceProvider {#82}
      11 => Illuminate\Pagination\PaginationServiceProvider {#84}
      12 => Illuminate\Session\SessionServiceProvider {#88}
      13 => Illuminate\View\ViewServiceProvider {#92}
      14 => Anand\LaravelPaytmWallet\PaytmWalletServiceProvider {#97}
      15 => Anhskohbo\NoCaptcha\NoCaptchaServiceProvider {#99}
      16 => Barryvdh\DomPDF\ServiceProvider {#101}
      17 => BeyondCode\DumpServer\DumpServerServiceProvider {#105}
      18 => Cartalyst\Stripe\Laravel\StripeServiceProvider {#113}
      19 => DevMarketer\EasyNav\EasyNavServiceProvider {#116}
      20 => Fideloper\Proxy\TrustedProxyServiceProvider {#118}
      21 => Intervention\Image\ImageServiceProvider {#119}
      22 => KingFlamez\Rave\RaveServiceProvider {#122}
      23 => Laravel\Passport\PassportServiceProvider {#124}
      24 => Laravel\Tinker\TinkerServiceProvider {#131}
      25 => Laravolt\Avatar\ServiceProvider {#134}
      26 => Mollie\Laravel\MollieServiceProvider {#137}
      27 => Carbon\Laravel\ServiceProvider {#141}
      28 => NunoMaduro\Collision\Adapters\Laravel\CollisionServiceProvider {#142}
      29 => Obydul\LaraSkrill\LaraSkrillServiceProvider {#143}
      30 => Orangehill\Iseed\IseedServiceProvider {#144}
      31 => Revolution\Socialite\Amazon\AmazonServiceProvider {#150}
      32 => SmoDav\Mpesa\Laravel\ServiceProvider {#151}
      33 => Spatie\LaravelImageOptimizer\ImageOptimizerServiceProvider {#159}
      34 => Spatie\Translatable\TranslatableServiceProvider {#162}
      35 => Tanmuhittin\LaravelGoogleTranslate\LaravelGoogleTranslateServiceProvider {#163}
      36 => Tzsk\Payu\Provider\PayuServiceProvider {#164}
      37 => Unicodeveloper\Paystack\PaystackServiceProvider {#165}
      38 => App\Providers\AppServiceProvider {#167}
      39 => App\Providers\AuthServiceProvider {#168}
      40 => App\Providers\EventServiceProvider {#169}
      41 => App\Providers\RouteServiceProvider {#170}
      42 => Illuminate\Validation\ValidationServiceProvider {#177}
      43 => Illuminate\Translation\TranslationServiceProvider {#181}
      44 => Laravel\Socialite\SocialiteServiceProvider {#192}
      45 => Illuminate\Hashing\HashServiceProvider {#32}
    ]
    
  2. Closure($p) {#40 …4}
    
/home/tcmeducation/public_html/vendor/laravel/framework/src/Illuminate/Foundation/Bootstrap/BootProviders.php
<?php
 
namespace Illuminate\Foundation\Bootstrap;
 
use Illuminate\Contracts\Foundation\Application;
 
class BootProviders
{
    /**
     * Bootstrap the given application.
     *
     * @param  \Illuminate\Contracts\Foundation\Application  $app
     * @return void
     */
    public function bootstrap(Application $app)
    {
        $app->boot();
    }
}
 
/home/tcmeducation/public_html/vendor/laravel/framework/src/Illuminate/Foundation/Application.php
    {
        $this->register(new EventServiceProvider($this));
        $this->register(new LogServiceProvider($this));
        $this->register(new RoutingServiceProvider($this));
    }
 
    /**
     * Run the given array of bootstrap classes.
     *
     * @param  string[]  $bootstrappers
     * @return void
     */
    public function bootstrapWith(array $bootstrappers)
    {
        $this->hasBeenBootstrapped = true;
 
        foreach ($bootstrappers as $bootstrapper) {
            $this['events']->dispatch('bootstrapping: '.$bootstrapper, [$this]);
 
            $this->make($bootstrapper)->bootstrap($this);
 
            $this['events']->dispatch('bootstrapped: '.$bootstrapper, [$this]);
        }
    }
 
    /**
     * Register a callback to run after loading the environment.
     *
     * @param  \Closure  $callback
     * @return void
     */
    public function afterLoadingEnvironment(Closure $callback)
    {
        return $this->afterBootstrapping(
            LoadEnvironmentVariables::class, $callback
        );
    }
 
    /**
     * Register a callback to run before a bootstrapper.
Arguments
  1. Illuminate\Foundation\Application {#2}
    
/home/tcmeducation/public_html/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php
 
        Facade::clearResolvedInstance('request');
 
        $this->bootstrap();
 
        return (new Pipeline($this->app))
                    ->send($request)
                    ->through($this->app->shouldSkipMiddleware() ? [] : $this->middleware)
                    ->then($this->dispatchToRouter());
    }
 
    /**
     * Bootstrap the application for HTTP requests.
     *
     * @return void
     */
    public function bootstrap()
    {
        if (! $this->app->hasBeenBootstrapped()) {
            $this->app->bootstrapWith($this->bootstrappers());
        }
    }
 
    /**
     * Get the route dispatcher callback.
     *
     * @return \Closure
     */
    protected function dispatchToRouter()
    {
        return function ($request) {
            $this->app->instance('request', $request);
 
            return $this->router->dispatch($request);
        };
    }
 
    /**
     * Call the terminate method on any terminable middleware.
     *
Arguments
  1. array:6 [
      0 => "Illuminate\Foundation\Bootstrap\LoadEnvironmentVariables"
      1 => "Illuminate\Foundation\Bootstrap\LoadConfiguration"
      2 => "Illuminate\Foundation\Bootstrap\HandleExceptions"
      3 => "Illuminate\Foundation\Bootstrap\RegisterFacades"
      4 => "Illuminate\Foundation\Bootstrap\RegisterProviders"
      5 => "Illuminate\Foundation\Bootstrap\BootProviders"
    ]
    
/home/tcmeducation/public_html/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php
        $this->app['events']->dispatch(
            new RequestHandled($request, $response)
        );
 
        return $response;
    }
 
    /**
     * Send the given request through the middleware / router.
     *
     * @param  \Illuminate\Http\Request  $request
     * @return \Illuminate\Http\Response
     */
    protected function sendRequestThroughRouter($request)
    {
        $this->app->instance('request', $request);
 
        Facade::clearResolvedInstance('request');
 
        $this->bootstrap();
 
        return (new Pipeline($this->app))
                    ->send($request)
                    ->through($this->app->shouldSkipMiddleware() ? [] : $this->middleware)
                    ->then($this->dispatchToRouter());
    }
 
    /**
     * Bootstrap the application for HTTP requests.
     *
     * @return void
     */
    public function bootstrap()
    {
        if (! $this->app->hasBeenBootstrapped()) {
            $this->app->bootstrapWith($this->bootstrappers());
        }
    }
 
    /**
/home/tcmeducation/public_html/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php
    public function __construct(Application $app, Router $router)
    {
        $this->app = $app;
        $this->router = $router;
 
        $this->syncMiddlewareToRouter();
    }
 
    /**
     * 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 RequestHandled($request, $response)
        );
 
        return $response;
    }
 
    /**
     * Send the given request through the middleware / router.
     *
Arguments
  1. Illuminate\Http\Request {#51
      #json: null
      #convertedFiles: null
      #userResolver: null
      #routeResolver: null
      +attributes: Symfony\Component\HttpFoundation\ParameterBag {#53}
      +request: Symfony\Component\HttpFoundation\ParameterBag {#59}
      +query: Symfony\Component\HttpFoundation\ParameterBag {#59}
      +server: Symfony\Component\HttpFoundation\ServerBag {#55}
      +files: Symfony\Component\HttpFoundation\FileBag {#56}
      +cookies: Symfony\Component\HttpFoundation\ParameterBag {#54}
      +headers: Symfony\Component\HttpFoundation\HeaderBag {#57}
      #content: null
      #languages: null
      #charsets: null
      #encodings: null
      #acceptableContentTypes: array:1 [
        0 => "*/*"
      ]
      #pathInfo: null
      #requestUri: "//lagligt-att-bestalla-arcoxia-pa-natet-piller-shop-saker-och-anonym-hela-varlden-leverans-1-3-dagar/"
      #baseUrl: ""
      #basePath: null
      #method: null
      #format: null
      #session: null
      #locale: null
      #defaultLocale: "en"
      -preferredFormat: null
      -isHostValid: true
      -isForwardedValid: true
      pathInfo: "//lagligt-att-bestalla-arcoxia-pa-natet-piller-shop-saker-och-anonym-hela-varlden-leverans-1-3-dagar/"
      basePath: ""
      method: "GET"
      format: "html"
    }
    
/home/tcmeducation/public_html/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 {#51
      #json: null
      #convertedFiles: null
      #userResolver: null
      #routeResolver: null
      +attributes: Symfony\Component\HttpFoundation\ParameterBag {#53}
      +request: Symfony\Component\HttpFoundation\ParameterBag {#59}
      +query: Symfony\Component\HttpFoundation\ParameterBag {#59}
      +server: Symfony\Component\HttpFoundation\ServerBag {#55}
      +files: Symfony\Component\HttpFoundation\FileBag {#56}
      +cookies: Symfony\Component\HttpFoundation\ParameterBag {#54}
      +headers: Symfony\Component\HttpFoundation\HeaderBag {#57}
      #content: null
      #languages: null
      #charsets: null
      #encodings: null
      #acceptableContentTypes: array:1 [
        0 => "*/*"
      ]
      #pathInfo: null
      #requestUri: "//lagligt-att-bestalla-arcoxia-pa-natet-piller-shop-saker-och-anonym-hela-varlden-leverans-1-3-dagar/"
      #baseUrl: ""
      #basePath: null
      #method: null
      #format: null
      #session: null
      #locale: null
      #defaultLocale: "en"
      -preferredFormat: null
      -isHostValid: true
      -isForwardedValid: true
      pathInfo: "//lagligt-att-bestalla-arcoxia-pa-natet-piller-shop-saker-och-anonym-hela-varlden-leverans-1-3-dagar/"
      basePath: ""
      method: "GET"
      format: "html"
    }
    

Environment & details:

empty
empty
empty
empty
empty
Key Value
PATH
"/usr/local/bin:/bin:/usr/bin"
HTTP_ACCEPT
"*/*"
HTTP_HOST
"tcmeducation.in"
HTTP_REFERER
"http://tcmeducation.in/lagligt-att-bestalla-arcoxia-pa-natet-piller-shop-saker-och-anonym-hela-varlden-leverans-1-3-dagar/"
HTTP_USER_AGENT
"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)"
HTTP_X_HTTPS
"1"
DOCUMENT_ROOT
"/home/tcmeducation/public_html"
REMOTE_ADDR
"18.223.0.53"
REMOTE_PORT
"23753"
SERVER_ADDR
"51.210.156.152"
SERVER_NAME
"tcmeducation.in"
SERVER_ADMIN
"webmaster@tcmeducation.in"
SERVER_PORT
"443"
REQUEST_SCHEME
"https"
REQUEST_URI
"//lagligt-att-bestalla-arcoxia-pa-natet-piller-shop-saker-och-anonym-hela-varlden-leverans-1-3-dagar/"
REDIRECT_URL
"/public/lagligt-att-bestalla-arcoxia-pa-natet-piller-shop-saker-och-anonym-hela-varlden-leverans-1-3-dagar/"
REDIRECT_REQUEST_METHOD
"GET"
HTTPS
"on"
REDIRECT_STATUS
"200"
X_SPDY
"HTTP2"
SSL_PROTOCOL
"TLSv1.2"
SSL_CIPHER
"ECDHE-RSA-AES256-GCM-SHA384"
SSL_CIPHER_USEKEYSIZE
"256"
SSL_CIPHER_ALGKEYSIZE
"256"
SCRIPT_FILENAME
"/home/tcmeducation/public_html/public/index.php"
QUERY_STRING
""
SCRIPT_URI
"https://tcmeducation.in/lagligt-att-bestalla-arcoxia-pa-natet-piller-shop-saker-och-anonym-hela-varlden-leverans-1-3-dagar/"
SCRIPT_URL
"/lagligt-att-bestalla-arcoxia-pa-natet-piller-shop-saker-och-anonym-hela-varlden-leverans-1-3-dagar/"
SCRIPT_NAME
"/public/index.php"
SERVER_PROTOCOL
"HTTP/1.1"
SERVER_SOFTWARE
"LiteSpeed"
REQUEST_METHOD
"GET"
X-LSCACHE
"on"
PHP_SELF
"/public/index.php"
REQUEST_TIME_FLOAT
1713936262.0973
REQUEST_TIME
1713936262
argv
[]
argc
0
APP_NAME
"TCMEducation(TOILCHAMBEROFMATHMATICS)"
APP_ENV
"local"
APP_KEY
"base64:ht03/lhSFXYxwQF9UzdPXp+c6JpWyUUVlp1Qf3ZetA0="
APP_DEBUG
"true"
APP_URL
"https://tcmeducation.in/"
LOG_CHANNEL
"stack"
SESSION_DOMAIN
""
DB_CONNECTION
"mysql"
DB_HOST
"127.0.0.1"
DB_PORT
"3306"
DB_DATABASE
"tcmeduca_tcmedu"
DB_USERNAME
"tcmeduca_tcm"
DB_PASSWORD
"EWY;d~xtP!D8"
BROADCAST_DRIVER
"log"
CACHE_DRIVER
"file"
QUEUE_CONNECTION
"sync"
SESSION_DRIVER
"file"
SESSION_LIFETIME
"10080"
REDIS_HOST
"127.0.0.1"
REDIS_PASSWORD
"null"
REDIS_PORT
"6379"
MAIL_DRIVER
"log"
MAIL_HOST
"smtp.gmail.com"
MAIL_PORT
"587"
MAIL_USERNAME
"tcmeducationonline@gmail.com"
MAIL_PASSWORD
"ajaisir"
MAIL_ENCRYPTION
"tls"
MAIL_FROM_NAME
"TCMEDUCATION"
MAIL_FROM_ADDRESS
"tcmeducationonline@gmail.com"
PUSHER_APP_ID
""
PUSHER_APP_KEY
""
PUSHER_APP_SECRET
""
PUSHER_APP_CLUSTER
""
MIX_PUSHER_APP_KEY
""
MIX_PUSHER_APP_CLUSTER
""
FACEBOOK_CLIENT_ID
""
FACEBOOK_CLIENT_SECRET
""
FACEBOOK_CALLBACK_URL
""
GOOGLE_CLIENT_ID
""
GOOGLE_CLIENT_SECRET
""
GOOGLE_CALLBACK_URL
""
GITLAB_CLIENT_ID
""
GITLAB_CLIENT_SECRET
""
GITLAB_CALLBACK_URL
""
PAYPAL_CLIENT_ID
""
PAYPAL_SECRET
""
PAYPAL_MODE
""
IM_API_KEY
""
IM_AUTH_TOKEN
""
IM_URL
"https:"
STRIPE_KEY
""
STRIPE_SECRET
""
RAZORPAY_KEY
"rzp_live_5Q4lm2cNYUe9hq"
RAZORPAY_SECRET
"1RgMpwaMhc12KMb7C83b9wPA"
PAYSTACK_PUBLIC_KEY
""
PAYSTACK_SECRET_KEY
""
PAYSTACK_PAYMENT_URL
""
PAYSTACK_MERCHANT_EMAIL
""
PAYTM_ENVIRONMENT
""
PAYTM_MERCHANT_ID
""
PAYTM_MERCHANT_KEY
""
PAYTM_MERCHANT_WEBSITE
""
PAYTM_CHANNEL
""
PAYTM_INDUSTRY_TYPE
""
NOCAPTCHA_SITEKEY
""
NOCAPTCHA_SECRET
""
AMAZON_LOGIN_ID
""
AMAZON_LOGIN_SECRET
""
AMAZON_LOGIN_REDIRECT
""
LINKEDIN_CLIENT_ID
""
LINKEDIN_CLIENT_SECRET
""
LINKEDIN_CALLBACK_URL
""
TWITTER_CLIENT_ID
""
TWITTER_CLIENT_SECRET
""
TWITTER_CALLBACK_URL
""
IS_INSTALLED
"1"
BBB_SECURITY_SALT
"bbl.anumaandreams.com"
BBB_SERVER_BASE_URL
"https://bbl.anumaandreams.com/bigbluebutton/"
Key Value
APP_NAME
"TCMEducation(TOILCHAMBEROFMATHMATICS)"
APP_ENV
"local"
APP_KEY
"base64:ht03/lhSFXYxwQF9UzdPXp+c6JpWyUUVlp1Qf3ZetA0="
APP_DEBUG
"true"
APP_URL
"https://tcmeducation.in/"
LOG_CHANNEL
"stack"
SESSION_DOMAIN
""
DB_CONNECTION
"mysql"
DB_HOST
"127.0.0.1"
DB_PORT
"3306"
DB_DATABASE
"tcmeduca_tcmedu"
DB_USERNAME
"tcmeduca_tcm"
DB_PASSWORD
"EWY;d~xtP!D8"
BROADCAST_DRIVER
"log"
CACHE_DRIVER
"file"
QUEUE_CONNECTION
"sync"
SESSION_DRIVER
"file"
SESSION_LIFETIME
"10080"
REDIS_HOST
"127.0.0.1"
REDIS_PASSWORD
"null"
REDIS_PORT
"6379"
MAIL_DRIVER
"log"
MAIL_HOST
"smtp.gmail.com"
MAIL_PORT
"587"
MAIL_USERNAME
"tcmeducationonline@gmail.com"
MAIL_PASSWORD
"ajaisir"
MAIL_ENCRYPTION
"tls"
MAIL_FROM_NAME
"TCMEDUCATION"
MAIL_FROM_ADDRESS
"tcmeducationonline@gmail.com"
PUSHER_APP_ID
""
PUSHER_APP_KEY
""
PUSHER_APP_SECRET
""
PUSHER_APP_CLUSTER
""
MIX_PUSHER_APP_KEY
""
MIX_PUSHER_APP_CLUSTER
""
FACEBOOK_CLIENT_ID
""
FACEBOOK_CLIENT_SECRET
""
FACEBOOK_CALLBACK_URL
""
GOOGLE_CLIENT_ID
""
GOOGLE_CLIENT_SECRET
""
GOOGLE_CALLBACK_URL
""
GITLAB_CLIENT_ID
""
GITLAB_CLIENT_SECRET
""
GITLAB_CALLBACK_URL
""
PAYPAL_CLIENT_ID
""
PAYPAL_SECRET
""
PAYPAL_MODE
""
IM_API_KEY
""
IM_AUTH_TOKEN
""
IM_URL
"https:"
STRIPE_KEY
""
STRIPE_SECRET
""
RAZORPAY_KEY
"rzp_live_5Q4lm2cNYUe9hq"
RAZORPAY_SECRET
"1RgMpwaMhc12KMb7C83b9wPA"
PAYSTACK_PUBLIC_KEY
""
PAYSTACK_SECRET_KEY
""
PAYSTACK_PAYMENT_URL
""
PAYSTACK_MERCHANT_EMAIL
""
PAYTM_ENVIRONMENT
""
PAYTM_MERCHANT_ID
""
PAYTM_MERCHANT_KEY
""
PAYTM_MERCHANT_WEBSITE
""
PAYTM_CHANNEL
""
PAYTM_INDUSTRY_TYPE
""
NOCAPTCHA_SITEKEY
""
NOCAPTCHA_SECRET
""
AMAZON_LOGIN_ID
""
AMAZON_LOGIN_SECRET
""
AMAZON_LOGIN_REDIRECT
""
LINKEDIN_CLIENT_ID
""
LINKEDIN_CLIENT_SECRET
""
LINKEDIN_CALLBACK_URL
""
TWITTER_CLIENT_ID
""
TWITTER_CLIENT_SECRET
""
TWITTER_CALLBACK_URL
""
IS_INSTALLED
"1"
BBB_SECURITY_SALT
"bbl.anumaandreams.com"
BBB_SERVER_BASE_URL
"https://bbl.anumaandreams.com/bigbluebutton/"
0. Whoops\Handler\PrettyPageHandler