Illuminate \ Database \ QueryException (2002)
SQLSTATE[HY000] [2002] No connection could be made because the target machine actively refused it. (SQL: select * from `branches` where `active` = 1 and `hq` = 1 limit 1)
Previous exceptions
  • SQLSTATE[HY000] [2002] No connection could be made because the target machine actively refused it. (2002)
  • SQLSTATE[HY000] [2002] No connection could be made because the target machine actively refused it. (2002)
Illuminate\Database\QueryException thrown with message "SQLSTATE[HY000] [2002] No connection could be made because the target machine actively refused it. (SQL: select * from `branches` where `active` = 1 and `hq` = 1 limit 1)" Stacktrace: #60 Illuminate\Database\QueryException in C:\inetpub\vhosts\btsconsultant.com\httpdocs\BTSConsultant_Resources\vendor\laravel\framework\src\Illuminate\Database\Connection.php:664 #59 App\Http\Controllers\Controller:__construct in [internal]:0 #58 Doctrine\DBAL\Driver\PDOException in C:\inetpub\vhosts\btsconsultant.com\httpdocs\BTSConsultant_Resources\vendor\doctrine\dbal\lib\Doctrine\DBAL\Driver\PDOConnection.php:31 #57 App\Http\Controllers\Controller:__construct in [internal]:0 #56 PDOException in C:\inetpub\vhosts\btsconsultant.com\httpdocs\BTSConsultant_Resources\vendor\doctrine\dbal\lib\Doctrine\DBAL\Driver\PDOConnection.php:27 #55 PDO:__construct in C:\inetpub\vhosts\btsconsultant.com\httpdocs\BTSConsultant_Resources\vendor\doctrine\dbal\lib\Doctrine\DBAL\Driver\PDOConnection.php:27 #54 Doctrine\DBAL\Driver\PDOConnection:__construct in C:\inetpub\vhosts\btsconsultant.com\httpdocs\BTSConsultant_Resources\vendor\laravel\framework\src\Illuminate\Database\Connectors\Connector.php:67 #53 Illuminate\Database\Connectors\Connector:createPdoConnection in C:\inetpub\vhosts\btsconsultant.com\httpdocs\BTSConsultant_Resources\vendor\laravel\framework\src\Illuminate\Database\Connectors\Connector.php:46 #52 Illuminate\Database\Connectors\Connector:createConnection in C:\inetpub\vhosts\btsconsultant.com\httpdocs\BTSConsultant_Resources\vendor\laravel\framework\src\Illuminate\Database\Connectors\MySqlConnector.php:24 #51 Illuminate\Database\Connectors\MySqlConnector:connect in C:\inetpub\vhosts\btsconsultant.com\httpdocs\BTSConsultant_Resources\vendor\laravel\framework\src\Illuminate\Database\Connectors\ConnectionFactory.php:182 #50 Illuminate\Database\Connectors\ConnectionFactory:Illuminate\Database\Connectors\{closure} in C:\inetpub\vhosts\btsconsultant.com\httpdocs\BTSConsultant_Resources\vendor\laravel\framework\src\Illuminate\Database\Connection.php:919 #49 call_user_func in C:\inetpub\vhosts\btsconsultant.com\httpdocs\BTSConsultant_Resources\vendor\laravel\framework\src\Illuminate\Database\Connection.php:919 #48 Illuminate\Database\Connection:getPdo in C:\inetpub\vhosts\btsconsultant.com\httpdocs\BTSConsultant_Resources\vendor\laravel\framework\src\Illuminate\Database\Connection.php:944 #47 Illuminate\Database\Connection:getReadPdo in C:\inetpub\vhosts\btsconsultant.com\httpdocs\BTSConsultant_Resources\vendor\laravel\framework\src\Illuminate\Database\Connection.php:399 #46 Illuminate\Database\Connection:getPdoForSelect in C:\inetpub\vhosts\btsconsultant.com\httpdocs\BTSConsultant_Resources\vendor\laravel\framework\src\Illuminate\Database\Connection.php:325 #45 Illuminate\Database\Connection:Illuminate\Database\{closure} in C:\inetpub\vhosts\btsconsultant.com\httpdocs\BTSConsultant_Resources\vendor\laravel\framework\src\Illuminate\Database\Connection.php:657 #44 Illuminate\Database\Connection:runQueryCallback in C:\inetpub\vhosts\btsconsultant.com\httpdocs\BTSConsultant_Resources\vendor\laravel\framework\src\Illuminate\Database\Connection.php:624 #43 Illuminate\Database\Connection:run in C:\inetpub\vhosts\btsconsultant.com\httpdocs\BTSConsultant_Resources\vendor\laravel\framework\src\Illuminate\Database\Connection.php:333 #42 Illuminate\Database\Connection:select in C:\inetpub\vhosts\btsconsultant.com\httpdocs\BTSConsultant_Resources\vendor\laravel\framework\src\Illuminate\Database\Query\Builder.php:2130 #41 Illuminate\Database\Query\Builder:runSelect in C:\inetpub\vhosts\btsconsultant.com\httpdocs\BTSConsultant_Resources\vendor\laravel\framework\src\Illuminate\Database\Query\Builder.php:2118 #40 Illuminate\Database\Query\Builder:Illuminate\Database\Query\{closure} in C:\inetpub\vhosts\btsconsultant.com\httpdocs\BTSConsultant_Resources\vendor\laravel\framework\src\Illuminate\Database\Query\Builder.php:2604 #39 Illuminate\Database\Query\Builder:onceWithColumns in C:\inetpub\vhosts\btsconsultant.com\httpdocs\BTSConsultant_Resources\vendor\laravel\framework\src\Illuminate\Database\Query\Builder.php:2119 #38 Illuminate\Database\Query\Builder:get in C:\inetpub\vhosts\btsconsultant.com\httpdocs\BTSConsultant_Resources\vendor\laravel\framework\src\Illuminate\Database\Eloquent\Builder.php:521 #37 Illuminate\Database\Eloquent\Builder:getModels in C:\inetpub\vhosts\btsconsultant.com\httpdocs\BTSConsultant_Resources\vendor\laravel\framework\src\Illuminate\Database\Eloquent\Builder.php:505 #36 Illuminate\Database\Eloquent\Builder:get in C:\inetpub\vhosts\btsconsultant.com\httpdocs\BTSConsultant_Resources\vendor\laravel\framework\src\Illuminate\Database\Concerns\BuildsQueries.php:77 #35 Illuminate\Database\Eloquent\Builder:first in C:\inetpub\vhosts\btsconsultant.com\httpdocs\BTSConsultant_Resources\vendor\laravel\framework\src\Illuminate\Database\Eloquent\Builder.php:450 #34 Illuminate\Database\Eloquent\Builder:firstOrFail in C:\inetpub\vhosts\btsconsultant.com\httpdocs\BTSConsultant_Resources\app\Http\Controllers\Controller.php:19 #33 App\Http\Controllers\Controller:__construct in [internal]:0 #32 ReflectionClass:newInstanceArgs in C:\inetpub\vhosts\btsconsultant.com\httpdocs\BTSConsultant_Resources\vendor\laravel\framework\src\Illuminate\Container\Container.php:825 #31 Illuminate\Container\Container:build in C:\inetpub\vhosts\btsconsultant.com\httpdocs\BTSConsultant_Resources\vendor\laravel\framework\src\Illuminate\Container\Container.php:667 #30 Illuminate\Container\Container:resolve in C:\inetpub\vhosts\btsconsultant.com\httpdocs\BTSConsultant_Resources\vendor\laravel\framework\src\Illuminate\Container\Container.php:615 #29 Illuminate\Container\Container:make in C:\inetpub\vhosts\btsconsultant.com\httpdocs\BTSConsultant_Resources\vendor\laravel\framework\src\Illuminate\Foundation\Application.php:767 #28 Illuminate\Foundation\Application:make in C:\inetpub\vhosts\btsconsultant.com\httpdocs\BTSConsultant_Resources\vendor\laravel\framework\src\Illuminate\Routing\Route.php:233 #27 Illuminate\Routing\Route:getController in C:\inetpub\vhosts\btsconsultant.com\httpdocs\BTSConsultant_Resources\vendor\laravel\framework\src\Illuminate\Routing\Route.php:833 #26 Illuminate\Routing\Route:controllerMiddleware in C:\inetpub\vhosts\btsconsultant.com\httpdocs\BTSConsultant_Resources\vendor\laravel\framework\src\Illuminate\Routing\Route.php:794 #25 Illuminate\Routing\Route:gatherMiddleware in C:\inetpub\vhosts\btsconsultant.com\httpdocs\BTSConsultant_Resources\vendor\laravel\framework\src\Illuminate\Routing\Router.php:693 #24 Illuminate\Routing\Router:gatherRouteMiddleware in C:\inetpub\vhosts\btsconsultant.com\httpdocs\BTSConsultant_Resources\vendor\laravel\framework\src\Illuminate\Routing\Router.php:673 #23 Illuminate\Routing\Router:runRouteWithinStack in C:\inetpub\vhosts\btsconsultant.com\httpdocs\BTSConsultant_Resources\vendor\laravel\framework\src\Illuminate\Routing\Router.php:657 #22 Illuminate\Routing\Router:runRoute in C:\inetpub\vhosts\btsconsultant.com\httpdocs\BTSConsultant_Resources\vendor\laravel\framework\src\Illuminate\Routing\Router.php:623 #21 Illuminate\Routing\Router:dispatchToRoute in C:\inetpub\vhosts\btsconsultant.com\httpdocs\BTSConsultant_Resources\vendor\laravel\framework\src\Illuminate\Routing\Router.php:612 #20 Illuminate\Routing\Router:dispatch in C:\inetpub\vhosts\btsconsultant.com\httpdocs\BTSConsultant_Resources\vendor\laravel\framework\src\Illuminate\Foundation\Http\Kernel.php:176 #19 Illuminate\Foundation\Http\Kernel:Illuminate\Foundation\Http\{closure} in C:\inetpub\vhosts\btsconsultant.com\httpdocs\BTSConsultant_Resources\vendor\laravel\framework\src\Illuminate\Routing\Pipeline.php:30 #18 Illuminate\Routing\Pipeline:Illuminate\Routing\{closure} in C:\inetpub\vhosts\btsconsultant.com\httpdocs\BTSConsultant_Resources\vendor\laravel\framework\src\Illuminate\Foundation\Http\Middleware\TransformsRequest.php:21 #17 Illuminate\Foundation\Http\Middleware\TransformsRequest:handle in C:\inetpub\vhosts\btsconsultant.com\httpdocs\BTSConsultant_Resources\vendor\laravel\framework\src\Illuminate\Pipeline\Pipeline.php:163 #16 Illuminate\Pipeline\Pipeline:Illuminate\Pipeline\{closure} in C:\inetpub\vhosts\btsconsultant.com\httpdocs\BTSConsultant_Resources\vendor\laravel\framework\src\Illuminate\Routing\Pipeline.php:53 #15 Illuminate\Routing\Pipeline:Illuminate\Routing\{closure} in C:\inetpub\vhosts\btsconsultant.com\httpdocs\BTSConsultant_Resources\vendor\laravel\framework\src\Illuminate\Foundation\Http\Middleware\TransformsRequest.php:21 #14 Illuminate\Foundation\Http\Middleware\TransformsRequest:handle in C:\inetpub\vhosts\btsconsultant.com\httpdocs\BTSConsultant_Resources\vendor\laravel\framework\src\Illuminate\Pipeline\Pipeline.php:163 #13 Illuminate\Pipeline\Pipeline:Illuminate\Pipeline\{closure} in C:\inetpub\vhosts\btsconsultant.com\httpdocs\BTSConsultant_Resources\vendor\laravel\framework\src\Illuminate\Routing\Pipeline.php:53 #12 Illuminate\Routing\Pipeline:Illuminate\Routing\{closure} in C:\inetpub\vhosts\btsconsultant.com\httpdocs\BTSConsultant_Resources\vendor\laravel\framework\src\Illuminate\Foundation\Http\Middleware\ValidatePostSize.php:27 #11 Illuminate\Foundation\Http\Middleware\ValidatePostSize:handle in C:\inetpub\vhosts\btsconsultant.com\httpdocs\BTSConsultant_Resources\vendor\laravel\framework\src\Illuminate\Pipeline\Pipeline.php:163 #10 Illuminate\Pipeline\Pipeline:Illuminate\Pipeline\{closure} in C:\inetpub\vhosts\btsconsultant.com\httpdocs\BTSConsultant_Resources\vendor\laravel\framework\src\Illuminate\Routing\Pipeline.php:53 #9 Illuminate\Routing\Pipeline:Illuminate\Routing\{closure} in C:\inetpub\vhosts\btsconsultant.com\httpdocs\BTSConsultant_Resources\vendor\laravel\framework\src\Illuminate\Foundation\Http\Middleware\CheckForMaintenanceMode.php:62 #8 Illuminate\Foundation\Http\Middleware\CheckForMaintenanceMode:handle in C:\inetpub\vhosts\btsconsultant.com\httpdocs\BTSConsultant_Resources\vendor\laravel\framework\src\Illuminate\Pipeline\Pipeline.php:163 #7 Illuminate\Pipeline\Pipeline:Illuminate\Pipeline\{closure} in C:\inetpub\vhosts\btsconsultant.com\httpdocs\BTSConsultant_Resources\vendor\laravel\framework\src\Illuminate\Routing\Pipeline.php:53 #6 Illuminate\Routing\Pipeline:Illuminate\Routing\{closure} in C:\inetpub\vhosts\btsconsultant.com\httpdocs\BTSConsultant_Resources\vendor\fideloper\proxy\src\TrustProxies.php:57 #5 Fideloper\Proxy\TrustProxies:handle in C:\inetpub\vhosts\btsconsultant.com\httpdocs\BTSConsultant_Resources\vendor\laravel\framework\src\Illuminate\Pipeline\Pipeline.php:163 #4 Illuminate\Pipeline\Pipeline:Illuminate\Pipeline\{closure} in C:\inetpub\vhosts\btsconsultant.com\httpdocs\BTSConsultant_Resources\vendor\laravel\framework\src\Illuminate\Routing\Pipeline.php:53 #3 Illuminate\Routing\Pipeline:Illuminate\Routing\{closure} in C:\inetpub\vhosts\btsconsultant.com\httpdocs\BTSConsultant_Resources\vendor\laravel\framework\src\Illuminate\Pipeline\Pipeline.php:104 #2 Illuminate\Pipeline\Pipeline:then in C:\inetpub\vhosts\btsconsultant.com\httpdocs\BTSConsultant_Resources\vendor\laravel\framework\src\Illuminate\Foundation\Http\Kernel.php:151 #1 Illuminate\Foundation\Http\Kernel:sendRequestThroughRouter in C:\inetpub\vhosts\btsconsultant.com\httpdocs\BTSConsultant_Resources\vendor\laravel\framework\src\Illuminate\Foundation\Http\Kernel.php:116 #0 Illuminate\Foundation\Http\Kernel:handle in C:\inetpub\vhosts\btsconsultant.com\httpdocs\BTSConsultant\index.php:55
60
Illuminate\Database\QueryException
…\vendor\laravel\framework\src\Illuminate\Database\Connection.php664
59
App\Http\Controllers\Controller __construct
[internal]0
58
Doctrine\DBAL\Driver\PDOException
…\vendor\doctrine\dbal\lib\Doctrine\DBAL\Driver\PDOConnection.php31
57
App\Http\Controllers\Controller __construct
[internal]0
56
PDOException
…\vendor\doctrine\dbal\lib\Doctrine\DBAL\Driver\PDOConnection.php27
55
PDO __construct
…\vendor\doctrine\dbal\lib\Doctrine\DBAL\Driver\PDOConnection.php27
54
Doctrine\DBAL\Driver\PDOConnection __construct
…\vendor\laravel\framework\src\Illuminate\Database\Connectors\Connector.php67
53
Illuminate\Database\Connectors\Connector createPdoConnection
…\vendor\laravel\framework\src\Illuminate\Database\Connectors\Connector.php46
52
Illuminate\Database\Connectors\Connector createConnection
…\vendor\laravel\framework\src\Illuminate\Database\Connectors\MySqlConnector.php24
51
Illuminate\Database\Connectors\MySqlConnector connect
…\vendor\laravel\framework\src\Illuminate\Database\Connectors\ConnectionFactory.php182
50
Illuminate\Database\Connectors\ConnectionFactory Illuminate\Database\Connectors\{closure}
…\vendor\laravel\framework\src\Illuminate\Database\Connection.php919
49
call_user_func
…\vendor\laravel\framework\src\Illuminate\Database\Connection.php919
48
Illuminate\Database\Connection getPdo
…\vendor\laravel\framework\src\Illuminate\Database\Connection.php944
47
Illuminate\Database\Connection getReadPdo
…\vendor\laravel\framework\src\Illuminate\Database\Connection.php399
46
Illuminate\Database\Connection getPdoForSelect
…\vendor\laravel\framework\src\Illuminate\Database\Connection.php325
45
Illuminate\Database\Connection Illuminate\Database\{closure}
…\vendor\laravel\framework\src\Illuminate\Database\Connection.php657
44
Illuminate\Database\Connection runQueryCallback
…\vendor\laravel\framework\src\Illuminate\Database\Connection.php624
43
Illuminate\Database\Connection run
…\vendor\laravel\framework\src\Illuminate\Database\Connection.php333
42
Illuminate\Database\Connection select
…\vendor\laravel\framework\src\Illuminate\Database\Query\Builder.php2130
41
Illuminate\Database\Query\Builder runSelect
…\vendor\laravel\framework\src\Illuminate\Database\Query\Builder.php2118
40
Illuminate\Database\Query\Builder Illuminate\Database\Query\{closure}
…\vendor\laravel\framework\src\Illuminate\Database\Query\Builder.php2604
39
Illuminate\Database\Query\Builder onceWithColumns
…\vendor\laravel\framework\src\Illuminate\Database\Query\Builder.php2119
38
Illuminate\Database\Query\Builder get
…\vendor\laravel\framework\src\Illuminate\Database\Eloquent\Builder.php521
37
Illuminate\Database\Eloquent\Builder getModels
…\vendor\laravel\framework\src\Illuminate\Database\Eloquent\Builder.php505
36
Illuminate\Database\Eloquent\Builder get
…\vendor\laravel\framework\src\Illuminate\Database\Concerns\BuildsQueries.php77
35
Illuminate\Database\Eloquent\Builder first
…\vendor\laravel\framework\src\Illuminate\Database\Eloquent\Builder.php450
34
Illuminate\Database\Eloquent\Builder firstOrFail
…\app\Http\Controllers\Controller.php19
33
App\Http\Controllers\Controller __construct
[internal]0
32
ReflectionClass newInstanceArgs
…\vendor\laravel\framework\src\Illuminate\Container\Container.php825
31
Illuminate\Container\Container build
…\vendor\laravel\framework\src\Illuminate\Container\Container.php667
30
Illuminate\Container\Container resolve
…\vendor\laravel\framework\src\Illuminate\Container\Container.php615
29
Illuminate\Container\Container make
…\vendor\laravel\framework\src\Illuminate\Foundation\Application.php767
28
Illuminate\Foundation\Application make
…\vendor\laravel\framework\src\Illuminate\Routing\Route.php233
27
Illuminate\Routing\Route getController
…\vendor\laravel\framework\src\Illuminate\Routing\Route.php833
26
Illuminate\Routing\Route controllerMiddleware
…\vendor\laravel\framework\src\Illuminate\Routing\Route.php794
25
Illuminate\Routing\Route gatherMiddleware
…\vendor\laravel\framework\src\Illuminate\Routing\Router.php693
24
Illuminate\Routing\Router gatherRouteMiddleware
…\vendor\laravel\framework\src\Illuminate\Routing\Router.php673
23
Illuminate\Routing\Router runRouteWithinStack
…\vendor\laravel\framework\src\Illuminate\Routing\Router.php657
22
Illuminate\Routing\Router runRoute
…\vendor\laravel\framework\src\Illuminate\Routing\Router.php623
21
Illuminate\Routing\Router dispatchToRoute
…\vendor\laravel\framework\src\Illuminate\Routing\Router.php612
20
Illuminate\Routing\Router dispatch
…\vendor\laravel\framework\src\Illuminate\Foundation\Http\Kernel.php176
19
Illuminate\Foundation\Http\Kernel Illuminate\Foundation\Http\{closure}
…\vendor\laravel\framework\src\Illuminate\Routing\Pipeline.php30
18
Illuminate\Routing\Pipeline Illuminate\Routing\{closure}
…\vendor\laravel\framework\src\Illuminate\Foundation\Http\Middleware\TransformsRequest.php21
17
Illuminate\Foundation\Http\Middleware\TransformsRequest handle
…\vendor\laravel\framework\src\Illuminate\Pipeline\Pipeline.php163
16
Illuminate\Pipeline\Pipeline Illuminate\Pipeline\{closure}
…\vendor\laravel\framework\src\Illuminate\Routing\Pipeline.php53
15
Illuminate\Routing\Pipeline Illuminate\Routing\{closure}
…\vendor\laravel\framework\src\Illuminate\Foundation\Http\Middleware\TransformsRequest.php21
14
Illuminate\Foundation\Http\Middleware\TransformsRequest handle
…\vendor\laravel\framework\src\Illuminate\Pipeline\Pipeline.php163
13
Illuminate\Pipeline\Pipeline Illuminate\Pipeline\{closure}
…\vendor\laravel\framework\src\Illuminate\Routing\Pipeline.php53
12
Illuminate\Routing\Pipeline Illuminate\Routing\{closure}
…\vendor\laravel\framework\src\Illuminate\Foundation\Http\Middleware\ValidatePostSize.php27
11
Illuminate\Foundation\Http\Middleware\ValidatePostSize handle
…\vendor\laravel\framework\src\Illuminate\Pipeline\Pipeline.php163
10
Illuminate\Pipeline\Pipeline Illuminate\Pipeline\{closure}
…\vendor\laravel\framework\src\Illuminate\Routing\Pipeline.php53
9
Illuminate\Routing\Pipeline Illuminate\Routing\{closure}
…\vendor\laravel\framework\src\Illuminate\Foundation\Http\Middleware\CheckForMaintenanceMode.php62
8
Illuminate\Foundation\Http\Middleware\CheckForMaintenanceMode handle
…\vendor\laravel\framework\src\Illuminate\Pipeline\Pipeline.php163
7
Illuminate\Pipeline\Pipeline Illuminate\Pipeline\{closure}
…\vendor\laravel\framework\src\Illuminate\Routing\Pipeline.php53
6
Illuminate\Routing\Pipeline Illuminate\Routing\{closure}
…\vendor\fideloper\proxy\src\TrustProxies.php57
5
Fideloper\Proxy\TrustProxies handle
…\vendor\laravel\framework\src\Illuminate\Pipeline\Pipeline.php163
4
Illuminate\Pipeline\Pipeline Illuminate\Pipeline\{closure}
…\vendor\laravel\framework\src\Illuminate\Routing\Pipeline.php53
3
Illuminate\Routing\Pipeline Illuminate\Routing\{closure}
…\vendor\laravel\framework\src\Illuminate\Pipeline\Pipeline.php104
2
Illuminate\Pipeline\Pipeline then
…\vendor\laravel\framework\src\Illuminate\Foundation\Http\Kernel.php151
1
Illuminate\Foundation\Http\Kernel sendRequestThroughRouter
…\vendor\laravel\framework\src\Illuminate\Foundation\Http\Kernel.php116
0
Illuminate\Foundation\Http\Kernel handle
C:\inetpub\vhosts\btsconsultant.com\httpdocs\BTSConsultant\index.php55
C:\inetpub\vhosts\btsconsultant.com\httpdocs\BTSConsultant_Resources\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] No connection could be made because the target machine actively refused it.\r\n
     (SQL: select * from `branches` where `active` = 1 and `hq` = 1 limit 1)
    """
    
[internal]
C:\inetpub\vhosts\btsconsultant.com\httpdocs\BTSConsultant_Resources\vendor\doctrine\dbal\lib\Doctrine\DBAL\Driver\PDOConnection.php
 * Used by all PDO-based drivers.
 */
class PDOConnection extends PDO implements Connection, ServerInfoAwareConnection
{
    /**
     * @param string       $dsn
     * @param string|null  $user
     * @param string|null  $password
     * @param mixed[]|null $options
     *
     * @throws PDOException In case of an error.
     */
    public function __construct($dsn, $user = null, $password = null, ?array $options = null)
    {
        try {
            parent::__construct($dsn, (string) $user, (string) $password, (array) $options);
            $this->setAttribute(PDO::ATTR_STATEMENT_CLASS, [PDOStatement::class, []]);
            $this->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
        } catch (\PDOException $exception) {
            throw new PDOException($exception);
        }
    }
 
    /**
     * {@inheritdoc}
     */
    public function exec($statement)
    {
        try {
            return parent::exec($statement);
        } catch (\PDOException $exception) {
            throw new PDOException($exception);
        }
    }
 
    /**
     * {@inheritdoc}
     */
    public function getServerVersion()
    {
Arguments
  1. "SQLSTATE[HY000] [2002] No connection could be made because the target machine actively refused it.\r\n"
    
Exception message: SQLSTATE[HY000] [2002] No connection could be made because the target machine actively refused it.
[internal]
C:\inetpub\vhosts\btsconsultant.com\httpdocs\BTSConsultant_Resources\vendor\doctrine\dbal\lib\Doctrine\DBAL\Driver\PDOConnection.php
use function func_get_args;
 
/**
 * PDO implementation of the Connection interface.
 * Used by all PDO-based drivers.
 */
class PDOConnection extends PDO implements Connection, ServerInfoAwareConnection
{
    /**
     * @param string       $dsn
     * @param string|null  $user
     * @param string|null  $password
     * @param mixed[]|null $options
     *
     * @throws PDOException In case of an error.
     */
    public function __construct($dsn, $user = null, $password = null, ?array $options = null)
    {
        try {
            parent::__construct($dsn, (string) $user, (string) $password, (array) $options);
            $this->setAttribute(PDO::ATTR_STATEMENT_CLASS, [PDOStatement::class, []]);
            $this->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
        } catch (\PDOException $exception) {
            throw new PDOException($exception);
        }
    }
 
    /**
     * {@inheritdoc}
     */
    public function exec($statement)
    {
        try {
            return parent::exec($statement);
        } catch (\PDOException $exception) {
            throw new PDOException($exception);
        }
    }
 
    /**
Arguments
  1. "SQLSTATE[HY000] [2002] No connection could be made because the target machine actively refused it.\r\n"
    
Exception message: SQLSTATE[HY000] [2002] No connection could be made because the target machine actively refused it.
C:\inetpub\vhosts\btsconsultant.com\httpdocs\BTSConsultant_Resources\vendor\doctrine\dbal\lib\Doctrine\DBAL\Driver\PDOConnection.php
use function func_get_args;
 
/**
 * PDO implementation of the Connection interface.
 * Used by all PDO-based drivers.
 */
class PDOConnection extends PDO implements Connection, ServerInfoAwareConnection
{
    /**
     * @param string       $dsn
     * @param string|null  $user
     * @param string|null  $password
     * @param mixed[]|null $options
     *
     * @throws PDOException In case of an error.
     */
    public function __construct($dsn, $user = null, $password = null, ?array $options = null)
    {
        try {
            parent::__construct($dsn, (string) $user, (string) $password, (array) $options);
            $this->setAttribute(PDO::ATTR_STATEMENT_CLASS, [PDOStatement::class, []]);
            $this->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
        } catch (\PDOException $exception) {
            throw new PDOException($exception);
        }
    }
 
    /**
     * {@inheritdoc}
     */
    public function exec($statement)
    {
        try {
            return parent::exec($statement);
        } catch (\PDOException $exception) {
            throw new PDOException($exception);
        }
    }
 
    /**
C:\inetpub\vhosts\btsconsultant.com\httpdocs\BTSConsultant_Resources\vendor\laravel\framework\src\Illuminate\Database\Connectors\Connector.php
        } 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);
    }
 
    /**
     * 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.
     *
C:\inetpub\vhosts\btsconsultant.com\httpdocs\BTSConsultant_Resources\vendor\laravel\framework\src\Illuminate\Database\Connectors\Connector.php
 
    /**
     * Create a new PDO connection.
     *
     * @param  string  $dsn
     * @param  array   $config
     * @param  array   $options
     * @return \PDO
     *
     * @throws \Exception
     */
    public function createConnection($dsn, array $config, array $options)
    {
        [$username, $password] = [
            $config['username'] ?? null, $config['password'] ?? null,
        ];
 
        try {
            return $this->createPdoConnection(
                $dsn, $username, $password, $options
            );
        } catch (Exception $e) {
            return $this->tryAgainIfCausedByLostConnection(
                $e, $dsn, $username, $password, $options
            );
        }
    }
 
    /**
     * Create a new PDO connection instance.
     *
     * @param  string  $dsn
     * @param  string  $username
     * @param  string  $password
     * @param  array  $options
     * @return \PDO
     */
    protected function createPdoConnection($dsn, $username, $password, $options)
    {
        if (class_exists(PDOConnection::class) && ! $this->isPersistentConnection($options)) {
C:\inetpub\vhosts\btsconsultant.com\httpdocs\BTSConsultant_Resources\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.
     *
C:\inetpub\vhosts\btsconsultant.com\httpdocs\BTSConsultant_Resources\vendor\laravel\framework\src\Illuminate\Database\Connectors\ConnectionFactory.php
    {
        return array_key_exists('host', $config)
                            ? $this->createPdoResolverWithHosts($config)
                            : $this->createPdoResolverWithoutHosts($config);
    }
 
    /**
     * Create a new Closure that resolves to a PDO instance with a specific host or an array of hosts.
     *
     * @param  array  $config
     * @return \Closure
     */
    protected function createPdoResolverWithHosts(array $config)
    {
        return function () use ($config) {
            foreach (Arr::shuffle($hosts = $this->parseHosts($config)) as $key => $host) {
                $config['host'] = $host;
 
                try {
                    return $this->createConnector($config)->connect($config);
                } catch (PDOException $e) {
                    continue;
                }
            }
 
            throw $e;
        };
    }
 
    /**
     * Parse the hosts configuration item into an array.
     *
     * @param  array  $config
     * @return array
     */
    protected function parseHosts(array $config)
    {
        $hosts = Arr::wrap($config['host']);
 
        if (empty($hosts)) {
C:\inetpub\vhosts\btsconsultant.com\httpdocs\BTSConsultant_Resources\vendor\laravel\framework\src\Illuminate\Database\Connection.php
            $this->doctrineConnection = new DoctrineConnection(array_filter([
                'pdo' => $this->getPdo(),
                'dbname' => $this->getConfig('database'),
                'driver' => $driver->getName(),
                'serverVersion' => $this->getConfig('server_version'),
            ]), $driver);
        }
 
        return $this->doctrineConnection;
    }
 
    /**
     * Get the current PDO connection.
     *
     * @return \PDO
     */
    public function getPdo()
    {
        if ($this->pdo instanceof Closure) {
            return $this->pdo = call_user_func($this->pdo);
        }
 
        return $this->pdo;
    }
 
    /**
     * Get the current PDO connection used for reading.
     *
     * @return \PDO
     */
    public function getReadPdo()
    {
        if ($this->transactions > 0) {
            return $this->getPdo();
        }
 
        if ($this->recordsModified && $this->getConfig('sticky')) {
            return $this->getPdo();
        }
 
C:\inetpub\vhosts\btsconsultant.com\httpdocs\BTSConsultant_Resources\vendor\laravel\framework\src\Illuminate\Database\Connection.php
            $this->doctrineConnection = new DoctrineConnection(array_filter([
                'pdo' => $this->getPdo(),
                'dbname' => $this->getConfig('database'),
                'driver' => $driver->getName(),
                'serverVersion' => $this->getConfig('server_version'),
            ]), $driver);
        }
 
        return $this->doctrineConnection;
    }
 
    /**
     * Get the current PDO connection.
     *
     * @return \PDO
     */
    public function getPdo()
    {
        if ($this->pdo instanceof Closure) {
            return $this->pdo = call_user_func($this->pdo);
        }
 
        return $this->pdo;
    }
 
    /**
     * Get the current PDO connection used for reading.
     *
     * @return \PDO
     */
    public function getReadPdo()
    {
        if ($this->transactions > 0) {
            return $this->getPdo();
        }
 
        if ($this->recordsModified && $this->getConfig('sticky')) {
            return $this->getPdo();
        }
 
C:\inetpub\vhosts\btsconsultant.com\httpdocs\BTSConsultant_Resources\vendor\laravel\framework\src\Illuminate\Database\Connection.php
    /**
     * Get the current PDO connection used for reading.
     *
     * @return \PDO
     */
    public function getReadPdo()
    {
        if ($this->transactions > 0) {
            return $this->getPdo();
        }
 
        if ($this->recordsModified && $this->getConfig('sticky')) {
            return $this->getPdo();
        }
 
        if ($this->readPdo instanceof Closure) {
            return $this->readPdo = call_user_func($this->readPdo);
        }
 
        return $this->readPdo ?: $this->getPdo();
    }
 
    /**
     * Set the PDO connection.
     *
     * @param  \PDO|\Closure|null  $pdo
     * @return $this
     */
    public function setPdo($pdo)
    {
        $this->transactions = 0;
 
        $this->pdo = $pdo;
 
        return $this;
    }
 
    /**
     * Set the PDO connection used for reading.
     *
C:\inetpub\vhosts\btsconsultant.com\httpdocs\BTSConsultant_Resources\vendor\laravel\framework\src\Illuminate\Database\Connection.php
    protected function prepared(PDOStatement $statement)
    {
        $statement->setFetchMode($this->fetchMode);
 
        $this->event(new Events\StatementPrepared(
            $this, $statement
        ));
 
        return $statement;
    }
 
    /**
     * Get the PDO connection to use for a select query.
     *
     * @param  bool  $useReadPdo
     * @return \PDO
     */
    protected function getPdoForSelect($useReadPdo = true)
    {
        return $useReadPdo ? $this->getReadPdo() : $this->getPdo();
    }
 
    /**
     * Run an insert statement against the database.
     *
     * @param  string  $query
     * @param  array   $bindings
     * @return bool
     */
    public function insert($query, $bindings = [])
    {
        return $this->statement($query, $bindings);
    }
 
    /**
     * Run an update statement against the database.
     *
     * @param  string  $query
     * @param  array   $bindings
     * @return int
C:\inetpub\vhosts\btsconsultant.com\httpdocs\BTSConsultant_Resources\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)
    {
C:\inetpub\vhosts\btsconsultant.com\httpdocs\BTSConsultant_Resources\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
C:\inetpub\vhosts\btsconsultant.com\httpdocs\BTSConsultant_Resources\vendor\laravel\framework\src\Illuminate\Database\Connection.php
     * Run a SQL statement and log its execution context.
     *
     * @param  string    $query
     * @param  array     $bindings
     * @param  \Closure  $callback
     * @return mixed
     *
     * @throws \Illuminate\Database\QueryException
     */
    protected function run($query, $bindings, Closure $callback)
    {
        $this->reconnectIfMissingConnection();
 
        $start = microtime(true);
 
        // Here we will run this query. If an exception occurs we'll determine if it was
        // caused by a connection that has been lost. If that is the cause, we'll try
        // to re-establish connection and re-run the query with a fresh connection.
        try {
            $result = $this->runQueryCallback($query, $bindings, $callback);
        } catch (QueryException $e) {
            $result = $this->handleQueryException(
                $e, $query, $bindings, $callback
            );
        }
 
        // Once we have run the query we will calculate the time that it took to run and
        // then log the query, bindings, and execution time so we will report them on
        // the event that the developer needs them. We'll log time in milliseconds.
        $this->logQuery(
            $query, $bindings, $this->getElapsedTime($start)
        );
 
        return $result;
    }
 
    /**
     * Run a SQL statement.
     *
     * @param  string    $query
C:\inetpub\vhosts\btsconsultant.com\httpdocs\BTSConsultant_Resources\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.
C:\inetpub\vhosts\btsconsultant.com\httpdocs\BTSConsultant_Resources\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();
 
C:\inetpub\vhosts\btsconsultant.com\httpdocs\BTSConsultant_Resources\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
C:\inetpub\vhosts\btsconsultant.com\httpdocs\BTSConsultant_Resources\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;
        }
C:\inetpub\vhosts\btsconsultant.com\httpdocs\BTSConsultant_Resources\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
C:\inetpub\vhosts\btsconsultant.com\httpdocs\BTSConsultant_Resources\vendor\laravel\framework\src\Illuminate\Database\Eloquent\Builder.php
        // If we actually found models we will also eager load any relationships that
        // have been specified as needing to be eager loaded, which will solve the
        // n+1 query issue for the developers to avoid running a lot of queries.
        if (count($models = $builder->getModels($columns)) > 0) {
            $models = $builder->eagerLoadRelations($models);
        }
 
        return $builder->getModel()->newCollection($models);
    }
 
    /**
     * Get the hydrated models without eager loading.
     *
     * @param  array  $columns
     * @return \Illuminate\Database\Eloquent\Model[]|static[]
     */
    public function getModels($columns = ['*'])
    {
        return $this->model->hydrate(
            $this->query->get($columns)->all()
        )->all();
    }
 
    /**
     * Eager load the relationships for the models.
     *
     * @param  array  $models
     * @return array
     */
    public function eagerLoadRelations(array $models)
    {
        foreach ($this->eagerLoad as $name => $constraints) {
            // For nested eager loads we'll skip loading them here and they will be set as an
            // eager load on the query to retrieve the relation so that they will be eager
            // loaded on that query, because that is where they get hydrated as models.
            if (strpos($name, '.') === false) {
                $models = $this->eagerLoadRelation($models, $name, $constraints);
            }
        }
 
C:\inetpub\vhosts\btsconsultant.com\httpdocs\BTSConsultant_Resources\vendor\laravel\framework\src\Illuminate\Database\Eloquent\Builder.php
    {
        if ($result = $this->first([$column])) {
            return $result->{$column};
        }
    }
 
    /**
     * Execute the query as a "select" statement.
     *
     * @param  array  $columns
     * @return \Illuminate\Database\Eloquent\Collection|static[]
     */
    public function get($columns = ['*'])
    {
        $builder = $this->applyScopes();
 
        // If we actually found models we will also eager load any relationships that
        // have been specified as needing to be eager loaded, which will solve the
        // n+1 query issue for the developers to avoid running a lot of queries.
        if (count($models = $builder->getModels($columns)) > 0) {
            $models = $builder->eagerLoadRelations($models);
        }
 
        return $builder->getModel()->newCollection($models);
    }
 
    /**
     * Get the hydrated models without eager loading.
     *
     * @param  array  $columns
     * @return \Illuminate\Database\Eloquent\Model[]|static[]
     */
    public function getModels($columns = ['*'])
    {
        return $this->model->hydrate(
            $this->query->get($columns)->all()
        )->all();
    }
 
    /**
C:\inetpub\vhosts\btsconsultant.com\httpdocs\BTSConsultant_Resources\vendor\laravel\framework\src\Illuminate\Database\Concerns\BuildsQueries.php
    public function each(callable $callback, $count = 1000)
    {
        return $this->chunk($count, function ($results) use ($callback) {
            foreach ($results as $key => $value) {
                if ($callback($value, $key) === false) {
                    return false;
                }
            }
        });
    }
 
    /**
     * Execute the query and get the first result.
     *
     * @param  array  $columns
     * @return \Illuminate\Database\Eloquent\Model|object|static|null
     */
    public function first($columns = ['*'])
    {
        return $this->take(1)->get($columns)->first();
    }
 
    /**
     * Apply the callback's query changes if the given "value" is true.
     *
     * @param  mixed  $value
     * @param  callable  $callback
     * @param  callable|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;
    }
C:\inetpub\vhosts\btsconsultant.com\httpdocs\BTSConsultant_Resources\vendor\laravel\framework\src\Illuminate\Database\Eloquent\Builder.php
     * @return \Illuminate\Database\Eloquent\Model|static
     */
    public function updateOrCreate(array $attributes, array $values = [])
    {
        return tap($this->firstOrNew($attributes), function ($instance) use ($values) {
            $instance->fill($values)->save();
        });
    }
 
    /**
     * Execute the query and get the first result or throw an exception.
     *
     * @param  array  $columns
     * @return \Illuminate\Database\Eloquent\Model|static
     *
     * @throws \Illuminate\Database\Eloquent\ModelNotFoundException
     */
    public function firstOrFail($columns = ['*'])
    {
        if (! is_null($model = $this->first($columns))) {
            return $model;
        }
 
        throw (new ModelNotFoundException)->setModel(get_class($this->model));
    }
 
    /**
     * Execute the query and get the first result or call a callback.
     *
     * @param  \Closure|array  $columns
     * @param  \Closure|null  $callback
     * @return \Illuminate\Database\Eloquent\Model|static|mixed
     */
    public function firstOr($columns = ['*'], Closure $callback = null)
    {
        if ($columns instanceof Closure) {
            $callback = $columns;
 
            $columns = ['*'];
        }
C:\inetpub\vhosts\btsconsultant.com\httpdocs\BTSConsultant_Resources\app\Http\Controllers\Controller.php
<?php
 
namespace App\Http\Controllers;
 
use Illuminate\Foundation\Bus\DispatchesJobs;
use Illuminate\Routing\Controller as BaseController;
use Illuminate\Foundation\Validation\ValidatesRequests;
use Illuminate\Foundation\Auth\Access\AuthorizesRequests;
 
use View;
use App\Models\CourseCategory;
use App\Models\Branch;
 
class Controller extends BaseController
{
    use AuthorizesRequests, DispatchesJobs, ValidatesRequests;
 
    public function __construct() {
        $branch =Branch::with('country')->with('venue')->where('active', '=',1)->where('hq', '=',1)->firstOrFail();
        $courseCategories =CourseCategory::with('courseSubCategories')->where('id', '!=',4)->where('id', '!=',6)->where('active', '=',1)->get();
        View::share(['courseCategories' => $courseCategories, 'branch' => $branch]);
       
    }
}
 
[internal]
C:\inetpub\vhosts\btsconsultant.com\httpdocs\BTSConsultant_Resources\vendor\laravel\framework\src\Illuminate\Container\Container.php
 
            return new $concrete;
        }
 
        $dependencies = $constructor->getParameters();
 
        // Once we have all the constructor's parameters we can create each of the
        // dependency instances and then use the reflection instances to make a
        // new instance of this class, injecting the created dependencies in.
        try {
            $instances = $this->resolveDependencies($dependencies);
        } catch (BindingResolutionException $e) {
            array_pop($this->buildStack);
 
            throw $e;
        }
 
        array_pop($this->buildStack);
 
        return $reflector->newInstanceArgs($instances);
    }
 
    /**
     * Resolve all of the dependencies from the ReflectionParameters.
     *
     * @param  array  $dependencies
     * @return array
     *
     * @throws \Illuminate\Contracts\Container\BindingResolutionException
     */
    protected function resolveDependencies(array $dependencies)
    {
        $results = [];
 
        foreach ($dependencies as $dependency) {
            // If this dependency has a override for this particular build we will use
            // that instead as the value. Otherwise, we will continue with this run
            // of resolutions and let reflection attempt to determine the result.
            if ($this->hasParameterOverride($dependency)) {
                $results[] = $this->getParameterOverride($dependency);
C:\inetpub\vhosts\btsconsultant.com\httpdocs\BTSConsultant_Resources\vendor\laravel\framework\src\Illuminate\Container\Container.php
        $needsContextualBuild = ! empty($parameters) || ! is_null(
            $this->getContextualConcrete($abstract)
        );
 
        // If an instance of the type is currently being managed as a singleton we'll
        // just return an existing instance instead of instantiating new instances
        // so the developer can keep using the same objects instance every time.
        if (isset($this->instances[$abstract]) && ! $needsContextualBuild) {
            return $this->instances[$abstract];
        }
 
        $this->with[] = $parameters;
 
        $concrete = $this->getConcrete($abstract);
 
        // We're ready to instantiate an instance of the concrete type registered for
        // the binding. This will instantiate the types, as well as resolve any of
        // its "nested" dependencies recursively until all have gotten resolved.
        if ($this->isBuildable($concrete, $abstract)) {
            $object = $this->build($concrete);
        } else {
            $object = $this->make($concrete);
        }
 
        // If we defined any extenders for this type, we'll need to spin through them
        // and apply them to the object being built. This allows for the extension
        // of services, such as changing configuration or decorating the object.
        foreach ($this->getExtenders($abstract) as $extender) {
            $object = $extender($object, $this);
        }
 
        // If the requested type is registered as a singleton we'll want to cache off
        // the instances in "memory" so we can return it later without creating an
        // entirely new instance of an object on each subsequent request for it.
        if ($this->isShared($abstract) && ! $needsContextualBuild) {
            $this->instances[$abstract] = $object;
        }
 
        if ($raiseEvents) {
            $this->fireResolvingCallbacks($abstract, $object);
C:\inetpub\vhosts\btsconsultant.com\httpdocs\BTSConsultant_Resources\vendor\laravel\framework\src\Illuminate\Container\Container.php
     * @param  array  $parameters
     * @return mixed
     */
    public function makeWith($abstract, array $parameters = [])
    {
        return $this->make($abstract, $parameters);
    }
 
    /**
     * Resolve the given type from the container.
     *
     * @param  string  $abstract
     * @param  array  $parameters
     * @return mixed
     *
     * @throws \Illuminate\Contracts\Container\BindingResolutionException
     */
    public function make($abstract, array $parameters = [])
    {
        return $this->resolve($abstract, $parameters);
    }
 
    /**
     *  {@inheritdoc}
     */
    public function get($id)
    {
        try {
            return $this->resolve($id);
        } catch (Exception $e) {
            if ($this->has($id)) {
                throw $e;
            }
 
            throw new EntryNotFoundException($id);
        }
    }
 
    /**
     * Resolve the given type from the container.
C:\inetpub\vhosts\btsconsultant.com\httpdocs\BTSConsultant_Resources\vendor\laravel\framework\src\Illuminate\Foundation\Application.php
    }
 
    /**
     * Resolve the given type from the container.
     *
     * (Overriding Container::make)
     *
     * @param  string  $abstract
     * @param  array  $parameters
     * @return mixed
     */
    public function make($abstract, array $parameters = [])
    {
        $abstract = $this->getAlias($abstract);
 
        if ($this->isDeferredService($abstract) && ! isset($this->instances[$abstract])) {
            $this->loadDeferredProvider($abstract);
        }
 
        return parent::make($abstract, $parameters);
    }
 
    /**
     * Determine if the given abstract type has been bound.
     *
     * (Overriding Container::bound)
     *
     * @param  string  $abstract
     * @return bool
     */
    public function bound($abstract)
    {
        return $this->isDeferredService($abstract) || parent::bound($abstract);
    }
 
    /**
     * Determine if the application has booted.
     *
     * @return bool
     */
C:\inetpub\vhosts\btsconsultant.com\httpdocs\BTSConsultant_Resources\vendor\laravel\framework\src\Illuminate\Routing\Route.php
     * @throws \Symfony\Component\HttpKernel\Exception\NotFoundHttpException
     */
    protected function runController()
    {
        return $this->controllerDispatcher()->dispatch(
            $this, $this->getController(), $this->getControllerMethod()
        );
    }
 
    /**
     * Get the controller instance for the route.
     *
     * @return mixed
     */
    public function getController()
    {
        if (! $this->controller) {
            $class = $this->parseControllerCallback()[0];
 
            $this->controller = $this->container->make(ltrim($class, '\\'));
        }
 
        return $this->controller;
    }
 
    /**
     * Get the controller method used for the route.
     *
     * @return string
     */
    protected function getControllerMethod()
    {
        return $this->parseControllerCallback()[1];
    }
 
    /**
     * Parse the controller.
     *
     * @return array
     */
C:\inetpub\vhosts\btsconsultant.com\httpdocs\BTSConsultant_Resources\vendor\laravel\framework\src\Illuminate\Routing\Route.php
        $this->action['middleware'] = array_merge(
            (array) ($this->action['middleware'] ?? []), $middleware
        );
 
        return $this;
    }
 
    /**
     * Get the middleware for the route's controller.
     *
     * @return array
     */
    public function controllerMiddleware()
    {
        if (! $this->isControllerAction()) {
            return [];
        }
 
        return $this->controllerDispatcher()->getMiddleware(
            $this->getController(), $this->getControllerMethod()
        );
    }
 
    /**
     * Get the dispatcher for the route's controller.
     *
     * @return \Illuminate\Routing\Contracts\ControllerDispatcher
     */
    public function controllerDispatcher()
    {
        if ($this->container->bound(ControllerDispatcherContract::class)) {
            return $this->container->make(ControllerDispatcherContract::class);
        }
 
        return new ControllerDispatcher($this->container);
    }
 
    /**
     * Get the route validators for the instance.
     *
C:\inetpub\vhosts\btsconsultant.com\httpdocs\BTSConsultant_Resources\vendor\laravel\framework\src\Illuminate\Routing\Route.php
        $this->action = $action;
 
        return $this;
    }
 
    /**
     * Get all middleware, including the ones from the controller.
     *
     * @return array
     */
    public function gatherMiddleware()
    {
        if (! is_null($this->computedMiddleware)) {
            return $this->computedMiddleware;
        }
 
        $this->computedMiddleware = [];
 
        return $this->computedMiddleware = array_unique(array_merge(
            $this->middleware(), $this->controllerMiddleware()
        ), SORT_REGULAR);
    }
 
    /**
     * Get or set the middlewares attached to the route.
     *
     * @param  array|string|null $middleware
     * @return $this|array
     */
    public function middleware($middleware = null)
    {
        if (is_null($middleware)) {
            return (array) ($this->action['middleware'] ?? []);
        }
 
        if (is_string($middleware)) {
            $middleware = func_get_args();
        }
 
        $this->action['middleware'] = array_merge(
C:\inetpub\vhosts\btsconsultant.com\httpdocs\BTSConsultant_Resources\vendor\laravel\framework\src\Illuminate\Routing\Router.php
 
        return (new Pipeline($this->container))
                        ->send($request)
                        ->through($middleware)
                        ->then(function ($request) use ($route) {
                            return $this->prepareResponse(
                                $request, $route->run()
                            );
                        });
    }
 
    /**
     * Gather the middleware for the given route with resolved class names.
     *
     * @param  \Illuminate\Routing\Route  $route
     * @return array
     */
    public function gatherRouteMiddleware(Route $route)
    {
        $middleware = collect($route->gatherMiddleware())->map(function ($name) {
            return (array) MiddlewareNameResolver::resolve($name, $this->middleware, $this->middlewareGroups);
        })->flatten();
 
        return $this->sortMiddleware($middleware);
    }
 
    /**
     * Sort the given middleware by priority.
     *
     * @param  \Illuminate\Support\Collection  $middlewares
     * @return array
     */
    protected function sortMiddleware(Collection $middlewares)
    {
        return (new SortedMiddleware($this->middlewarePriority, $middlewares))->all();
    }
 
    /**
     * Create a response instance from the given value.
     *
C:\inetpub\vhosts\btsconsultant.com\httpdocs\BTSConsultant_Resources\vendor\laravel\framework\src\Illuminate\Routing\Router.php
        $this->events->dispatch(new Events\RouteMatched($route, $request));
 
        return $this->prepareResponse($request,
            $this->runRouteWithinStack($route, $request)
        );
    }
 
    /**
     * Run the given route within a Stack "onion" instance.
     *
     * @param  \Illuminate\Routing\Route  $route
     * @param  \Illuminate\Http\Request  $request
     * @return mixed
     */
    protected function runRouteWithinStack(Route $route, Request $request)
    {
        $shouldSkipMiddleware = $this->container->bound('middleware.disable') &&
                                $this->container->make('middleware.disable') === true;
 
        $middleware = $shouldSkipMiddleware ? [] : $this->gatherRouteMiddleware($route);
 
        return (new Pipeline($this->container))
                        ->send($request)
                        ->through($middleware)
                        ->then(function ($request) use ($route) {
                            return $this->prepareResponse(
                                $request, $route->run()
                            );
                        });
    }
 
    /**
     * Gather the middleware for the given route with resolved class names.
     *
     * @param  \Illuminate\Routing\Route  $route
     * @return array
     */
    public function gatherRouteMiddleware(Route $route)
    {
        $middleware = collect($route->gatherMiddleware())->map(function ($name) {
C:\inetpub\vhosts\btsconsultant.com\httpdocs\BTSConsultant_Resources\vendor\laravel\framework\src\Illuminate\Routing\Router.php
        return $route;
    }
 
    /**
     * Return the response for the given route.
     *
     * @param  \Illuminate\Http\Request  $request
     * @param  \Illuminate\Routing\Route  $route
     * @return \Illuminate\Http\Response|\Illuminate\Http\JsonResponse
     */
    protected function runRoute(Request $request, Route $route)
    {
        $request->setRouteResolver(function () use ($route) {
            return $route;
        });
 
        $this->events->dispatch(new Events\RouteMatched($route, $request));
 
        return $this->prepareResponse($request,
            $this->runRouteWithinStack($route, $request)
        );
    }
 
    /**
     * Run the given route within a Stack "onion" instance.
     *
     * @param  \Illuminate\Routing\Route  $route
     * @param  \Illuminate\Http\Request  $request
     * @return mixed
     */
    protected function runRouteWithinStack(Route $route, Request $request)
    {
        $shouldSkipMiddleware = $this->container->bound('middleware.disable') &&
                                $this->container->make('middleware.disable') === true;
 
        $middleware = $shouldSkipMiddleware ? [] : $this->gatherRouteMiddleware($route);
 
        return (new Pipeline($this->container))
                        ->send($request)
                        ->through($middleware)
C:\inetpub\vhosts\btsconsultant.com\httpdocs\BTSConsultant_Resources\vendor\laravel\framework\src\Illuminate\Routing\Router.php
     *
     * @param  \Illuminate\Http\Request  $request
     * @return \Illuminate\Http\Response|\Illuminate\Http\JsonResponse
     */
    public function dispatch(Request $request)
    {
        $this->currentRequest = $request;
 
        return $this->dispatchToRoute($request);
    }
 
    /**
     * Dispatch the request to a route and return the response.
     *
     * @param  \Illuminate\Http\Request  $request
     * @return \Illuminate\Http\Response|\Illuminate\Http\JsonResponse
     */
    public function dispatchToRoute(Request $request)
    {
        return $this->runRoute($request, $this->findRoute($request));
    }
 
    /**
     * Find the route matching a given request.
     *
     * @param  \Illuminate\Http\Request  $request
     * @return \Illuminate\Routing\Route
     */
    protected function findRoute($request)
    {
        $this->current = $route = $this->routes->match($request);
 
        $this->container->instance(Route::class, $route);
 
        return $route;
    }
 
    /**
     * Return the response for the given route.
     *
C:\inetpub\vhosts\btsconsultant.com\httpdocs\BTSConsultant_Resources\vendor\laravel\framework\src\Illuminate\Routing\Router.php
     * @return \Illuminate\Http\Response|\Illuminate\Http\JsonResponse
     */
    public function respondWithRoute($name)
    {
        $route = tap($this->routes->getByName($name))->bind($this->currentRequest);
 
        return $this->runRoute($this->currentRequest, $route);
    }
 
    /**
     * Dispatch the request to the application.
     *
     * @param  \Illuminate\Http\Request  $request
     * @return \Illuminate\Http\Response|\Illuminate\Http\JsonResponse
     */
    public function dispatch(Request $request)
    {
        $this->currentRequest = $request;
 
        return $this->dispatchToRoute($request);
    }
 
    /**
     * Dispatch the request to a route and return the response.
     *
     * @param  \Illuminate\Http\Request  $request
     * @return \Illuminate\Http\Response|\Illuminate\Http\JsonResponse
     */
    public function dispatchToRoute(Request $request)
    {
        return $this->runRoute($request, $this->findRoute($request));
    }
 
    /**
     * Find the route matching a given request.
     *
     * @param  \Illuminate\Http\Request  $request
     * @return \Illuminate\Routing\Route
     */
    protected function findRoute($request)
C:\inetpub\vhosts\btsconsultant.com\httpdocs\BTSConsultant_Resources\vendor\laravel\framework\src\Illuminate\Foundation\Http\Kernel.php
     * @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.
     *
     * @param  \Illuminate\Http\Request  $request
     * @param  \Illuminate\Http\Response  $response
     * @return void
     */
    public function terminate($request, $response)
    {
        $this->terminateMiddleware($request, $response);
 
        $this->app->terminate();
    }
 
    /**
     * Call the terminate method on any terminable middleware.
     *
C:\inetpub\vhosts\btsconsultant.com\httpdocs\BTSConsultant_Resources\vendor\laravel\framework\src\Illuminate\Routing\Pipeline.php
use Symfony\Component\Debug\Exception\FatalThrowableError;
 
/**
 * This extended pipeline catches any exceptions that occur during each slice.
 *
 * The exceptions are converted to HTTP responses for proper middleware handling.
 */
class Pipeline extends BasePipeline
{
    /**
     * Get the final piece of the Closure onion.
     *
     * @param  \Closure  $destination
     * @return \Closure
     */
    protected function prepareDestination(Closure $destination)
    {
        return function ($passable) use ($destination) {
            try {
                return $destination($passable);
            } catch (Exception $e) {
                return $this->handleException($passable, $e);
            } catch (Throwable $e) {
                return $this->handleException($passable, new FatalThrowableError($e));
            }
        };
    }
 
    /**
     * Get a Closure that represents a slice of the application onion.
     *
     * @return \Closure
     */
    protected function carry()
    {
        return function ($stack, $pipe) {
            return function ($passable) use ($stack, $pipe) {
                try {
                    $slice = parent::carry();
 
C:\inetpub\vhosts\btsconsultant.com\httpdocs\BTSConsultant_Resources\vendor\laravel\framework\src\Illuminate\Foundation\Http\Middleware\TransformsRequest.php
 
namespace Illuminate\Foundation\Http\Middleware;
 
use Closure;
use Symfony\Component\HttpFoundation\ParameterBag;
 
class TransformsRequest
{
    /**
     * Handle an incoming request.
     *
     * @param  \Illuminate\Http\Request  $request
     * @param  \Closure  $next
     * @return mixed
     */
    public function handle($request, Closure $next)
    {
        $this->clean($request);
 
        return $next($request);
    }
 
    /**
     * Clean the request's data.
     *
     * @param  \Illuminate\Http\Request  $request
     * @return void
     */
    protected function clean($request)
    {
        $this->cleanParameterBag($request->query);
 
        if ($request->isJson()) {
            $this->cleanParameterBag($request->json());
        } elseif ($request->request !== $request->query) {
            $this->cleanParameterBag($request->request);
        }
    }
 
    /**
C:\inetpub\vhosts\btsconsultant.com\httpdocs\BTSConsultant_Resources\vendor\laravel\framework\src\Illuminate\Pipeline\Pipeline.php
                    // the appropriate method and arguments, returning the results back out.
                    return $pipe($passable, $stack);
                } elseif (! is_object($pipe)) {
                    [$name, $parameters] = $this->parsePipeString($pipe);
 
                    // If the pipe is a string we will parse the string and resolve the class out
                    // of the dependency injection container. We can then build a callable and
                    // execute the pipe function giving in the parameters that are required.
                    $pipe = $this->getContainer()->make($name);
 
                    $parameters = array_merge([$passable, $stack], $parameters);
                } else {
                    // If the pipe is already an object we'll just make a callable and pass it to
                    // the pipe as-is. There is no need to do any extra parsing and formatting
                    // since the object we're given was already a fully instantiated object.
                    $parameters = [$passable, $stack];
                }
 
                $response = method_exists($pipe, $this->method)
                                ? $pipe->{$this->method}(...$parameters)
                                : $pipe(...$parameters);
 
                return $response instanceof Responsable
                            ? $response->toResponse($this->getContainer()->make(Request::class))
                            : $response;
            };
        };
    }
 
    /**
     * Parse full pipe string to get name and parameters.
     *
     * @param  string $pipe
     * @return array
     */
    protected function parsePipeString($pipe)
    {
        [$name, $parameters] = array_pad(explode(':', $pipe, 2), 2, []);
 
        if (is_string($parameters)) {
C:\inetpub\vhosts\btsconsultant.com\httpdocs\BTSConsultant_Resources\vendor\laravel\framework\src\Illuminate\Routing\Pipeline.php
                return $this->handleException($passable, new FatalThrowableError($e));
            }
        };
    }
 
    /**
     * Get a Closure that represents a slice of the application onion.
     *
     * @return \Closure
     */
    protected function carry()
    {
        return function ($stack, $pipe) {
            return function ($passable) use ($stack, $pipe) {
                try {
                    $slice = parent::carry();
 
                    $callable = $slice($stack, $pipe);
 
                    return $callable($passable);
                } catch (Exception $e) {
                    return $this->handleException($passable, $e);
                } catch (Throwable $e) {
                    return $this->handleException($passable, new FatalThrowableError($e));
                }
            };
        };
    }
 
    /**
     * Handle the given exception.
     *
     * @param  mixed  $passable
     * @param  \Exception  $e
     * @return mixed
     *
     * @throws \Exception
     */
    protected function handleException($passable, Exception $e)
    {
C:\inetpub\vhosts\btsconsultant.com\httpdocs\BTSConsultant_Resources\vendor\laravel\framework\src\Illuminate\Foundation\Http\Middleware\TransformsRequest.php
 
namespace Illuminate\Foundation\Http\Middleware;
 
use Closure;
use Symfony\Component\HttpFoundation\ParameterBag;
 
class TransformsRequest
{
    /**
     * Handle an incoming request.
     *
     * @param  \Illuminate\Http\Request  $request
     * @param  \Closure  $next
     * @return mixed
     */
    public function handle($request, Closure $next)
    {
        $this->clean($request);
 
        return $next($request);
    }
 
    /**
     * Clean the request's data.
     *
     * @param  \Illuminate\Http\Request  $request
     * @return void
     */
    protected function clean($request)
    {
        $this->cleanParameterBag($request->query);
 
        if ($request->isJson()) {
            $this->cleanParameterBag($request->json());
        } elseif ($request->request !== $request->query) {
            $this->cleanParameterBag($request->request);
        }
    }
 
    /**
C:\inetpub\vhosts\btsconsultant.com\httpdocs\BTSConsultant_Resources\vendor\laravel\framework\src\Illuminate\Pipeline\Pipeline.php
                    // the appropriate method and arguments, returning the results back out.
                    return $pipe($passable, $stack);
                } elseif (! is_object($pipe)) {
                    [$name, $parameters] = $this->parsePipeString($pipe);
 
                    // If the pipe is a string we will parse the string and resolve the class out
                    // of the dependency injection container. We can then build a callable and
                    // execute the pipe function giving in the parameters that are required.
                    $pipe = $this->getContainer()->make($name);
 
                    $parameters = array_merge([$passable, $stack], $parameters);
                } else {
                    // If the pipe is already an object we'll just make a callable and pass it to
                    // the pipe as-is. There is no need to do any extra parsing and formatting
                    // since the object we're given was already a fully instantiated object.
                    $parameters = [$passable, $stack];
                }
 
                $response = method_exists($pipe, $this->method)
                                ? $pipe->{$this->method}(...$parameters)
                                : $pipe(...$parameters);
 
                return $response instanceof Responsable
                            ? $response->toResponse($this->getContainer()->make(Request::class))
                            : $response;
            };
        };
    }
 
    /**
     * Parse full pipe string to get name and parameters.
     *
     * @param  string $pipe
     * @return array
     */
    protected function parsePipeString($pipe)
    {
        [$name, $parameters] = array_pad(explode(':', $pipe, 2), 2, []);
 
        if (is_string($parameters)) {
C:\inetpub\vhosts\btsconsultant.com\httpdocs\BTSConsultant_Resources\vendor\laravel\framework\src\Illuminate\Routing\Pipeline.php
                return $this->handleException($passable, new FatalThrowableError($e));
            }
        };
    }
 
    /**
     * Get a Closure that represents a slice of the application onion.
     *
     * @return \Closure
     */
    protected function carry()
    {
        return function ($stack, $pipe) {
            return function ($passable) use ($stack, $pipe) {
                try {
                    $slice = parent::carry();
 
                    $callable = $slice($stack, $pipe);
 
                    return $callable($passable);
                } catch (Exception $e) {
                    return $this->handleException($passable, $e);
                } catch (Throwable $e) {
                    return $this->handleException($passable, new FatalThrowableError($e));
                }
            };
        };
    }
 
    /**
     * Handle the given exception.
     *
     * @param  mixed  $passable
     * @param  \Exception  $e
     * @return mixed
     *
     * @throws \Exception
     */
    protected function handleException($passable, Exception $e)
    {
C:\inetpub\vhosts\btsconsultant.com\httpdocs\BTSConsultant_Resources\vendor\laravel\framework\src\Illuminate\Foundation\Http\Middleware\ValidatePostSize.php
class ValidatePostSize
{
    /**
     * Handle an incoming request.
     *
     * @param  \Illuminate\Http\Request  $request
     * @param  \Closure  $next
     * @return mixed
     *
     * @throws \Illuminate\Http\Exceptions\PostTooLargeException
     */
    public function handle($request, Closure $next)
    {
        $max = $this->getPostMaxSize();
 
        if ($max > 0 && $request->server('CONTENT_LENGTH') > $max) {
            throw new PostTooLargeException;
        }
 
        return $next($request);
    }
 
    /**
     * Determine the server 'post_max_size' as bytes.
     *
     * @return int
     */
    protected function getPostMaxSize()
    {
        if (is_numeric($postMaxSize = ini_get('post_max_size'))) {
            return (int) $postMaxSize;
        }
 
        $metric = strtoupper(substr($postMaxSize, -1));
        $postMaxSize = (int) $postMaxSize;
 
        switch ($metric) {
            case 'K':
                return $postMaxSize * 1024;
            case 'M':
C:\inetpub\vhosts\btsconsultant.com\httpdocs\BTSConsultant_Resources\vendor\laravel\framework\src\Illuminate\Pipeline\Pipeline.php
                    // the appropriate method and arguments, returning the results back out.
                    return $pipe($passable, $stack);
                } elseif (! is_object($pipe)) {
                    [$name, $parameters] = $this->parsePipeString($pipe);
 
                    // If the pipe is a string we will parse the string and resolve the class out
                    // of the dependency injection container. We can then build a callable and
                    // execute the pipe function giving in the parameters that are required.
                    $pipe = $this->getContainer()->make($name);
 
                    $parameters = array_merge([$passable, $stack], $parameters);
                } else {
                    // If the pipe is already an object we'll just make a callable and pass it to
                    // the pipe as-is. There is no need to do any extra parsing and formatting
                    // since the object we're given was already a fully instantiated object.
                    $parameters = [$passable, $stack];
                }
 
                $response = method_exists($pipe, $this->method)
                                ? $pipe->{$this->method}(...$parameters)
                                : $pipe(...$parameters);
 
                return $response instanceof Responsable
                            ? $response->toResponse($this->getContainer()->make(Request::class))
                            : $response;
            };
        };
    }
 
    /**
     * Parse full pipe string to get name and parameters.
     *
     * @param  string $pipe
     * @return array
     */
    protected function parsePipeString($pipe)
    {
        [$name, $parameters] = array_pad(explode(':', $pipe, 2), 2, []);
 
        if (is_string($parameters)) {
C:\inetpub\vhosts\btsconsultant.com\httpdocs\BTSConsultant_Resources\vendor\laravel\framework\src\Illuminate\Routing\Pipeline.php
                return $this->handleException($passable, new FatalThrowableError($e));
            }
        };
    }
 
    /**
     * Get a Closure that represents a slice of the application onion.
     *
     * @return \Closure
     */
    protected function carry()
    {
        return function ($stack, $pipe) {
            return function ($passable) use ($stack, $pipe) {
                try {
                    $slice = parent::carry();
 
                    $callable = $slice($stack, $pipe);
 
                    return $callable($passable);
                } catch (Exception $e) {
                    return $this->handleException($passable, $e);
                } catch (Throwable $e) {
                    return $this->handleException($passable, new FatalThrowableError($e));
                }
            };
        };
    }
 
    /**
     * Handle the given exception.
     *
     * @param  mixed  $passable
     * @param  \Exception  $e
     * @return mixed
     *
     * @throws \Exception
     */
    protected function handleException($passable, Exception $e)
    {
C:\inetpub\vhosts\btsconsultant.com\httpdocs\BTSConsultant_Resources\vendor\laravel\framework\src\Illuminate\Foundation\Http\Middleware\CheckForMaintenanceMode.php
     *
     * @throws \Symfony\Component\HttpKernel\Exception\HttpException
     */
    public function handle($request, Closure $next)
    {
        if ($this->app->isDownForMaintenance()) {
            $data = json_decode(file_get_contents($this->app->storagePath().'/framework/down'), true);
 
            if (isset($data['allowed']) && IpUtils::checkIp($request->ip(), (array) $data['allowed'])) {
                return $next($request);
            }
 
            if ($this->inExceptArray($request)) {
                return $next($request);
            }
 
            throw new MaintenanceModeException($data['time'], $data['retry'], $data['message']);
        }
 
        return $next($request);
    }
 
    /**
     * Determine if the request has a URI that should be accessible in maintenance mode.
     *
     * @param  \Illuminate\Http\Request  $request
     * @return bool
     */
    protected function inExceptArray($request)
    {
        foreach ($this->except as $except) {
            if ($except !== '/') {
                $except = trim($except, '/');
            }
 
            if ($request->fullUrlIs($except) || $request->is($except)) {
                return true;
            }
        }
 
C:\inetpub\vhosts\btsconsultant.com\httpdocs\BTSConsultant_Resources\vendor\laravel\framework\src\Illuminate\Pipeline\Pipeline.php
                    // the appropriate method and arguments, returning the results back out.
                    return $pipe($passable, $stack);
                } elseif (! is_object($pipe)) {
                    [$name, $parameters] = $this->parsePipeString($pipe);
 
                    // If the pipe is a string we will parse the string and resolve the class out
                    // of the dependency injection container. We can then build a callable and
                    // execute the pipe function giving in the parameters that are required.
                    $pipe = $this->getContainer()->make($name);
 
                    $parameters = array_merge([$passable, $stack], $parameters);
                } else {
                    // If the pipe is already an object we'll just make a callable and pass it to
                    // the pipe as-is. There is no need to do any extra parsing and formatting
                    // since the object we're given was already a fully instantiated object.
                    $parameters = [$passable, $stack];
                }
 
                $response = method_exists($pipe, $this->method)
                                ? $pipe->{$this->method}(...$parameters)
                                : $pipe(...$parameters);
 
                return $response instanceof Responsable
                            ? $response->toResponse($this->getContainer()->make(Request::class))
                            : $response;
            };
        };
    }
 
    /**
     * Parse full pipe string to get name and parameters.
     *
     * @param  string $pipe
     * @return array
     */
    protected function parsePipeString($pipe)
    {
        [$name, $parameters] = array_pad(explode(':', $pipe, 2), 2, []);
 
        if (is_string($parameters)) {
C:\inetpub\vhosts\btsconsultant.com\httpdocs\BTSConsultant_Resources\vendor\laravel\framework\src\Illuminate\Routing\Pipeline.php
                return $this->handleException($passable, new FatalThrowableError($e));
            }
        };
    }
 
    /**
     * Get a Closure that represents a slice of the application onion.
     *
     * @return \Closure
     */
    protected function carry()
    {
        return function ($stack, $pipe) {
            return function ($passable) use ($stack, $pipe) {
                try {
                    $slice = parent::carry();
 
                    $callable = $slice($stack, $pipe);
 
                    return $callable($passable);
                } catch (Exception $e) {
                    return $this->handleException($passable, $e);
                } catch (Throwable $e) {
                    return $this->handleException($passable, new FatalThrowableError($e));
                }
            };
        };
    }
 
    /**
     * Handle the given exception.
     *
     * @param  mixed  $passable
     * @param  \Exception  $e
     * @return mixed
     *
     * @throws \Exception
     */
    protected function handleException($passable, Exception $e)
    {
C:\inetpub\vhosts\btsconsultant.com\httpdocs\BTSConsultant_Resources\vendor\fideloper\proxy\src\TrustProxies.php
    {
        $this->config = $config;
    }
 
    /**
     * Handle an incoming request.
     *
     * @param \Illuminate\Http\Request $request
     * @param \Closure                 $next
     *
     * @throws \Symfony\Component\HttpKernel\Exception\HttpException
     *
     * @return mixed
     */
    public function handle(Request $request, Closure $next)
    {
        $request::setTrustedProxies([], $this->getTrustedHeaderNames()); // Reset trusted proxies between requests
        $this->setTrustedProxyIpAddresses($request);
 
        return $next($request);
    }
 
    /**
     * Sets the trusted proxies on the request to the value of trustedproxy.proxies
     *
     * @param \Illuminate\Http\Request $request
     */
    protected function setTrustedProxyIpAddresses(Request $request)
    {
        $trustedIps = $this->proxies ?: $this->config->get('trustedproxy.proxies');
 
        // Trust any IP address that calls us
        // `**` for backwards compatibility, but is deprecated
        if ($trustedIps === '*' || $trustedIps === '**') {
            return $this->setTrustedProxyIpAddressesToTheCallingIp($request);
        }
 
        // Support IPs addresses separated by comma
        $trustedIps = is_string($trustedIps) ? array_map('trim', explode(',', $trustedIps)) : $trustedIps;
 
C:\inetpub\vhosts\btsconsultant.com\httpdocs\BTSConsultant_Resources\vendor\laravel\framework\src\Illuminate\Pipeline\Pipeline.php
                    // the appropriate method and arguments, returning the results back out.
                    return $pipe($passable, $stack);
                } elseif (! is_object($pipe)) {
                    [$name, $parameters] = $this->parsePipeString($pipe);
 
                    // If the pipe is a string we will parse the string and resolve the class out
                    // of the dependency injection container. We can then build a callable and
                    // execute the pipe function giving in the parameters that are required.
                    $pipe = $this->getContainer()->make($name);
 
                    $parameters = array_merge([$passable, $stack], $parameters);
                } else {
                    // If the pipe is already an object we'll just make a callable and pass it to
                    // the pipe as-is. There is no need to do any extra parsing and formatting
                    // since the object we're given was already a fully instantiated object.
                    $parameters = [$passable, $stack];
                }
 
                $response = method_exists($pipe, $this->method)
                                ? $pipe->{$this->method}(...$parameters)
                                : $pipe(...$parameters);
 
                return $response instanceof Responsable
                            ? $response->toResponse($this->getContainer()->make(Request::class))
                            : $response;
            };
        };
    }
 
    /**
     * Parse full pipe string to get name and parameters.
     *
     * @param  string $pipe
     * @return array
     */
    protected function parsePipeString($pipe)
    {
        [$name, $parameters] = array_pad(explode(':', $pipe, 2), 2, []);
 
        if (is_string($parameters)) {
C:\inetpub\vhosts\btsconsultant.com\httpdocs\BTSConsultant_Resources\vendor\laravel\framework\src\Illuminate\Routing\Pipeline.php
                return $this->handleException($passable, new FatalThrowableError($e));
            }
        };
    }
 
    /**
     * Get a Closure that represents a slice of the application onion.
     *
     * @return \Closure
     */
    protected function carry()
    {
        return function ($stack, $pipe) {
            return function ($passable) use ($stack, $pipe) {
                try {
                    $slice = parent::carry();
 
                    $callable = $slice($stack, $pipe);
 
                    return $callable($passable);
                } catch (Exception $e) {
                    return $this->handleException($passable, $e);
                } catch (Throwable $e) {
                    return $this->handleException($passable, new FatalThrowableError($e));
                }
            };
        };
    }
 
    /**
     * Handle the given exception.
     *
     * @param  mixed  $passable
     * @param  \Exception  $e
     * @return mixed
     *
     * @throws \Exception
     */
    protected function handleException($passable, Exception $e)
    {
C:\inetpub\vhosts\btsconsultant.com\httpdocs\BTSConsultant_Resources\vendor\laravel\framework\src\Illuminate\Pipeline\Pipeline.php
    public function via($method)
    {
        $this->method = $method;
 
        return $this;
    }
 
    /**
     * Run the pipeline with a final destination callback.
     *
     * @param  \Closure  $destination
     * @return mixed
     */
    public function then(Closure $destination)
    {
        $pipeline = array_reduce(
            array_reverse($this->pipes), $this->carry(), $this->prepareDestination($destination)
        );
 
        return $pipeline($this->passable);
    }
 
    /**
     * Run the pipeline and return the result.
     *
     * @return mixed
     */
    public function thenReturn()
    {
        return $this->then(function ($passable) {
            return $passable;
        });
    }
 
    /**
     * Get the final piece of the Closure onion.
     *
     * @param  \Closure  $destination
     * @return \Closure
     */
C:\inetpub\vhosts\btsconsultant.com\httpdocs\BTSConsultant_Resources\vendor\laravel\framework\src\Illuminate\Foundation\Http\Kernel.php
    }
 
    /**
     * Send the given request through the middleware / router.
     *
     * @param  \Illuminate\Http\Request  $request
     * @return \Illuminate\Http\Response
     */
    protected function sendRequestThroughRouter($request)
    {
        $this->app->instance('request', $request);
 
        Facade::clearResolvedInstance('request');
 
        $this->bootstrap();
 
        return (new Pipeline($this->app))
                    ->send($request)
                    ->through($this->app->shouldSkipMiddleware() ? [] : $this->middleware)
                    ->then($this->dispatchToRouter());
    }
 
    /**
     * Bootstrap the application for HTTP requests.
     *
     * @return void
     */
    public function bootstrap()
    {
        if (! $this->app->hasBeenBootstrapped()) {
            $this->app->bootstrapWith($this->bootstrappers());
        }
    }
 
    /**
     * Get the route dispatcher callback.
     *
     * @return \Closure
     */
    protected function dispatchToRouter()
C:\inetpub\vhosts\btsconsultant.com\httpdocs\BTSConsultant_Resources\vendor\laravel\framework\src\Illuminate\Foundation\Http\Kernel.php
            $router->middlewareGroup($key, $middleware);
        }
 
        foreach ($this->routeMiddleware as $key => $middleware) {
            $router->aliasMiddleware($key, $middleware);
        }
    }
 
    /**
     * Handle an incoming HTTP request.
     *
     * @param  \Illuminate\Http\Request  $request
     * @return \Illuminate\Http\Response
     */
    public function handle($request)
    {
        try {
            $request->enableHttpMethodParameterOverride();
 
            $response = $this->sendRequestThroughRouter($request);
        } catch (Exception $e) {
            $this->reportException($e);
 
            $response = $this->renderException($request, $e);
        } catch (Throwable $e) {
            $this->reportException($e = new FatalThrowableError($e));
 
            $response = $this->renderException($request, $e);
        }
 
        $this->app['events']->dispatch(
            new Events\RequestHandled($request, $response)
        );
 
        return $response;
    }
 
    /**
     * Send the given request through the middleware / router.
     *
C:\inetpub\vhosts\btsconsultant.com\httpdocs\BTSConsultant\index.php
*/
 
$app = require_once __DIR__.'/../BTSConsultant_Resources/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);
 

Environment & details:

empty
empty
empty
empty
empty
Key Value
_FCGI_X_PIPE_
"\\.\pipe\IISFCGI-c5a72590-932d-43ad-815a-c0e09c7639aa"
TEMP
"C:\Inetpub\vhosts\btsconsultant.com\tmp"
TMP
"C:\Inetpub\vhosts\btsconsultant.com\tmp"
ALLUSERSPROFILE
"C:\ProgramData"
APPDATA
"C:\WINDOWS\system32\config\systemprofile\AppData\Roaming"
APP_POOL_CONFIG
"C:\inetpub\temp\apppools\btsconsultant.com(domain)(4.0)(pool)\btsconsultant.com(domain)(4.0)(pool).config"
APP_POOL_ID
"btsconsultant.com(domain)(4.0)(pool)"
ChocolateyInstall
"C:\ProgramData\chocolatey"
CommonProgramFiles
"C:\Program Files\Common Files"
CommonProgramFiles(x86)
"C:\Program Files (x86)\Common Files"
CommonProgramW6432
"C:\Program Files\Common Files"
COMPUTERNAME
"FPSWDH"
ComSpec
"C:\WINDOWS\system32\cmd.exe"
DriverData
"C:\Windows\System32\Drivers\DriverData"
LOCALAPPDATA
"C:\WINDOWS\system32\config\systemprofile\AppData\Local"
MAILENABLE_PATH
"C:\PROGRA~2\MAILEN~1"
NUMBER_OF_PROCESSORS
"8"
OS
"Windows_NT"
Path
"C:\Program Files (x86)\Mail Enable\BIN;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\WINDOWS\System32\OpenSSH\;C:\ProgramData\chocolatey\bin;C:\Program Files\Microsoft\Web Platform Installer\;C:\Program Files (x86)\Mail Enable\BIN64;C:\Program Files (x86)\Microsoft SQL Server\150\Tools\Binn\;C:\Program Files\Microsoft SQL Server\150\Tools\Binn\;C:\Program Files\Microsoft SQL Server\Client SDK\ODBC\170\Tools\Binn\;C:\Program Files\Microsoft SQL Server\150\DTS\Binn\;C:\Program Files (x86)\Microsoft SQL Server\150\DTS\Binn\;C:\Users\Administrator\Downloads\PHPext;C:\Program Files\Azure Data Studio\bin;C:\Program Files (x86)\Microsoft SQL Server\140\Tools\Binn\;C:\Program Files\Microsoft SQL Server\140\Tools\Binn\;C:\Program Files (x86)\Microsoft SQL Server\140\DTS\Binn\;C:\Program Files\Microsoft SQL Server\140\DTS\Binn\;C:\Program Files\Microsoft SQL Server\Client SDK\ODBC\130\Tools\Binn\;C:\ProgramData\ComposerSetup\bin;C:\Program Files\BackupClient\CommandLineTool\;C:\Program Files (x86)\Common Files\Acronis\FileProtector\;C:\Program Files (x86)\Common Files\Acronis\FileProtector64\;C:\Program Files\BackupClient\PyShell\bin\;C:\Program Files (x86)\Common Files\Acronis\SnapAPI\;C:\Program Files (x86)\Common Files\Acronis\VirtualFile\;C:\Program Files (x86)\Common Files\Acronis\VirtualFile64\;C:\Program Files\Git\cmd;C:\Program Files\Git\bin;C:\Program Files\nodejs\;C:\Program Files (x86)\Plesk\ctl;C:\Program Files\ESET\ESET Security\;C:\WINDOWS\system32\config\systemprofile\AppData\Local\Microsoft\WindowsApps;C:\WINDOWS\system32\config\systemprofile\AppData\Roaming\npm"
PATHEXT
".COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC"
plesk_bin
"C:\Program Files (x86)\Plesk\admin\bin"
plesk_bin64
"C:\Program Files (x86)\Plesk\admin\bin64"
plesk_cli
"C:\Program Files (x86)\Plesk\bin"
plesk_data
"C:\Program Files (x86)\Plesk\"
plesk_dir
"C:\Program Files (x86)\Plesk\"
plesk_vhosts
"C:\Inetpub\vhosts\"
PROCESSOR_ARCHITECTURE
"AMD64"
PROCESSOR_IDENTIFIER
"Intel64 Family 6 Model 79 Stepping 1, GenuineIntel"
PROCESSOR_LEVEL
"6"
PROCESSOR_REVISION
"4f01"
ProgramData
"C:\ProgramData"
ProgramFiles
"C:\Program Files"
ProgramFiles(x86)
"C:\Program Files (x86)"
ProgramW6432
"C:\Program Files"
PSModulePath
"C:\Program Files\WindowsPowerShell\Modules;C:\WINDOWS\system32\WindowsPowerShell\v1.0\Modules;C:\Program Files (x86)\Microsoft SQL Server\150\Tools\PowerShell\Modules\"
PUBLIC
"C:\Users\Public"
SystemDrive
"C:"
SystemRoot
"C:\WINDOWS"
USERDOMAIN
"WORKGROUP"
USERNAME
"FPSWDH$"
USERPROFILE
"C:\WINDOWS\system32\config\systemprofile"
windir
"C:\WINDOWS"
_NT_SYMBOL_PATH
"SRV*C:\WINDOWS\Symbols*http://msdl.microsoft.com/download/symbols"
ORIG_PATH_INFO
"/index.php"
URL
"/index.php"
SERVER_SOFTWARE
"Microsoft-IIS/10.0"
SERVER_PROTOCOL
"HTTP/1.1"
SERVER_PORT_SECURE
"1"
SERVER_PORT
"443"
SERVER_NAME
"btsconsultant.com"
SCRIPT_NAME
"/index.php"
SCRIPT_FILENAME
"C:\Inetpub\vhosts\btsconsultant.com\httpdocs\BTSConsultant\index.php"
REQUEST_URI
"/registerCourse/3746"
REQUEST_METHOD
"GET"
REMOTE_USER
""
REMOTE_PORT
"43408"
REMOTE_HOST
"44.192.107.255"
REMOTE_ADDR
"44.192.107.255"
QUERY_STRING
""
PATH_TRANSLATED
"C:\Inetpub\vhosts\btsconsultant.com\httpdocs\BTSConsultant\index.php"
LOGON_USER
""
LOCAL_ADDR
"69.167.171.182"
INSTANCE_META_PATH
"/LM/W3SVC/8"
INSTANCE_NAME
"BTSCONSULTANT.COM"
INSTANCE_ID
"8"
HTTPS_SERVER_SUBJECT
"CN=btsconsultant.com"
HTTPS_SERVER_ISSUER
"C=US, O=Let's Encrypt, CN=R3"
HTTPS_SECRETKEYSIZE
"2048"
HTTPS_KEYSIZE
"256"
HTTPS
"on"
GATEWAY_INTERFACE
"CGI/1.1"
DOCUMENT_ROOT
"C:\Inetpub\vhosts\btsconsultant.com\httpdocs\BTSConsultant"
CONTENT_TYPE
""
CONTENT_LENGTH
"0"
CERT_SUBJECT
""
CERT_SERIALNUMBER
""
CERT_ISSUER
""
CERT_FLAGS
""
CERT_COOKIE
""
AUTH_USER
""
AUTH_PASSWORD
""
AUTH_TYPE
""
APPL_PHYSICAL_PATH
"C:\Inetpub\vhosts\btsconsultant.com\httpdocs\BTSConsultant\"
APPL_MD_PATH
"/LM/W3SVC/8/ROOT"
IIS_UrlRewriteModule
"7,1,1993,2351"
WEBSOCKET_VERSION
"13"
UNENCODED_URL
"/registerCourse/3746"
IIS_WasUrlRewritten
"1"
HTTP_X_ORIGINAL_URL
"/registerCourse/3746"
HTTP_USER_AGENT
"claudebot"
HTTP_HOST
"btsconsultant.com"
HTTP_ACCEPT
"*/*"
HTTP_CONTENT_LENGTH
"0"
HTTP_CONNECTION
"close"
FCGI_ROLE
"RESPONDER"
PHP_SELF
"/index.php"
REQUEST_TIME_FLOAT
1711658389.6098
REQUEST_TIME
1711658389
APP_NAME
"BTS"
APP_ENV
"local"
APP_KEY
"base64:oCi9Y5vd8hZCCbYAgnww9hoRUZC88r7zmhSz3FN5uYw="
APP_DEBUG
"true"
APP_URL
"https://btsconsultant.com/"
LOG_CHANNEL
"stack"
DB_CONNECTION
"mysql"
DB_HOST
"127.0.0.1"
DB_PORT
"3306"
DB_DATABASE
"btsconsu_live"
DB_USERNAME
"btsconsu_live5995"
DB_PASSWORD
"HcF362^ne7D*"
BROADCAST_DRIVER
"log"
CACHE_DRIVER
"file"
QUEUE_CONNECTION
"sync"
SESSION_DRIVER
"file"
SESSION_LIFETIME
"120"
REDIS_HOST
"127.0.0.1"
REDIS_PASSWORD
"null"
REDIS_PORT
"6379"
MAIL_DRIVER
"smtp"
MAIL_HOST
"btsconsultant.com"
MAIL_PORT
"25"
MAIL_FROM_ADDRESS
"info@btsconsultant.com"
MAIL_USERNAME
"info@btsconsultant.com"
MAIL_PASSWORD
"uDn%3Rm7#K"
MAIL_ENCRYPTION
"tls"
AWS_ACCESS_KEY_ID
""
AWS_SECRET_ACCESS_KEY
""
AWS_DEFAULT_REGION
"us-east-1"
AWS_BUCKET
""
PUSHER_APP_ID
""
PUSHER_APP_KEY
""
PUSHER_APP_SECRET
""
PUSHER_APP_CLUSTER
"mt1"
MIX_PUSHER_APP_KEY
""
MIX_PUSHER_APP_CLUSTER
"mt1"
Key Value
APP_NAME
"BTS"
APP_ENV
"local"
APP_KEY
"base64:oCi9Y5vd8hZCCbYAgnww9hoRUZC88r7zmhSz3FN5uYw="
APP_DEBUG
"true"
APP_URL
"https://btsconsultant.com/"
LOG_CHANNEL
"stack"
DB_CONNECTION
"mysql"
DB_HOST
"127.0.0.1"
DB_PORT
"3306"
DB_DATABASE
"btsconsu_live"
DB_USERNAME
"btsconsu_live5995"
DB_PASSWORD
"HcF362^ne7D*"
BROADCAST_DRIVER
"log"
CACHE_DRIVER
"file"
QUEUE_CONNECTION
"sync"
SESSION_DRIVER
"file"
SESSION_LIFETIME
"120"
REDIS_HOST
"127.0.0.1"
REDIS_PASSWORD
"null"
REDIS_PORT
"6379"
MAIL_DRIVER
"smtp"
MAIL_HOST
"btsconsultant.com"
MAIL_PORT
"25"
MAIL_FROM_ADDRESS
"info@btsconsultant.com"
MAIL_USERNAME
"info@btsconsultant.com"
MAIL_PASSWORD
"uDn%3Rm7#K"
MAIL_ENCRYPTION
"tls"
AWS_ACCESS_KEY_ID
""
AWS_SECRET_ACCESS_KEY
""
AWS_DEFAULT_REGION
"us-east-1"
AWS_BUCKET
""
PUSHER_APP_ID
""
PUSHER_APP_KEY
""
PUSHER_APP_SECRET
""
PUSHER_APP_CLUSTER
"mt1"
MIX_PUSHER_APP_KEY
""
MIX_PUSHER_APP_CLUSTER
"mt1"
0. Whoops\Handler\PrettyPageHandler