Illuminate \ Database \ QueryException (20002)
SQLSTATE[01002] Adaptive Server connection failed (190.12.73.236) (severity 9) (SQL: select top 1 * from [parametro] where [clave] = clinica.activar-nueva-cita)
Previous exceptions
  • SQLSTATE[01002] Adaptive Server connection failed (190.12.73.236) (severity 9) (20002)
Illuminate\Database\QueryException thrown with message "SQLSTATE[01002] Adaptive Server connection failed (190.12.73.236) (severity 9) (SQL: select top 1 * from [parametro] where [clave] = clinica.activar-nueva-cita)" Stacktrace: #60 Illuminate\Database\QueryException in /var/www/backup/APJ-web-clinica/vendor/laravel/framework/src/Illuminate/Database/Connection.php:664 #59 App\Http\Controllers\HomeController:__construct in [internal]:0 #58 PDOException in /var/www/backup/APJ-web-clinica/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php:68 #57 PDO:__construct in /var/www/backup/APJ-web-clinica/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php:68 #56 Illuminate\Database\Connectors\Connector:createPdoConnection in /var/www/backup/APJ-web-clinica/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php:44 #55 Illuminate\Database\Connectors\Connector:createConnection in /var/www/backup/APJ-web-clinica/vendor/laravel/framework/src/Illuminate/Database/Connectors/SqlServerConnector.php:32 #54 Illuminate\Database\Connectors\SqlServerConnector:connect in /var/www/backup/APJ-web-clinica/vendor/laravel/framework/src/Illuminate/Database/Connectors/ConnectionFactory.php:182 #53 Illuminate\Database\Connectors\ConnectionFactory:Illuminate\Database\Connectors\{closure} in /var/www/backup/APJ-web-clinica/vendor/laravel/framework/src/Illuminate/Database/Connection.php:915 #52 call_user_func in /var/www/backup/APJ-web-clinica/vendor/laravel/framework/src/Illuminate/Database/Connection.php:915 #51 Illuminate\Database\Connection:getPdo in /var/www/backup/APJ-web-clinica/vendor/laravel/framework/src/Illuminate/Database/Connection.php:940 #50 Illuminate\Database\Connection:getReadPdo in /var/www/backup/APJ-web-clinica/vendor/laravel/framework/src/Illuminate/Database/Connection.php:399 #49 Illuminate\Database\Connection:getPdoForSelect in /var/www/backup/APJ-web-clinica/vendor/laravel/framework/src/Illuminate/Database/Connection.php:325 #48 Illuminate\Database\Connection:Illuminate\Database\{closure} in /var/www/backup/APJ-web-clinica/vendor/laravel/framework/src/Illuminate/Database/Connection.php:657 #47 Illuminate\Database\Connection:runQueryCallback in /var/www/backup/APJ-web-clinica/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 #46 Illuminate\Database\Connection:run in /var/www/backup/APJ-web-clinica/vendor/laravel/framework/src/Illuminate/Database/Connection.php:333 #45 Illuminate\Database\Connection:select in /var/www/backup/APJ-web-clinica/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php:1963 #44 Illuminate\Database\Query\Builder:runSelect in /var/www/backup/APJ-web-clinica/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php:1951 #43 Illuminate\Database\Query\Builder:Illuminate\Database\Query\{closure} in /var/www/backup/APJ-web-clinica/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php:2435 #42 Illuminate\Database\Query\Builder:onceWithColumns in /var/www/backup/APJ-web-clinica/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php:1952 #41 Illuminate\Database\Query\Builder:get in /var/www/backup/APJ-web-clinica/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php:481 #40 Illuminate\Database\Eloquent\Builder:getModels in /var/www/backup/APJ-web-clinica/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php:465 #39 Illuminate\Database\Eloquent\Builder:get in /var/www/backup/APJ-web-clinica/vendor/laravel/framework/src/Illuminate/Database/Concerns/BuildsQueries.php:77 #38 Illuminate\Database\Eloquent\Builder:first in /var/www/backup/APJ-web-clinica/app/Helpers/FuncionesHelper.php:11 #37 App\Helpers\FuncionesHelper:validateNuevoLinkCitas in /var/www/backup/APJ-web-clinica/app/Http/Controllers/HomeController.php:30 #36 App\Http\Controllers\HomeController:__construct in [internal]:0 #35 ReflectionClass:newInstanceArgs in /var/www/backup/APJ-web-clinica/vendor/laravel/framework/src/Illuminate/Container/Container.php:800 #34 Illuminate\Container\Container:build in /var/www/backup/APJ-web-clinica/vendor/laravel/framework/src/Illuminate/Container/Container.php:646 #33 Illuminate\Container\Container:resolve in /var/www/backup/APJ-web-clinica/vendor/laravel/framework/src/Illuminate/Container/Container.php:601 #32 Illuminate\Container\Container:make in /var/www/backup/APJ-web-clinica/vendor/laravel/framework/src/Illuminate/Foundation/Application.php:734 #31 Illuminate\Foundation\Application:make in /var/www/backup/APJ-web-clinica/vendor/laravel/framework/src/Illuminate/Routing/Route.php:226 #30 Illuminate\Routing\Route:getController in /var/www/backup/APJ-web-clinica/vendor/laravel/framework/src/Illuminate/Routing/Route.php:796 #29 Illuminate\Routing\Route:controllerMiddleware in /var/www/backup/APJ-web-clinica/vendor/laravel/framework/src/Illuminate/Routing/Route.php:757 #28 Illuminate\Routing\Route:gatherMiddleware in /var/www/backup/APJ-web-clinica/vendor/laravel/framework/src/Illuminate/Routing/Router.php:678 #27 Illuminate\Routing\Router:gatherRouteMiddleware in /var/www/backup/APJ-web-clinica/vendor/laravel/framework/src/Illuminate/Routing/Router.php:658 #26 Illuminate\Routing\Router:runRouteWithinStack in /var/www/backup/APJ-web-clinica/vendor/laravel/framework/src/Illuminate/Routing/Router.php:642 #25 Illuminate\Routing\Router:runRoute in /var/www/backup/APJ-web-clinica/vendor/laravel/framework/src/Illuminate/Routing/Router.php:608 #24 Illuminate\Routing\Router:dispatchToRoute in /var/www/backup/APJ-web-clinica/vendor/laravel/framework/src/Illuminate/Routing/Router.php:597 #23 Illuminate\Routing\Router:dispatch in /var/www/backup/APJ-web-clinica/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php:176 #22 Illuminate\Foundation\Http\Kernel:Illuminate\Foundation\Http\{closure} in /var/www/backup/APJ-web-clinica/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php:30 #21 Illuminate\Routing\Pipeline:Illuminate\Routing\{closure} in /var/www/backup/APJ-web-clinica/vendor/barryvdh/laravel-debugbar/src/Middleware/InjectDebugbar.php:58 #20 Barryvdh\Debugbar\Middleware\InjectDebugbar:handle in /var/www/backup/APJ-web-clinica/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:151 #19 Illuminate\Pipeline\Pipeline:Illuminate\Pipeline\{closure} in /var/www/backup/APJ-web-clinica/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php:53 #18 Illuminate\Routing\Pipeline:Illuminate\Routing\{closure} in /var/www/backup/APJ-web-clinica/vendor/fideloper/proxy/src/TrustProxies.php:57 #17 Fideloper\Proxy\TrustProxies:handle in /var/www/backup/APJ-web-clinica/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:151 #16 Illuminate\Pipeline\Pipeline:Illuminate\Pipeline\{closure} in /var/www/backup/APJ-web-clinica/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php:53 #15 Illuminate\Routing\Pipeline:Illuminate\Routing\{closure} in /var/www/backup/APJ-web-clinica/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php:31 #14 Illuminate\Foundation\Http\Middleware\TransformsRequest:handle in /var/www/backup/APJ-web-clinica/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:151 #13 Illuminate\Pipeline\Pipeline:Illuminate\Pipeline\{closure} in /var/www/backup/APJ-web-clinica/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php:53 #12 Illuminate\Routing\Pipeline:Illuminate\Routing\{closure} in /var/www/backup/APJ-web-clinica/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php:31 #11 Illuminate\Foundation\Http\Middleware\TransformsRequest:handle in /var/www/backup/APJ-web-clinica/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:151 #10 Illuminate\Pipeline\Pipeline:Illuminate\Pipeline\{closure} in /var/www/backup/APJ-web-clinica/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php:53 #9 Illuminate\Routing\Pipeline:Illuminate\Routing\{closure} in /var/www/backup/APJ-web-clinica/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php:27 #8 Illuminate\Foundation\Http\Middleware\ValidatePostSize:handle in /var/www/backup/APJ-web-clinica/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:151 #7 Illuminate\Pipeline\Pipeline:Illuminate\Pipeline\{closure} in /var/www/backup/APJ-web-clinica/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php:53 #6 Illuminate\Routing\Pipeline:Illuminate\Routing\{closure} in /var/www/backup/APJ-web-clinica/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/CheckForMaintenanceMode.php:62 #5 Illuminate\Foundation\Http\Middleware\CheckForMaintenanceMode:handle in /var/www/backup/APJ-web-clinica/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:151 #4 Illuminate\Pipeline\Pipeline:Illuminate\Pipeline\{closure} in /var/www/backup/APJ-web-clinica/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php:53 #3 Illuminate\Routing\Pipeline:Illuminate\Routing\{closure} in /var/www/backup/APJ-web-clinica/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:104 #2 Illuminate\Pipeline\Pipeline:then in /var/www/backup/APJ-web-clinica/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php:151 #1 Illuminate\Foundation\Http\Kernel:sendRequestThroughRouter in /var/www/backup/APJ-web-clinica/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php:116 #0 Illuminate\Foundation\Http\Kernel:handle in /var/www/backup/APJ-web-clinica/public/index.php:54
60
Illuminate\Database\QueryException
/vendor/laravel/framework/src/Illuminate/Database/Connection.php664
59
App\Http\Controllers\HomeController __construct
[internal]0
58
PDOException
/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php68
57
PDO __construct
/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php68
56
Illuminate\Database\Connectors\Connector createPdoConnection
/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php44
55
Illuminate\Database\Connectors\Connector createConnection
/vendor/laravel/framework/src/Illuminate/Database/Connectors/SqlServerConnector.php32
54
Illuminate\Database\Connectors\SqlServerConnector connect
/vendor/laravel/framework/src/Illuminate/Database/Connectors/ConnectionFactory.php182
53
Illuminate\Database\Connectors\ConnectionFactory Illuminate\Database\Connectors\{closure}
/vendor/laravel/framework/src/Illuminate/Database/Connection.php915
52
call_user_func
/vendor/laravel/framework/src/Illuminate/Database/Connection.php915
51
Illuminate\Database\Connection getPdo
/vendor/laravel/framework/src/Illuminate/Database/Connection.php940
50
Illuminate\Database\Connection getReadPdo
/vendor/laravel/framework/src/Illuminate/Database/Connection.php399
49
Illuminate\Database\Connection getPdoForSelect
/vendor/laravel/framework/src/Illuminate/Database/Connection.php325
48
Illuminate\Database\Connection Illuminate\Database\{closure}
/vendor/laravel/framework/src/Illuminate/Database/Connection.php657
47
Illuminate\Database\Connection runQueryCallback
/vendor/laravel/framework/src/Illuminate/Database/Connection.php624
46
Illuminate\Database\Connection run
/vendor/laravel/framework/src/Illuminate/Database/Connection.php333
45
Illuminate\Database\Connection select
/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php1963
44
Illuminate\Database\Query\Builder runSelect
/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php1951
43
Illuminate\Database\Query\Builder Illuminate\Database\Query\{closure}
/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php2435
42
Illuminate\Database\Query\Builder onceWithColumns
/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php1952
41
Illuminate\Database\Query\Builder get
/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php481
40
Illuminate\Database\Eloquent\Builder getModels
/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php465
39
Illuminate\Database\Eloquent\Builder get
/vendor/laravel/framework/src/Illuminate/Database/Concerns/BuildsQueries.php77
38
Illuminate\Database\Eloquent\Builder first
/app/Helpers/FuncionesHelper.php11
37
App\Helpers\FuncionesHelper validateNuevoLinkCitas
/app/Http/Controllers/HomeController.php30
36
App\Http\Controllers\HomeController __construct
[internal]0
35
ReflectionClass newInstanceArgs
/vendor/laravel/framework/src/Illuminate/Container/Container.php800
34
Illuminate\Container\Container build
/vendor/laravel/framework/src/Illuminate/Container/Container.php646
33
Illuminate\Container\Container resolve
/vendor/laravel/framework/src/Illuminate/Container/Container.php601
32
Illuminate\Container\Container make
/vendor/laravel/framework/src/Illuminate/Foundation/Application.php734
31
Illuminate\Foundation\Application make
/vendor/laravel/framework/src/Illuminate/Routing/Route.php226
30
Illuminate\Routing\Route getController
/vendor/laravel/framework/src/Illuminate/Routing/Route.php796
29
Illuminate\Routing\Route controllerMiddleware
/vendor/laravel/framework/src/Illuminate/Routing/Route.php757
28
Illuminate\Routing\Route gatherMiddleware
/vendor/laravel/framework/src/Illuminate/Routing/Router.php678
27
Illuminate\Routing\Router gatherRouteMiddleware
/vendor/laravel/framework/src/Illuminate/Routing/Router.php658
26
Illuminate\Routing\Router runRouteWithinStack
/vendor/laravel/framework/src/Illuminate/Routing/Router.php642
25
Illuminate\Routing\Router runRoute
/vendor/laravel/framework/src/Illuminate/Routing/Router.php608
24
Illuminate\Routing\Router dispatchToRoute
/vendor/laravel/framework/src/Illuminate/Routing/Router.php597
23
Illuminate\Routing\Router dispatch
/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php176
22
Illuminate\Foundation\Http\Kernel Illuminate\Foundation\Http\{closure}
/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php30
21
Illuminate\Routing\Pipeline Illuminate\Routing\{closure}
/vendor/barryvdh/laravel-debugbar/src/Middleware/InjectDebugbar.php58
20
Barryvdh\Debugbar\Middleware\InjectDebugbar handle
/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php151
19
Illuminate\Pipeline\Pipeline Illuminate\Pipeline\{closure}
/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php53
18
Illuminate\Routing\Pipeline Illuminate\Routing\{closure}
/vendor/fideloper/proxy/src/TrustProxies.php57
17
Fideloper\Proxy\TrustProxies handle
/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php151
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.php31
14
Illuminate\Foundation\Http\Middleware\TransformsRequest handle
/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php151
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/TransformsRequest.php31
11
Illuminate\Foundation\Http\Middleware\TransformsRequest handle
/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php151
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/ValidatePostSize.php27
8
Illuminate\Foundation\Http\Middleware\ValidatePostSize handle
/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php151
7
Illuminate\Pipeline\Pipeline Illuminate\Pipeline\{closure}
/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php53
6
Illuminate\Routing\Pipeline Illuminate\Routing\{closure}
/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/CheckForMaintenanceMode.php62
5
Illuminate\Foundation\Http\Middleware\CheckForMaintenanceMode handle
/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php151
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
/public/index.php54
/var/www/backup/APJ-web-clinica/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[01002] Adaptive Server connection failed (190.12.73.236) (severity 9) (SQL: select top 1 * from [parametro] where [clave] = clinica.activar-nueva-cita)"
    
[internal]
/var/www/backup/APJ-web-clinica/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php
            );
        }
    }
 
    /**
     * Create a new PDO connection instance.
     *
     * @param  string  $dsn
     * @param  string  $username
     * @param  string  $password
     * @param  array  $options
     * @return \PDO
     */
    protected function createPdoConnection($dsn, $username, $password, $options)
    {
        if (class_exists(PDOConnection::class) && ! $this->isPersistentConnection($options)) {
            return new PDOConnection($dsn, $username, $password, $options);
        }
 
        return new PDO($dsn, $username, $password, $options);
    }
 
    /**
     * Determine if the connection is persistent.
     *
     * @param  array  $options
     * @return bool
     */
    protected function isPersistentConnection($options)
    {
        return isset($options[PDO::ATTR_PERSISTENT]) &&
               $options[PDO::ATTR_PERSISTENT];
    }
 
    /**
     * Handle an exception that occurred during connect execution.
     *
     * @param  \Throwable  $e
     * @param  string  $dsn
     * @param  string  $username
Arguments
  1. "SQLSTATE[01002] Adaptive Server connection failed (190.12.73.236) (severity 9)"
    
Exception message: SQLSTATE[01002] Adaptive Server connection failed (190.12.73.236) (severity 9)
/var/www/backup/APJ-web-clinica/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php
            );
        }
    }
 
    /**
     * Create a new PDO connection instance.
     *
     * @param  string  $dsn
     * @param  string  $username
     * @param  string  $password
     * @param  array  $options
     * @return \PDO
     */
    protected function createPdoConnection($dsn, $username, $password, $options)
    {
        if (class_exists(PDOConnection::class) && ! $this->isPersistentConnection($options)) {
            return new PDOConnection($dsn, $username, $password, $options);
        }
 
        return new PDO($dsn, $username, $password, $options);
    }
 
    /**
     * Determine if the connection is persistent.
     *
     * @param  array  $options
     * @return bool
     */
    protected function isPersistentConnection($options)
    {
        return isset($options[PDO::ATTR_PERSISTENT]) &&
               $options[PDO::ATTR_PERSISTENT];
    }
 
    /**
     * Handle an exception that occurred during connect execution.
     *
     * @param  \Throwable  $e
     * @param  string  $dsn
     * @param  string  $username
Arguments
  1. "dblib:host=190.12.73.236:51433;dbname=apj_api"
    
  2. "usr_api"
    
  3. "iez3AegiuSuchuH2"
    
  4. array:4 [
      8 => 0
      3 => 2
      11 => 0
      17 => false
    ]
    
/var/www/backup/APJ-web-clinica/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php
        PDO::ATTR_EMULATE_PREPARES => false,
    ];
 
    /**
     * Create a new PDO connection.
     *
     * @param  string  $dsn
     * @param  array   $config
     * @param  array   $options
     * @return \PDO
     */
    public function createConnection($dsn, array $config, array $options)
    {
        list($username, $password) = [
            $config['username'] ?? null, $config['password'] ?? null,
        ];
 
        try {
            return $this->createPdoConnection(
                $dsn, $username, $password, $options
            );
        } catch (Exception $e) {
            return $this->tryAgainIfCausedByLostConnection(
                $e, $dsn, $username, $password, $options
            );
        }
    }
 
    /**
     * Create a new PDO connection instance.
     *
     * @param  string  $dsn
     * @param  string  $username
     * @param  string  $password
     * @param  array  $options
     * @return \PDO
     */
    protected function createPdoConnection($dsn, $username, $password, $options)
    {
        if (class_exists(PDOConnection::class) && ! $this->isPersistentConnection($options)) {
Arguments
  1. "dblib:host=190.12.73.236:51433;dbname=apj_api"
    
  2. "usr_api"
    
  3. "iez3AegiuSuchuH2"
    
  4. array:4 [
      8 => 0
      3 => 2
      11 => 0
      17 => false
    ]
    
/var/www/backup/APJ-web-clinica/vendor/laravel/framework/src/Illuminate/Database/Connectors/SqlServerConnector.php
     * @var array
     */
    protected $options = [
        PDO::ATTR_CASE => PDO::CASE_NATURAL,
        PDO::ATTR_ERRMODE => PDO::ERRMODE_EXCEPTION,
        PDO::ATTR_ORACLE_NULLS => PDO::NULL_NATURAL,
        PDO::ATTR_STRINGIFY_FETCHES => false,
    ];
 
    /**
     * Establish a database connection.
     *
     * @param  array  $config
     * @return \PDO
     */
    public function connect(array $config)
    {
        $options = $this->getOptions($config);
 
        return $this->createConnection($this->getDsn($config), $config, $options);
    }
 
    /**
     * Create a DSN string from a configuration.
     *
     * @param  array   $config
     * @return string
     */
    protected function getDsn(array $config)
    {
        // First we will create the basic DSN setup as well as the port if it is in
        // in the configuration options. This will give us the basic DSN we will
        // need to establish the PDO connections and return them back for use.
        if (in_array('dblib', $this->getAvailableDrivers())) {
            return $this->getDblibDsn($config);
        } elseif ($this->prefersOdbc($config)) {
            return $this->getOdbcDsn($config);
        }
 
        return $this->getSqlSrvDsn($config);
Arguments
  1. "dblib:host=190.12.73.236:51433;dbname=apj_api"
    
  2. array:8 [
      "driver" => "sqlsrv"
      "host" => "190.12.73.236"
      "port" => "51433"
      "database" => "apj_api"
      "username" => "usr_api"
      "password" => "iez3AegiuSuchuH2"
      "prefix" => ""
      "name" => "spring"
    ]
    
  3. array:4 [
      8 => 0
      3 => 2
      11 => 0
      17 => false
    ]
    
/var/www/backup/APJ-web-clinica/vendor/laravel/framework/src/Illuminate/Database/Connectors/ConnectionFactory.php
    {
        return array_key_exists('host', $config)
                            ? $this->createPdoResolverWithHosts($config)
                            : $this->createPdoResolverWithoutHosts($config);
    }
 
    /**
     * Create a new Closure that resolves to a PDO instance with a specific host or an array of hosts.
     *
     * @param  array  $config
     * @return \Closure
     */
    protected function createPdoResolverWithHosts(array $config)
    {
        return function () use ($config) {
            foreach (Arr::shuffle($hosts = $this->parseHosts($config)) as $key => $host) {
                $config['host'] = $host;
 
                try {
                    return $this->createConnector($config)->connect($config);
                } catch (PDOException $e) {
                    continue;
                }
            }
 
            throw $e;
        };
    }
 
    /**
     * Parse the hosts configuration item into an array.
     *
     * @param  array  $config
     * @return array
     */
    protected function parseHosts(array $config)
    {
        $hosts = Arr::wrap($config['host']);
 
        if (empty($hosts)) {
Arguments
  1. array:8 [
      "driver" => "sqlsrv"
      "host" => "190.12.73.236"
      "port" => "51433"
      "database" => "apj_api"
      "username" => "usr_api"
      "password" => "iez3AegiuSuchuH2"
      "prefix" => ""
      "name" => "spring"
    ]
    
/var/www/backup/APJ-web-clinica/vendor/laravel/framework/src/Illuminate/Database/Connection.php
 
            $this->doctrineConnection = new DoctrineConnection([
                'pdo' => $this->getPdo(),
                'dbname' => $this->getConfig('database'),
                'driver' => $driver->getName(),
            ], $driver);
        }
 
        return $this->doctrineConnection;
    }
 
    /**
     * Get the current PDO connection.
     *
     * @return \PDO
     */
    public function getPdo()
    {
        if ($this->pdo instanceof Closure) {
            return $this->pdo = call_user_func($this->pdo);
        }
 
        return $this->pdo;
    }
 
    /**
     * Get the current PDO connection used for reading.
     *
     * @return \PDO
     */
    public function getReadPdo()
    {
        if ($this->transactions > 0) {
            return $this->getPdo();
        }
 
        if ($this->recordsModified && $this->getConfig('sticky')) {
            return $this->getPdo();
        }
 
/var/www/backup/APJ-web-clinica/vendor/laravel/framework/src/Illuminate/Database/Connection.php
 
            $this->doctrineConnection = new DoctrineConnection([
                'pdo' => $this->getPdo(),
                'dbname' => $this->getConfig('database'),
                'driver' => $driver->getName(),
            ], $driver);
        }
 
        return $this->doctrineConnection;
    }
 
    /**
     * Get the current PDO connection.
     *
     * @return \PDO
     */
    public function getPdo()
    {
        if ($this->pdo instanceof Closure) {
            return $this->pdo = call_user_func($this->pdo);
        }
 
        return $this->pdo;
    }
 
    /**
     * Get the current PDO connection used for reading.
     *
     * @return \PDO
     */
    public function getReadPdo()
    {
        if ($this->transactions > 0) {
            return $this->getPdo();
        }
 
        if ($this->recordsModified && $this->getConfig('sticky')) {
            return $this->getPdo();
        }
 
Arguments
  1. Closure() {#524 …5}
    
/var/www/backup/APJ-web-clinica/vendor/laravel/framework/src/Illuminate/Database/Connection.php
    /**
     * Get the current PDO connection used for reading.
     *
     * @return \PDO
     */
    public function getReadPdo()
    {
        if ($this->transactions > 0) {
            return $this->getPdo();
        }
 
        if ($this->recordsModified && $this->getConfig('sticky')) {
            return $this->getPdo();
        }
 
        if ($this->readPdo instanceof Closure) {
            return $this->readPdo = call_user_func($this->readPdo);
        }
 
        return $this->readPdo ?: $this->getPdo();
    }
 
    /**
     * Set the PDO connection.
     *
     * @param  \PDO|\Closure|null  $pdo
     * @return $this
     */
    public function setPdo($pdo)
    {
        $this->transactions = 0;
 
        $this->pdo = $pdo;
 
        return $this;
    }
 
    /**
     * Set the PDO connection used for reading.
     *
/var/www/backup/APJ-web-clinica/vendor/laravel/framework/src/Illuminate/Database/Connection.php
    protected function prepared(PDOStatement $statement)
    {
        $statement->setFetchMode($this->fetchMode);
 
        $this->event(new Events\StatementPrepared(
            $this, $statement
        ));
 
        return $statement;
    }
 
    /**
     * Get the PDO connection to use for a select query.
     *
     * @param  bool  $useReadPdo
     * @return \PDO
     */
    protected function getPdoForSelect($useReadPdo = true)
    {
        return $useReadPdo ? $this->getReadPdo() : $this->getPdo();
    }
 
    /**
     * Run an insert statement against the database.
     *
     * @param  string  $query
     * @param  array   $bindings
     * @return bool
     */
    public function insert($query, $bindings = [])
    {
        return $this->statement($query, $bindings);
    }
 
    /**
     * Run an update statement against the database.
     *
     * @param  string  $query
     * @param  array   $bindings
     * @return int
/var/www/backup/APJ-web-clinica/vendor/laravel/framework/src/Illuminate/Database/Connection.php
 
    /**
     * Run a select statement against the database.
     *
     * @param  string  $query
     * @param  array  $bindings
     * @param  bool  $useReadPdo
     * @return array
     */
    public function select($query, $bindings = [], $useReadPdo = true)
    {
        return $this->run($query, $bindings, function ($query, $bindings) use ($useReadPdo) {
            if ($this->pretending()) {
                return [];
            }
 
            // For select statements, we'll simply execute the query and return an array
            // of the database result set. Each element in the array will be a single
            // row from the database table, and will either be an array or objects.
            $statement = $this->prepared($this->getPdoForSelect($useReadPdo)
                              ->prepare($query));
 
            $this->bindValues($statement, $this->prepareBindings($bindings));
 
            $statement->execute();
 
            return $statement->fetchAll();
        });
    }
 
    /**
     * Run a select statement against the database and returns a generator.
     *
     * @param  string  $query
     * @param  array  $bindings
     * @param  bool  $useReadPdo
     * @return \Generator
     */
    public function cursor($query, $bindings = [], $useReadPdo = true)
    {
Arguments
  1. true
    
/var/www/backup/APJ-web-clinica/vendor/laravel/framework/src/Illuminate/Database/Connection.php
        return $result;
    }
 
    /**
     * Run a SQL statement.
     *
     * @param  string    $query
     * @param  array     $bindings
     * @param  \Closure  $callback
     * @return mixed
     *
     * @throws \Illuminate\Database\QueryException
     */
    protected function runQueryCallback($query, $bindings, Closure $callback)
    {
        // To execute the statement, we'll simply call the callback, which will actually
        // run the SQL against the PDO connection. Then we can calculate the time it
        // took to execute and log the query SQL, bindings and time in our memory.
        try {
            $result = $callback($query, $bindings);
        }
 
        // If an exception occurs when attempting to run a query, we'll format the error
        // message to include the bindings with SQL, which will make this exception a
        // lot more helpful to the developer instead of just the database's errors.
        catch (Exception $e) {
            throw new QueryException(
                $query, $this->prepareBindings($bindings), $e
            );
        }
 
        return $result;
    }
 
    /**
     * Log a query in the connection's query log.
     *
     * @param  string  $query
     * @param  array   $bindings
     * @param  float|null  $time
Arguments
  1. "select top 1 * from [parametro] where [clave] = ?"
    
  2. array:1 [
      0 => "clinica.activar-nueva-cita"
    ]
    
/var/www/backup/APJ-web-clinica/vendor/laravel/framework/src/Illuminate/Database/Connection.php
     * Run a SQL statement and log its execution context.
     *
     * @param  string    $query
     * @param  array     $bindings
     * @param  \Closure  $callback
     * @return mixed
     *
     * @throws \Illuminate\Database\QueryException
     */
    protected function run($query, $bindings, Closure $callback)
    {
        $this->reconnectIfMissingConnection();
 
        $start = microtime(true);
 
        // Here we will run this query. If an exception occurs we'll determine if it was
        // caused by a connection that has been lost. If that is the cause, we'll try
        // to re-establish connection and re-run the query with a fresh connection.
        try {
            $result = $this->runQueryCallback($query, $bindings, $callback);
        } catch (QueryException $e) {
            $result = $this->handleQueryException(
                $e, $query, $bindings, $callback
            );
        }
 
        // Once we have run the query we will calculate the time that it took to run and
        // then log the query, bindings, and execution time so we will report them on
        // the event that the developer needs them. We'll log time in milliseconds.
        $this->logQuery(
            $query, $bindings, $this->getElapsedTime($start)
        );
 
        return $result;
    }
 
    /**
     * Run a SQL statement.
     *
     * @param  string    $query
Arguments
  1. "select top 1 * from [parametro] where [clave] = ?"
    
  2. array:1 [
      0 => "clinica.activar-nueva-cita"
    ]
    
  3. Closure($query, $bindings) {#536 …5}
    
/var/www/backup/APJ-web-clinica/vendor/laravel/framework/src/Illuminate/Database/Connection.php
     */
    public function select($query, $bindings = [], $useReadPdo = true)
    {
        return $this->run($query, $bindings, function ($query, $bindings) use ($useReadPdo) {
            if ($this->pretending()) {
                return [];
            }
 
            // For select statements, we'll simply execute the query and return an array
            // of the database result set. Each element in the array will be a single
            // row from the database table, and will either be an array or objects.
            $statement = $this->prepared($this->getPdoForSelect($useReadPdo)
                              ->prepare($query));
 
            $this->bindValues($statement, $this->prepareBindings($bindings));
 
            $statement->execute();
 
            return $statement->fetchAll();
        });
    }
 
    /**
     * Run a select statement against the database and returns a generator.
     *
     * @param  string  $query
     * @param  array  $bindings
     * @param  bool  $useReadPdo
     * @return \Generator
     */
    public function cursor($query, $bindings = [], $useReadPdo = true)
    {
        $statement = $this->run($query, $bindings, function ($query, $bindings) use ($useReadPdo) {
            if ($this->pretending()) {
                return [];
            }
 
            // First we will create a statement for the query. Then, we will set the fetch
            // mode and prepare the bindings for the query. Once that's done we will be
            // ready to execute the query against the database and return the cursor.
Arguments
  1. "select top 1 * from [parametro] where [clave] = ?"
    
  2. array:1 [
      0 => "clinica.activar-nueva-cita"
    ]
    
  3. Closure($query, $bindings) {#536 …5}
    
/var/www/backup/APJ-web-clinica/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php
     *
     * @param  array  $columns
     * @return \Illuminate\Support\Collection
     */
    public function get($columns = ['*'])
    {
        return collect($this->onceWithColumns($columns, function () {
            return $this->processor->processSelect($this, $this->runSelect());
        }));
    }
 
    /**
     * Run the query as a "select" statement against the connection.
     *
     * @return array
     */
    protected function runSelect()
    {
        return $this->connection->select(
            $this->toSql(), $this->getBindings(), ! $this->useWritePdo
        );
    }
 
    /**
     * Paginate the given query into a simple paginator.
     *
     * @param  int  $perPage
     * @param  array  $columns
     * @param  string  $pageName
     * @param  int|null  $page
     * @return \Illuminate\Contracts\Pagination\LengthAwarePaginator
     */
    public function paginate($perPage = 15, $columns = ['*'], $pageName = 'page', $page = null)
    {
        $page = $page ?: Paginator::resolveCurrentPage($pageName);
 
        $total = $this->getCountForPagination($columns);
 
        $results = $total ? $this->forPage($page, $perPage)->get($columns) : collect();
 
Arguments
  1. "select top 1 * from [parametro] where [clave] = ?"
    
  2. array:1 [
      0 => "clinica.activar-nueva-cita"
    ]
    
  3. true
    
/var/www/backup/APJ-web-clinica/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php
     * @param  string  $column
     * @return mixed
     */
    public function value($column)
    {
        $result = (array) $this->first([$column]);
 
        return count($result) > 0 ? reset($result) : null;
    }
 
    /**
     * Execute the query as a "select" statement.
     *
     * @param  array  $columns
     * @return \Illuminate\Support\Collection
     */
    public function get($columns = ['*'])
    {
        return collect($this->onceWithColumns($columns, function () {
            return $this->processor->processSelect($this, $this->runSelect());
        }));
    }
 
    /**
     * Run the query as a "select" statement against the connection.
     *
     * @return array
     */
    protected function runSelect()
    {
        return $this->connection->select(
            $this->toSql(), $this->getBindings(), ! $this->useWritePdo
        );
    }
 
    /**
     * Paginate the given query into a simple paginator.
     *
     * @param  int  $perPage
     * @param  array  $columns
/var/www/backup/APJ-web-clinica/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php
    }
 
    /**
     * Execute the given callback while selecting the given columns.
     *
     * After running the callback, the columns are reset to the original value.
     *
     * @param  array  $columns
     * @param  callable  $callback
     * @return mixed
     */
    protected function onceWithColumns($columns, $callback)
    {
        $original = $this->columns;
 
        if (is_null($original)) {
            $this->columns = $columns;
        }
 
        $result = $callback();
 
        $this->columns = $original;
 
        return $result;
    }
 
    /**
     * Insert a new record into the database.
     *
     * @param  array  $values
     * @return bool
     */
    public function insert(array $values)
    {
        // Since every insert gets treated like a batch insert, we will make sure the
        // bindings are structured in a way that is convenient when building these
        // inserts statements by verifying these elements are actually an array.
        if (empty($values)) {
            return true;
        }
/var/www/backup/APJ-web-clinica/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php
     * @return mixed
     */
    public function value($column)
    {
        $result = (array) $this->first([$column]);
 
        return count($result) > 0 ? reset($result) : null;
    }
 
    /**
     * Execute the query as a "select" statement.
     *
     * @param  array  $columns
     * @return \Illuminate\Support\Collection
     */
    public function get($columns = ['*'])
    {
        return collect($this->onceWithColumns($columns, function () {
            return $this->processor->processSelect($this, $this->runSelect());
        }));
    }
 
    /**
     * Run the query as a "select" statement against the connection.
     *
     * @return array
     */
    protected function runSelect()
    {
        return $this->connection->select(
            $this->toSql(), $this->getBindings(), ! $this->useWritePdo
        );
    }
 
    /**
     * Paginate the given query into a simple paginator.
     *
     * @param  int  $perPage
     * @param  array  $columns
     * @param  string  $pageName
Arguments
  1. array:1 [
      0 => "*"
    ]
    
  2. Closure() {#531 …4}
    
/var/www/backup/APJ-web-clinica/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[]
     */
    public function getModels($columns = ['*'])
    {
        return $this->model->hydrate(
            $this->query->get($columns)->all()
        )->all();
    }
 
    /**
     * Eager load the relationships for the models.
     *
     * @param  array  $models
     * @return array
     */
    public function eagerLoadRelations(array $models)
    {
        foreach ($this->eagerLoad as $name => $constraints) {
            // For nested eager loads we'll skip loading them here and they will be set as an
            // eager load on the query to retrieve the relation so that they will be eager
            // loaded on that query, because that is where they get hydrated as models.
            if (strpos($name, '.') === false) {
                $models = $this->eagerLoadRelation($models, $name, $constraints);
            }
        }
 
Arguments
  1. array:1 [
      0 => "*"
    ]
    
/var/www/backup/APJ-web-clinica/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[]
     */
    public function getModels($columns = ['*'])
    {
        return $this->model->hydrate(
            $this->query->get($columns)->all()
        )->all();
    }
 
    /**
Arguments
  1. array:1 [
      0 => "*"
    ]
    
/var/www/backup/APJ-web-clinica/vendor/laravel/framework/src/Illuminate/Database/Concerns/BuildsQueries.php
    public function each(callable $callback, $count = 1000)
    {
        return $this->chunk($count, function ($results) use ($callback) {
            foreach ($results as $key => $value) {
                if ($callback($value, $key) === false) {
                    return false;
                }
            }
        });
    }
 
    /**
     * Execute the query and get the first result.
     *
     * @param  array  $columns
     * @return \Illuminate\Database\Eloquent\Model|object|static|null
     */
    public function first($columns = ['*'])
    {
        return $this->take(1)->get($columns)->first();
    }
 
    /**
     * Apply the callback's query changes if the given "value" is true.
     *
     * @param  mixed  $value
     * @param  callable  $callback
     * @param  callable  $default
     * @return mixed|$this
     */
    public function when($value, $callback, $default = null)
    {
        if ($value) {
            return $callback($this, $value) ?: $this;
        } elseif ($default) {
            return $default($this, $value) ?: $this;
        }
 
        return $this;
    }
Arguments
  1. array:1 [
      0 => "*"
    ]
    
/var/www/backup/APJ-web-clinica/app/Helpers/FuncionesHelper.php
<?php
namespace App\Helpers;

use App\Parametro;

class FuncionesHelper {

    public static function validateNuevoLinkCitas()
    {
        $result = null;
        $parametro = Parametro::where('clave', 'clinica.activar-nueva-cita')->first();
        if($parametro != null && $parametro['valor'] == 1) {
            $res_data = Parametro::where('clave', 'clinica.url-nueva-cita')->first();
            if($res_data != null && $res_data['valor'] != null){
                $result = $res_data['valor'];
            }
        }
        return $result;
    }

}
/var/www/backup/APJ-web-clinica/app/Http/Controllers/HomeController.php
 
use App\PaginaCms;
use App\SliderCms;
use App\ContenidoCms;
use App\HistoriaCms;
use App\Especialidad;
use App\FaqCms;
use App\PaginaEspecialidadCms;
use App\BlogCms;
use App\UsuarioUnsubscribe;
use App\Http\Requests\UnsubscribeRequest;
use Facades\App\Medico;
use Carbon\Carbon;
 
class HomeController extends Controller
{
 
    public function __construct()
    {
        $this->initnuevawebcitas = FuncionesHelper::validateNuevoLinkCitas();
    }
 
    /**
     * Show the application dashboard.
     *
     * @return \Illuminate\Http\Response
     */
    public function index()
    {
        $pagina = PaginaCms::where('estatus', 1)->where('tipo', 1)->orderBy('id', 'desc')->first();
        $contenido = ContenidoCms::where('estatus', 1)->where('pagina_id', $pagina->id)->orderBy('orden', 'asc')->get();
        return view('clinica.inicio')->with('title', $pagina->slug)->with('pagina', $pagina)->with('contenido', $contenido);
    }
 
    public function pagina($slug)
    {
        $pagina = PaginaCms::where('estatus', 1)->where('slug', $slug)->first();
 
        //Redirecciono y muestro segun el tipo de página
        if ($pagina) {
[internal]
/var/www/backup/APJ-web-clinica/vendor/laravel/framework/src/Illuminate/Container/Container.php
        // we can just resolve the instances of the objects right away, without
        // resolving any other types or dependencies out of these containers.
        if (is_null($constructor)) {
            array_pop($this->buildStack);
 
            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.
        $instances = $this->resolveDependencies(
            $dependencies
        );
 
        array_pop($this->buildStack);
 
        return $reflector->newInstanceArgs($instances);
    }
 
    /**
     * Resolve all of the dependencies from the ReflectionParameters.
     *
     * @param  array  $dependencies
     * @return array
     */
    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);
 
                continue;
Arguments
  1. []
    
/var/www/backup/APJ-web-clinica/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;
        }
 
        $this->fireResolvingCallbacks($abstract, $object);
 
Arguments
  1. "App\Http\Controllers\HomeController"
    
/var/www/backup/APJ-web-clinica/vendor/laravel/framework/src/Illuminate/Container/Container.php
     *
     * @param  string  $abstract
     * @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
     */
    public function make($abstract, array $parameters = [])
    {
        return $this->resolve($abstract, $parameters);
    }
 
    /**
     *  {@inheritdoc}
     */
    public function get($id)
    {
        if ($this->has($id)) {
            return $this->resolve($id);
        }
 
        throw new EntryNotFoundException;
    }
 
    /**
     * Resolve the given type from the container.
     *
     * @param  string  $abstract
     * @param  array  $parameters
     * @return mixed
Arguments
  1. "App\Http\Controllers\HomeController"
    
  2. []
    
/var/www/backup/APJ-web-clinica/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 (isset($this->deferredServices[$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 isset($this->deferredServices[$abstract]) || parent::bound($abstract);
    }
 
    /**
     * Determine if the application has booted.
     *
     * @return bool
     */
Arguments
  1. "App\Http\Controllers\HomeController"
    
  2. []
    
/var/www/backup/APJ-web-clinica/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
     */
Arguments
  1. "App\Http\Controllers\HomeController"
    
/var/www/backup/APJ-web-clinica/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.
     *
/var/www/backup/APJ-web-clinica/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(
/var/www/backup/APJ-web-clinica/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.
     *
/var/www/backup/APJ-web-clinica/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) {
Arguments
  1. Route {#204}
    
/var/www/backup/APJ-web-clinica/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 mixed
     */
    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)
Arguments
  1. Route {#204}
    
  2. Request {#42
      #json: null
      #convertedFiles: null
      #userResolver: Closure($guard = null) {#475 …5}
      #routeResolver: Closure() {#463 …5}
      +attributes: ParameterBag {#44}
      +request: ParameterBag {#50}
      +query: ParameterBag {#50}
      +server: ServerBag {#46}
      +files: FileBag {#47}
      +cookies: ParameterBag {#45}
      +headers: HeaderBag {#48}
      #content: null
      #languages: null
      #charsets: null
      #encodings: null
      #acceptableContentTypes: array:1 [
        0 => "*/*"
      ]
      #pathInfo: "/iniciar-sesion"
      #requestUri: "/iniciar-sesion"
      #baseUrl: ""
      #basePath: null
      #method: "GET"
      #format: null
      #session: null
      #locale: null
      #defaultLocale: "en"
      -isHostValid: true
      -isForwardedValid: true
      basePath: ""
      format: "html"
    }
    
/var/www/backup/APJ-web-clinica/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 mixed
     */
    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.
     *
Arguments
  1. Request {#42
      #json: null
      #convertedFiles: null
      #userResolver: Closure($guard = null) {#475 …5}
      #routeResolver: Closure() {#463 …5}
      +attributes: ParameterBag {#44}
      +request: ParameterBag {#50}
      +query: ParameterBag {#50}
      +server: ServerBag {#46}
      +files: FileBag {#47}
      +cookies: ParameterBag {#45}
      +headers: HeaderBag {#48}
      #content: null
      #languages: null
      #charsets: null
      #encodings: null
      #acceptableContentTypes: array:1 [
        0 => "*/*"
      ]
      #pathInfo: "/iniciar-sesion"
      #requestUri: "/iniciar-sesion"
      #baseUrl: ""
      #basePath: null
      #method: "GET"
      #format: null
      #session: null
      #locale: null
      #defaultLocale: "en"
      -isHostValid: true
      -isForwardedValid: true
      basePath: ""
      format: "html"
    }
    
  2. Route {#204}
    
/var/www/backup/APJ-web-clinica/vendor/laravel/framework/src/Illuminate/Routing/Router.php
     * @return mixed
     */
    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 mixed
     */
    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)
Arguments
  1. Request {#42
      #json: null
      #convertedFiles: null
      #userResolver: Closure($guard = null) {#475 …5}
      #routeResolver: Closure() {#463 …5}
      +attributes: ParameterBag {#44}
      +request: ParameterBag {#50}
      +query: ParameterBag {#50}
      +server: ServerBag {#46}
      +files: FileBag {#47}
      +cookies: ParameterBag {#45}
      +headers: HeaderBag {#48}
      #content: null
      #languages: null
      #charsets: null
      #encodings: null
      #acceptableContentTypes: array:1 [
        0 => "*/*"
      ]
      #pathInfo: "/iniciar-sesion"
      #requestUri: "/iniciar-sesion"
      #baseUrl: ""
      #basePath: null
      #method: "GET"
      #format: null
      #session: null
      #locale: null
      #defaultLocale: "en"
      -isHostValid: true
      -isForwardedValid: true
      basePath: ""
      format: "html"
    }
    
/var/www/backup/APJ-web-clinica/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.
     *
Arguments
  1. Request {#42
      #json: null
      #convertedFiles: null
      #userResolver: Closure($guard = null) {#475 …5}
      #routeResolver: Closure() {#463 …5}
      +attributes: ParameterBag {#44}
      +request: ParameterBag {#50}
      +query: ParameterBag {#50}
      +server: ServerBag {#46}
      +files: FileBag {#47}
      +cookies: ParameterBag {#45}
      +headers: HeaderBag {#48}
      #content: null
      #languages: null
      #charsets: null
      #encodings: null
      #acceptableContentTypes: array:1 [
        0 => "*/*"
      ]
      #pathInfo: "/iniciar-sesion"
      #requestUri: "/iniciar-sesion"
      #baseUrl: ""
      #basePath: null
      #method: "GET"
      #format: null
      #session: null
      #locale: null
      #defaultLocale: "en"
      -isHostValid: true
      -isForwardedValid: true
      basePath: ""
      format: "html"
    }
    
/var/www/backup/APJ-web-clinica/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();
 
Arguments
  1. Request {#42
      #json: null
      #convertedFiles: null
      #userResolver: Closure($guard = null) {#475 …5}
      #routeResolver: Closure() {#463 …5}
      +attributes: ParameterBag {#44}
      +request: ParameterBag {#50}
      +query: ParameterBag {#50}
      +server: ServerBag {#46}
      +files: FileBag {#47}
      +cookies: ParameterBag {#45}
      +headers: HeaderBag {#48}
      #content: null
      #languages: null
      #charsets: null
      #encodings: null
      #acceptableContentTypes: array:1 [
        0 => "*/*"
      ]
      #pathInfo: "/iniciar-sesion"
      #requestUri: "/iniciar-sesion"
      #baseUrl: ""
      #basePath: null
      #method: "GET"
      #format: null
      #session: null
      #locale: null
      #defaultLocale: "en"
      -isHostValid: true
      -isForwardedValid: true
      basePath: ""
      format: "html"
    }
    
/var/www/backup/APJ-web-clinica/vendor/barryvdh/laravel-debugbar/src/Middleware/InjectDebugbar.php
     * @param  LaravelDebugbar $debugbar
     */
    public function __construct(Container $container, LaravelDebugbar $debugbar)
    {
        $this->container = $container;
        $this->debugbar = $debugbar;
        $this->except = config('debugbar.except') ?: [];
    }
 
    /**
     * Handle an incoming request.
     *
     * @param  Request  $request
     * @param  Closure  $next
     * @return mixed
     */
    public function handle($request, Closure $next)
    {
        if (!$this->debugbar->isEnabled() || $this->inExceptArray($request)) {
            return $next($request);
        }
 
        $this->debugbar->boot();
 
        try {
            /** @var \Illuminate\Http\Response $response */
            $response = $next($request);
        } catch (Exception $e) {
            $response = $this->handleException($request, $e);
        } catch (Error $error) {
            $e = new FatalThrowableError($error);
            $response = $this->handleException($request, $e);
        }
 
        // Modify the response to add the Debugbar
        $this->debugbar->modifyResponse($request, $response);
 
        return $response;
 
    }
Arguments
  1. Request {#42
      #json: null
      #convertedFiles: null
      #userResolver: Closure($guard = null) {#475 …5}
      #routeResolver: Closure() {#463 …5}
      +attributes: ParameterBag {#44}
      +request: ParameterBag {#50}
      +query: ParameterBag {#50}
      +server: ServerBag {#46}
      +files: FileBag {#47}
      +cookies: ParameterBag {#45}
      +headers: HeaderBag {#48}
      #content: null
      #languages: null
      #charsets: null
      #encodings: null
      #acceptableContentTypes: array:1 [
        0 => "*/*"
      ]
      #pathInfo: "/iniciar-sesion"
      #requestUri: "/iniciar-sesion"
      #baseUrl: ""
      #basePath: null
      #method: "GET"
      #format: null
      #session: null
      #locale: null
      #defaultLocale: "en"
      -isHostValid: true
      -isForwardedValid: true
      basePath: ""
      format: "html"
    }
    
/var/www/backup/APJ-web-clinica/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)) {
                    list($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->container->make(Request::class))
                            : $response;
            };
        };
    }
 
    /**
     * Parse full pipe string to get name and parameters.
     *
     * @param  string $pipe
     * @return array
     */
    protected function parsePipeString($pipe)
    {
        list($name, $parameters) = array_pad(explode(':', $pipe, 2), 2, []);
 
        if (is_string($parameters)) {
Arguments
  1. Request {#42
      #json: null
      #convertedFiles: null
      #userResolver: Closure($guard = null) {#475 …5}
      #routeResolver: Closure() {#463 …5}
      +attributes: ParameterBag {#44}
      +request: ParameterBag {#50}
      +query: ParameterBag {#50}
      +server: ServerBag {#46}
      +files: FileBag {#47}
      +cookies: ParameterBag {#45}
      +headers: HeaderBag {#48}
      #content: null
      #languages: null
      #charsets: null
      #encodings: null
      #acceptableContentTypes: array:1 [
        0 => "*/*"
      ]
      #pathInfo: "/iniciar-sesion"
      #requestUri: "/iniciar-sesion"
      #baseUrl: ""
      #basePath: null
      #method: "GET"
      #format: null
      #session: null
      #locale: null
      #defaultLocale: "en"
      -isHostValid: true
      -isForwardedValid: true
      basePath: ""
      format: "html"
    }
    
  2. Closure($passable) {#184 …5}
    
/var/www/backup/APJ-web-clinica/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php
                return $this->handleException($passable, new FatalThrowableError($e));
            }
        };
    }
 
    /**
     * Get a Closure that represents a slice of the application onion.
     *
     * @return \Closure
     */
    protected function carry()
    {
        return function ($stack, $pipe) {
            return function ($passable) use ($stack, $pipe) {
                try {
                    $slice = parent::carry();
 
                    $callable = $slice($stack, $pipe);
 
                    return $callable($passable);
                } catch (Exception $e) {
                    return $this->handleException($passable, $e);
                } catch (Throwable $e) {
                    return $this->handleException($passable, new FatalThrowableError($e));
                }
            };
        };
    }
 
    /**
     * Handle the given exception.
     *
     * @param  mixed  $passable
     * @param  \Exception  $e
     * @return mixed
     *
     * @throws \Exception
     */
    protected function handleException($passable, Exception $e)
    {
Arguments
  1. Request {#42
      #json: null
      #convertedFiles: null
      #userResolver: Closure($guard = null) {#475 …5}
      #routeResolver: Closure() {#463 …5}
      +attributes: ParameterBag {#44}
      +request: ParameterBag {#50}
      +query: ParameterBag {#50}
      +server: ServerBag {#46}
      +files: FileBag {#47}
      +cookies: ParameterBag {#45}
      +headers: HeaderBag {#48}
      #content: null
      #languages: null
      #charsets: null
      #encodings: null
      #acceptableContentTypes: array:1 [
        0 => "*/*"
      ]
      #pathInfo: "/iniciar-sesion"
      #requestUri: "/iniciar-sesion"
      #baseUrl: ""
      #basePath: null
      #method: "GET"
      #format: null
      #session: null
      #locale: null
      #defaultLocale: "en"
      -isHostValid: true
      -isForwardedValid: true
      basePath: ""
      format: "html"
    }
    
/var/www/backup/APJ-web-clinica/vendor/fideloper/proxy/src/TrustProxies.php
    {
        $this->config = $config;
    }
 
    /**
     * Handle an incoming request.
     *
     * @param \Illuminate\Http\Request $request
     * @param \Closure                 $next
     *
     * @throws \Symfony\Component\HttpKernel\Exception\HttpException
     *
     * @return mixed
     */
    public function handle(Request $request, Closure $next)
    {
        $request::setTrustedProxies([], $this->getTrustedHeaderNames()); // Reset trusted proxies between requests
        $this->setTrustedProxyIpAddresses($request);
 
        return $next($request);
    }
 
    /**
     * Sets the trusted proxies on the request to the value of trustedproxy.proxies
     *
     * @param \Illuminate\Http\Request $request
     */
    protected function setTrustedProxyIpAddresses(Request $request)
    {
        $trustedIps = $this->proxies ?: $this->config->get('trustedproxy.proxies');
 
        // Trust any IP address that calls us
        // `**` for backwards compatibility, but is deprecated
        if ($trustedIps === '*' || $trustedIps === '**') {
            return $this->setTrustedProxyIpAddressesToTheCallingIp($request);
        }
 
        // Support IPs addresses separated by comma
        $trustedIps = is_string($trustedIps) ? array_map('trim', explode(',', $trustedIps)) : $trustedIps;
 
Arguments
  1. Request {#42
      #json: null
      #convertedFiles: null
      #userResolver: Closure($guard = null) {#475 …5}
      #routeResolver: Closure() {#463 …5}
      +attributes: ParameterBag {#44}
      +request: ParameterBag {#50}
      +query: ParameterBag {#50}
      +server: ServerBag {#46}
      +files: FileBag {#47}
      +cookies: ParameterBag {#45}
      +headers: HeaderBag {#48}
      #content: null
      #languages: null
      #charsets: null
      #encodings: null
      #acceptableContentTypes: array:1 [
        0 => "*/*"
      ]
      #pathInfo: "/iniciar-sesion"
      #requestUri: "/iniciar-sesion"
      #baseUrl: ""
      #basePath: null
      #method: "GET"
      #format: null
      #session: null
      #locale: null
      #defaultLocale: "en"
      -isHostValid: true
      -isForwardedValid: true
      basePath: ""
      format: "html"
    }
    
/var/www/backup/APJ-web-clinica/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)) {
                    list($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->container->make(Request::class))
                            : $response;
            };
        };
    }
 
    /**
     * Parse full pipe string to get name and parameters.
     *
     * @param  string $pipe
     * @return array
     */
    protected function parsePipeString($pipe)
    {
        list($name, $parameters) = array_pad(explode(':', $pipe, 2), 2, []);
 
        if (is_string($parameters)) {
Arguments
  1. Request {#42
      #json: null
      #convertedFiles: null
      #userResolver: Closure($guard = null) {#475 …5}
      #routeResolver: Closure() {#463 …5}
      +attributes: ParameterBag {#44}
      +request: ParameterBag {#50}
      +query: ParameterBag {#50}
      +server: ServerBag {#46}
      +files: FileBag {#47}
      +cookies: ParameterBag {#45}
      +headers: HeaderBag {#48}
      #content: null
      #languages: null
      #charsets: null
      #encodings: null
      #acceptableContentTypes: array:1 [
        0 => "*/*"
      ]
      #pathInfo: "/iniciar-sesion"
      #requestUri: "/iniciar-sesion"
      #baseUrl: ""
      #basePath: null
      #method: "GET"
      #format: null
      #session: null
      #locale: null
      #defaultLocale: "en"
      -isHostValid: true
      -isForwardedValid: true
      basePath: ""
      format: "html"
    }
    
  2. Closure($passable) {#450 …5}
    
/var/www/backup/APJ-web-clinica/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php
                return $this->handleException($passable, new FatalThrowableError($e));
            }
        };
    }
 
    /**
     * Get a Closure that represents a slice of the application onion.
     *
     * @return \Closure
     */
    protected function carry()
    {
        return function ($stack, $pipe) {
            return function ($passable) use ($stack, $pipe) {
                try {
                    $slice = parent::carry();
 
                    $callable = $slice($stack, $pipe);
 
                    return $callable($passable);
                } catch (Exception $e) {
                    return $this->handleException($passable, $e);
                } catch (Throwable $e) {
                    return $this->handleException($passable, new FatalThrowableError($e));
                }
            };
        };
    }
 
    /**
     * Handle the given exception.
     *
     * @param  mixed  $passable
     * @param  \Exception  $e
     * @return mixed
     *
     * @throws \Exception
     */
    protected function handleException($passable, Exception $e)
    {
Arguments
  1. Request {#42
      #json: null
      #convertedFiles: null
      #userResolver: Closure($guard = null) {#475 …5}
      #routeResolver: Closure() {#463 …5}
      +attributes: ParameterBag {#44}
      +request: ParameterBag {#50}
      +query: ParameterBag {#50}
      +server: ServerBag {#46}
      +files: FileBag {#47}
      +cookies: ParameterBag {#45}
      +headers: HeaderBag {#48}
      #content: null
      #languages: null
      #charsets: null
      #encodings: null
      #acceptableContentTypes: array:1 [
        0 => "*/*"
      ]
      #pathInfo: "/iniciar-sesion"
      #requestUri: "/iniciar-sesion"
      #baseUrl: ""
      #basePath: null
      #method: "GET"
      #format: null
      #session: null
      #locale: null
      #defaultLocale: "en"
      -isHostValid: true
      -isForwardedValid: true
      basePath: ""
      format: "html"
    }
    
/var/www/backup/APJ-web-clinica/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php
     *
     * @var array
     */
    protected $attributes = [];
 
    /**
     * Handle an incoming request.
     *
     * @param  \Illuminate\Http\Request  $request
     * @param  \Closure  $next
     * @param  array  ...$attributes
     * @return mixed
     */
    public function handle($request, Closure $next, ...$attributes)
    {
        $this->attributes = $attributes;
 
        $this->clean($request);
 
        return $next($request);
    }
 
    /**
     * Clean the request's data.
     *
     * @param  \Illuminate\Http\Request  $request
     * @return void
     */
    protected function clean($request)
    {
        $this->cleanParameterBag($request->query);
 
        if ($request->isJson()) {
            $this->cleanParameterBag($request->json());
        } else {
            $this->cleanParameterBag($request->request);
        }
    }
 
    /**
Arguments
  1. Request {#42
      #json: null
      #convertedFiles: null
      #userResolver: Closure($guard = null) {#475 …5}
      #routeResolver: Closure() {#463 …5}
      +attributes: ParameterBag {#44}
      +request: ParameterBag {#50}
      +query: ParameterBag {#50}
      +server: ServerBag {#46}
      +files: FileBag {#47}
      +cookies: ParameterBag {#45}
      +headers: HeaderBag {#48}
      #content: null
      #languages: null
      #charsets: null
      #encodings: null
      #acceptableContentTypes: array:1 [
        0 => "*/*"
      ]
      #pathInfo: "/iniciar-sesion"
      #requestUri: "/iniciar-sesion"
      #baseUrl: ""
      #basePath: null
      #method: "GET"
      #format: null
      #session: null
      #locale: null
      #defaultLocale: "en"
      -isHostValid: true
      -isForwardedValid: true
      basePath: ""
      format: "html"
    }
    
/var/www/backup/APJ-web-clinica/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)) {
                    list($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->container->make(Request::class))
                            : $response;
            };
        };
    }
 
    /**
     * Parse full pipe string to get name and parameters.
     *
     * @param  string $pipe
     * @return array
     */
    protected function parsePipeString($pipe)
    {
        list($name, $parameters) = array_pad(explode(':', $pipe, 2), 2, []);
 
        if (is_string($parameters)) {
Arguments
  1. Request {#42
      #json: null
      #convertedFiles: null
      #userResolver: Closure($guard = null) {#475 …5}
      #routeResolver: Closure() {#463 …5}
      +attributes: ParameterBag {#44}
      +request: ParameterBag {#50}
      +query: ParameterBag {#50}
      +server: ServerBag {#46}
      +files: FileBag {#47}
      +cookies: ParameterBag {#45}
      +headers: HeaderBag {#48}
      #content: null
      #languages: null
      #charsets: null
      #encodings: null
      #acceptableContentTypes: array:1 [
        0 => "*/*"
      ]
      #pathInfo: "/iniciar-sesion"
      #requestUri: "/iniciar-sesion"
      #baseUrl: ""
      #basePath: null
      #method: "GET"
      #format: null
      #session: null
      #locale: null
      #defaultLocale: "en"
      -isHostValid: true
      -isForwardedValid: true
      basePath: ""
      format: "html"
    }
    
  2. Closure($passable) {#451 …5}
    
/var/www/backup/APJ-web-clinica/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php
                return $this->handleException($passable, new FatalThrowableError($e));
            }
        };
    }
 
    /**
     * Get a Closure that represents a slice of the application onion.
     *
     * @return \Closure
     */
    protected function carry()
    {
        return function ($stack, $pipe) {
            return function ($passable) use ($stack, $pipe) {
                try {
                    $slice = parent::carry();
 
                    $callable = $slice($stack, $pipe);
 
                    return $callable($passable);
                } catch (Exception $e) {
                    return $this->handleException($passable, $e);
                } catch (Throwable $e) {
                    return $this->handleException($passable, new FatalThrowableError($e));
                }
            };
        };
    }
 
    /**
     * Handle the given exception.
     *
     * @param  mixed  $passable
     * @param  \Exception  $e
     * @return mixed
     *
     * @throws \Exception
     */
    protected function handleException($passable, Exception $e)
    {
Arguments
  1. Request {#42
      #json: null
      #convertedFiles: null
      #userResolver: Closure($guard = null) {#475 …5}
      #routeResolver: Closure() {#463 …5}
      +attributes: ParameterBag {#44}
      +request: ParameterBag {#50}
      +query: ParameterBag {#50}
      +server: ServerBag {#46}
      +files: FileBag {#47}
      +cookies: ParameterBag {#45}
      +headers: HeaderBag {#48}
      #content: null
      #languages: null
      #charsets: null
      #encodings: null
      #acceptableContentTypes: array:1 [
        0 => "*/*"
      ]
      #pathInfo: "/iniciar-sesion"
      #requestUri: "/iniciar-sesion"
      #baseUrl: ""
      #basePath: null
      #method: "GET"
      #format: null
      #session: null
      #locale: null
      #defaultLocale: "en"
      -isHostValid: true
      -isForwardedValid: true
      basePath: ""
      format: "html"
    }
    
/var/www/backup/APJ-web-clinica/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php
     *
     * @var array
     */
    protected $attributes = [];
 
    /**
     * Handle an incoming request.
     *
     * @param  \Illuminate\Http\Request  $request
     * @param  \Closure  $next
     * @param  array  ...$attributes
     * @return mixed
     */
    public function handle($request, Closure $next, ...$attributes)
    {
        $this->attributes = $attributes;
 
        $this->clean($request);
 
        return $next($request);
    }
 
    /**
     * Clean the request's data.
     *
     * @param  \Illuminate\Http\Request  $request
     * @return void
     */
    protected function clean($request)
    {
        $this->cleanParameterBag($request->query);
 
        if ($request->isJson()) {
            $this->cleanParameterBag($request->json());
        } else {
            $this->cleanParameterBag($request->request);
        }
    }
 
    /**
Arguments
  1. Request {#42
      #json: null
      #convertedFiles: null
      #userResolver: Closure($guard = null) {#475 …5}
      #routeResolver: Closure() {#463 …5}
      +attributes: ParameterBag {#44}
      +request: ParameterBag {#50}
      +query: ParameterBag {#50}
      +server: ServerBag {#46}
      +files: FileBag {#47}
      +cookies: ParameterBag {#45}
      +headers: HeaderBag {#48}
      #content: null
      #languages: null
      #charsets: null
      #encodings: null
      #acceptableContentTypes: array:1 [
        0 => "*/*"
      ]
      #pathInfo: "/iniciar-sesion"
      #requestUri: "/iniciar-sesion"
      #baseUrl: ""
      #basePath: null
      #method: "GET"
      #format: null
      #session: null
      #locale: null
      #defaultLocale: "en"
      -isHostValid: true
      -isForwardedValid: true
      basePath: ""
      format: "html"
    }
    
/var/www/backup/APJ-web-clinica/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)) {
                    list($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->container->make(Request::class))
                            : $response;
            };
        };
    }
 
    /**
     * Parse full pipe string to get name and parameters.
     *
     * @param  string $pipe
     * @return array
     */
    protected function parsePipeString($pipe)
    {
        list($name, $parameters) = array_pad(explode(':', $pipe, 2), 2, []);
 
        if (is_string($parameters)) {
Arguments
  1. Request {#42
      #json: null
      #convertedFiles: null
      #userResolver: Closure($guard = null) {#475 …5}
      #routeResolver: Closure() {#463 …5}
      +attributes: ParameterBag {#44}
      +request: ParameterBag {#50}
      +query: ParameterBag {#50}
      +server: ServerBag {#46}
      +files: FileBag {#47}
      +cookies: ParameterBag {#45}
      +headers: HeaderBag {#48}
      #content: null
      #languages: null
      #charsets: null
      #encodings: null
      #acceptableContentTypes: array:1 [
        0 => "*/*"
      ]
      #pathInfo: "/iniciar-sesion"
      #requestUri: "/iniciar-sesion"
      #baseUrl: ""
      #basePath: null
      #method: "GET"
      #format: null
      #session: null
      #locale: null
      #defaultLocale: "en"
      -isHostValid: true
      -isForwardedValid: true
      basePath: ""
      format: "html"
    }
    
  2. Closure($passable) {#452 …5}
    
/var/www/backup/APJ-web-clinica/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php
                return $this->handleException($passable, new FatalThrowableError($e));
            }
        };
    }
 
    /**
     * Get a Closure that represents a slice of the application onion.
     *
     * @return \Closure
     */
    protected function carry()
    {
        return function ($stack, $pipe) {
            return function ($passable) use ($stack, $pipe) {
                try {
                    $slice = parent::carry();
 
                    $callable = $slice($stack, $pipe);
 
                    return $callable($passable);
                } catch (Exception $e) {
                    return $this->handleException($passable, $e);
                } catch (Throwable $e) {
                    return $this->handleException($passable, new FatalThrowableError($e));
                }
            };
        };
    }
 
    /**
     * Handle the given exception.
     *
     * @param  mixed  $passable
     * @param  \Exception  $e
     * @return mixed
     *
     * @throws \Exception
     */
    protected function handleException($passable, Exception $e)
    {
Arguments
  1. Request {#42
      #json: null
      #convertedFiles: null
      #userResolver: Closure($guard = null) {#475 …5}
      #routeResolver: Closure() {#463 …5}
      +attributes: ParameterBag {#44}
      +request: ParameterBag {#50}
      +query: ParameterBag {#50}
      +server: ServerBag {#46}
      +files: FileBag {#47}
      +cookies: ParameterBag {#45}
      +headers: HeaderBag {#48}
      #content: null
      #languages: null
      #charsets: null
      #encodings: null
      #acceptableContentTypes: array:1 [
        0 => "*/*"
      ]
      #pathInfo: "/iniciar-sesion"
      #requestUri: "/iniciar-sesion"
      #baseUrl: ""
      #basePath: null
      #method: "GET"
      #format: null
      #session: null
      #locale: null
      #defaultLocale: "en"
      -isHostValid: true
      -isForwardedValid: true
      basePath: ""
      format: "html"
    }
    
/var/www/backup/APJ-web-clinica/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php
class ValidatePostSize
{
    /**
     * Handle an incoming request.
     *
     * @param  \Illuminate\Http\Request  $request
     * @param  \Closure  $next
     * @return mixed
     *
     * @throws \Illuminate\Http\Exceptions\PostTooLargeException
     */
    public function handle($request, Closure $next)
    {
        $max = $this->getPostMaxSize();
 
        if ($max > 0 && $request->server('CONTENT_LENGTH') > $max) {
            throw new PostTooLargeException;
        }
 
        return $next($request);
    }
 
    /**
     * Determine the server 'post_max_size' as bytes.
     *
     * @return int
     */
    protected function getPostMaxSize()
    {
        if (is_numeric($postMaxSize = ini_get('post_max_size'))) {
            return (int) $postMaxSize;
        }
 
        $metric = strtoupper(substr($postMaxSize, -1));
        $postMaxSize = (int) $postMaxSize;
 
        switch ($metric) {
            case 'K':
                return $postMaxSize * 1024;
            case 'M':
Arguments
  1. Request {#42
      #json: null
      #convertedFiles: null
      #userResolver: Closure($guard = null) {#475 …5}
      #routeResolver: Closure() {#463 …5}
      +attributes: ParameterBag {#44}
      +request: ParameterBag {#50}
      +query: ParameterBag {#50}
      +server: ServerBag {#46}
      +files: FileBag {#47}
      +cookies: ParameterBag {#45}
      +headers: HeaderBag {#48}
      #content: null
      #languages: null
      #charsets: null
      #encodings: null
      #acceptableContentTypes: array:1 [
        0 => "*/*"
      ]
      #pathInfo: "/iniciar-sesion"
      #requestUri: "/iniciar-sesion"
      #baseUrl: ""
      #basePath: null
      #method: "GET"
      #format: null
      #session: null
      #locale: null
      #defaultLocale: "en"
      -isHostValid: true
      -isForwardedValid: true
      basePath: ""
      format: "html"
    }
    
/var/www/backup/APJ-web-clinica/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)) {
                    list($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->container->make(Request::class))
                            : $response;
            };
        };
    }
 
    /**
     * Parse full pipe string to get name and parameters.
     *
     * @param  string $pipe
     * @return array
     */
    protected function parsePipeString($pipe)
    {
        list($name, $parameters) = array_pad(explode(':', $pipe, 2), 2, []);
 
        if (is_string($parameters)) {
Arguments
  1. Request {#42
      #json: null
      #convertedFiles: null
      #userResolver: Closure($guard = null) {#475 …5}
      #routeResolver: Closure() {#463 …5}
      +attributes: ParameterBag {#44}
      +request: ParameterBag {#50}
      +query: ParameterBag {#50}
      +server: ServerBag {#46}
      +files: FileBag {#47}
      +cookies: ParameterBag {#45}
      +headers: HeaderBag {#48}
      #content: null
      #languages: null
      #charsets: null
      #encodings: null
      #acceptableContentTypes: array:1 [
        0 => "*/*"
      ]
      #pathInfo: "/iniciar-sesion"
      #requestUri: "/iniciar-sesion"
      #baseUrl: ""
      #basePath: null
      #method: "GET"
      #format: null
      #session: null
      #locale: null
      #defaultLocale: "en"
      -isHostValid: true
      -isForwardedValid: true
      basePath: ""
      format: "html"
    }
    
  2. Closure($passable) {#453 …5}
    
/var/www/backup/APJ-web-clinica/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php
                return $this->handleException($passable, new FatalThrowableError($e));
            }
        };
    }
 
    /**
     * Get a Closure that represents a slice of the application onion.
     *
     * @return \Closure
     */
    protected function carry()
    {
        return function ($stack, $pipe) {
            return function ($passable) use ($stack, $pipe) {
                try {
                    $slice = parent::carry();
 
                    $callable = $slice($stack, $pipe);
 
                    return $callable($passable);
                } catch (Exception $e) {
                    return $this->handleException($passable, $e);
                } catch (Throwable $e) {
                    return $this->handleException($passable, new FatalThrowableError($e));
                }
            };
        };
    }
 
    /**
     * Handle the given exception.
     *
     * @param  mixed  $passable
     * @param  \Exception  $e
     * @return mixed
     *
     * @throws \Exception
     */
    protected function handleException($passable, Exception $e)
    {
Arguments
  1. Request {#42
      #json: null
      #convertedFiles: null
      #userResolver: Closure($guard = null) {#475 …5}
      #routeResolver: Closure() {#463 …5}
      +attributes: ParameterBag {#44}
      +request: ParameterBag {#50}
      +query: ParameterBag {#50}
      +server: ServerBag {#46}
      +files: FileBag {#47}
      +cookies: ParameterBag {#45}
      +headers: HeaderBag {#48}
      #content: null
      #languages: null
      #charsets: null
      #encodings: null
      #acceptableContentTypes: array:1 [
        0 => "*/*"
      ]
      #pathInfo: "/iniciar-sesion"
      #requestUri: "/iniciar-sesion"
      #baseUrl: ""
      #basePath: null
      #method: "GET"
      #format: null
      #session: null
      #locale: null
      #defaultLocale: "en"
      -isHostValid: true
      -isForwardedValid: true
      basePath: ""
      format: "html"
    }
    
/var/www/backup/APJ-web-clinica/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/CheckForMaintenanceMode.php
     *
     * @throws \Symfony\Component\HttpKernel\Exception\HttpException
     */
    public function handle($request, Closure $next)
    {
        if ($this->app->isDownForMaintenance()) {
            $data = json_decode(file_get_contents($this->app->storagePath().'/framework/down'), true);
 
            if (isset($data['allowed']) && IpUtils::checkIp($request->ip(), (array) $data['allowed'])) {
                return $next($request);
            }
 
            if ($this->inExceptArray($request)) {
                return $next($request);
            }
 
            throw new MaintenanceModeException($data['time'], $data['retry'], $data['message']);
        }
 
        return $next($request);
    }
 
    /**
     * Determine if the request has a URI that should be accessible in maintenance mode.
     *
     * @param  \Illuminate\Http\Request  $request
     * @return bool
     */
    protected function inExceptArray($request)
    {
        foreach ($this->except as $except) {
            if ($except !== '/') {
                $except = trim($except, '/');
            }
 
            if ($request->fullUrlIs($except) || $request->is($except)) {
                return true;
            }
        }
 
Arguments
  1. Request {#42
      #json: null
      #convertedFiles: null
      #userResolver: Closure($guard = null) {#475 …5}
      #routeResolver: Closure() {#463 …5}
      +attributes: ParameterBag {#44}
      +request: ParameterBag {#50}
      +query: ParameterBag {#50}
      +server: ServerBag {#46}
      +files: FileBag {#47}
      +cookies: ParameterBag {#45}
      +headers: HeaderBag {#48}
      #content: null
      #languages: null
      #charsets: null
      #encodings: null
      #acceptableContentTypes: array:1 [
        0 => "*/*"
      ]
      #pathInfo: "/iniciar-sesion"
      #requestUri: "/iniciar-sesion"
      #baseUrl: ""
      #basePath: null
      #method: "GET"
      #format: null
      #session: null
      #locale: null
      #defaultLocale: "en"
      -isHostValid: true
      -isForwardedValid: true
      basePath: ""
      format: "html"
    }
    
/var/www/backup/APJ-web-clinica/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)) {
                    list($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->container->make(Request::class))
                            : $response;
            };
        };
    }
 
    /**
     * Parse full pipe string to get name and parameters.
     *
     * @param  string $pipe
     * @return array
     */
    protected function parsePipeString($pipe)
    {
        list($name, $parameters) = array_pad(explode(':', $pipe, 2), 2, []);
 
        if (is_string($parameters)) {
Arguments
  1. Request {#42
      #json: null
      #convertedFiles: null
      #userResolver: Closure($guard = null) {#475 …5}
      #routeResolver: Closure() {#463 …5}
      +attributes: ParameterBag {#44}
      +request: ParameterBag {#50}
      +query: ParameterBag {#50}
      +server: ServerBag {#46}
      +files: FileBag {#47}
      +cookies: ParameterBag {#45}
      +headers: HeaderBag {#48}
      #content: null
      #languages: null
      #charsets: null
      #encodings: null
      #acceptableContentTypes: array:1 [
        0 => "*/*"
      ]
      #pathInfo: "/iniciar-sesion"
      #requestUri: "/iniciar-sesion"
      #baseUrl: ""
      #basePath: null
      #method: "GET"
      #format: null
      #session: null
      #locale: null
      #defaultLocale: "en"
      -isHostValid: true
      -isForwardedValid: true
      basePath: ""
      format: "html"
    }
    
  2. Closure($passable) {#454 …5}
    
/var/www/backup/APJ-web-clinica/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php
                return $this->handleException($passable, new FatalThrowableError($e));
            }
        };
    }
 
    /**
     * Get a Closure that represents a slice of the application onion.
     *
     * @return \Closure
     */
    protected function carry()
    {
        return function ($stack, $pipe) {
            return function ($passable) use ($stack, $pipe) {
                try {
                    $slice = parent::carry();
 
                    $callable = $slice($stack, $pipe);
 
                    return $callable($passable);
                } catch (Exception $e) {
                    return $this->handleException($passable, $e);
                } catch (Throwable $e) {
                    return $this->handleException($passable, new FatalThrowableError($e));
                }
            };
        };
    }
 
    /**
     * Handle the given exception.
     *
     * @param  mixed  $passable
     * @param  \Exception  $e
     * @return mixed
     *
     * @throws \Exception
     */
    protected function handleException($passable, Exception $e)
    {
Arguments
  1. Request {#42
      #json: null
      #convertedFiles: null
      #userResolver: Closure($guard = null) {#475 …5}
      #routeResolver: Closure() {#463 …5}
      +attributes: ParameterBag {#44}
      +request: ParameterBag {#50}
      +query: ParameterBag {#50}
      +server: ServerBag {#46}
      +files: FileBag {#47}
      +cookies: ParameterBag {#45}
      +headers: HeaderBag {#48}
      #content: null
      #languages: null
      #charsets: null
      #encodings: null
      #acceptableContentTypes: array:1 [
        0 => "*/*"
      ]
      #pathInfo: "/iniciar-sesion"
      #requestUri: "/iniciar-sesion"
      #baseUrl: ""
      #basePath: null
      #method: "GET"
      #format: null
      #session: null
      #locale: null
      #defaultLocale: "en"
      -isHostValid: true
      -isForwardedValid: true
      basePath: ""
      format: "html"
    }
    
/var/www/backup/APJ-web-clinica/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);
    }
 
    /**
     * Get the final piece of the Closure onion.
     *
     * @param  \Closure  $destination
     * @return \Closure
     */
    protected function prepareDestination(Closure $destination)
    {
        return function ($passable) use ($destination) {
            return $destination($passable);
        };
    }
 
    /**
     * Get a Closure that represents a slice of the application onion.
     *
     * @return \Closure
     */
Arguments
  1. Request {#42
      #json: null
      #convertedFiles: null
      #userResolver: Closure($guard = null) {#475 …5}
      #routeResolver: Closure() {#463 …5}
      +attributes: ParameterBag {#44}
      +request: ParameterBag {#50}
      +query: ParameterBag {#50}
      +server: ServerBag {#46}
      +files: FileBag {#47}
      +cookies: ParameterBag {#45}
      +headers: HeaderBag {#48}
      #content: null
      #languages: null
      #charsets: null
      #encodings: null
      #acceptableContentTypes: array:1 [
        0 => "*/*"
      ]
      #pathInfo: "/iniciar-sesion"
      #requestUri: "/iniciar-sesion"
      #baseUrl: ""
      #basePath: null
      #method: "GET"
      #format: null
      #session: null
      #locale: null
      #defaultLocale: "en"
      -isHostValid: true
      -isForwardedValid: true
      basePath: ""
      format: "html"
    }
    
/var/www/backup/APJ-web-clinica/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php
    }
 
    /**
     * Send the given request through the middleware / router.
     *
     * @param  \Illuminate\Http\Request  $request
     * @return \Illuminate\Http\Response
     */
    protected function sendRequestThroughRouter($request)
    {
        $this->app->instance('request', $request);
 
        Facade::clearResolvedInstance('request');
 
        $this->bootstrap();
 
        return (new Pipeline($this->app))
                    ->send($request)
                    ->through($this->app->shouldSkipMiddleware() ? [] : $this->middleware)
                    ->then($this->dispatchToRouter());
    }
 
    /**
     * Bootstrap the application for HTTP requests.
     *
     * @return void
     */
    public function bootstrap()
    {
        if (! $this->app->hasBeenBootstrapped()) {
            $this->app->bootstrapWith($this->bootstrappers());
        }
    }
 
    /**
     * Get the route dispatcher callback.
     *
     * @return \Closure
     */
    protected function dispatchToRouter()
Arguments
  1. Closure($request) {#22 …4}
    
/var/www/backup/APJ-web-clinica/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php
            $router->middlewareGroup($key, $middleware);
        }
 
        foreach ($this->routeMiddleware as $key => $middleware) {
            $router->aliasMiddleware($key, $middleware);
        }
    }
 
    /**
     * Handle an incoming HTTP request.
     *
     * @param  \Illuminate\Http\Request  $request
     * @return \Illuminate\Http\Response
     */
    public function handle($request)
    {
        try {
            $request->enableHttpMethodParameterOverride();
 
            $response = $this->sendRequestThroughRouter($request);
        } catch (Exception $e) {
            $this->reportException($e);
 
            $response = $this->renderException($request, $e);
        } catch (Throwable $e) {
            $this->reportException($e = new FatalThrowableError($e));
 
            $response = $this->renderException($request, $e);
        }
 
        $this->app['events']->dispatch(
            new Events\RequestHandled($request, $response)
        );
 
        return $response;
    }
 
    /**
     * Send the given request through the middleware / router.
     *
Arguments
  1. Request {#42
      #json: null
      #convertedFiles: null
      #userResolver: Closure($guard = null) {#475 …5}
      #routeResolver: Closure() {#463 …5}
      +attributes: ParameterBag {#44}
      +request: ParameterBag {#50}
      +query: ParameterBag {#50}
      +server: ServerBag {#46}
      +files: FileBag {#47}
      +cookies: ParameterBag {#45}
      +headers: HeaderBag {#48}
      #content: null
      #languages: null
      #charsets: null
      #encodings: null
      #acceptableContentTypes: array:1 [
        0 => "*/*"
      ]
      #pathInfo: "/iniciar-sesion"
      #requestUri: "/iniciar-sesion"
      #baseUrl: ""
      #basePath: null
      #method: "GET"
      #format: null
      #session: null
      #locale: null
      #defaultLocale: "en"
      -isHostValid: true
      -isForwardedValid: true
      basePath: ""
      format: "html"
    }
    
/var/www/backup/APJ-web-clinica/public/index.php
*/
 
$app = require_once __DIR__.'/../bootstrap/app.php';
 
/*
|--------------------------------------------------------------------------
| Run The Application
|--------------------------------------------------------------------------
|
| Once we have the application, we can handle the incoming request
| through the kernel, and send the associated response back to
| the client's browser allowing them to enjoy the creative
| and wonderful application we have prepared for them.
|
*/
 
$kernel = $app->make(Illuminate\Contracts\Http\Kernel::class);
 
$response = $kernel->handle(
    $request = Illuminate\Http\Request::capture()
);
 
$response->send();
 
$kernel->terminate($request, $response);
 
Arguments
  1. Request {#42
      #json: null
      #convertedFiles: null
      #userResolver: Closure($guard = null) {#475 …5}
      #routeResolver: Closure() {#463 …5}
      +attributes: ParameterBag {#44}
      +request: ParameterBag {#50}
      +query: ParameterBag {#50}
      +server: ServerBag {#46}
      +files: FileBag {#47}
      +cookies: ParameterBag {#45}
      +headers: HeaderBag {#48}
      #content: null
      #languages: null
      #charsets: null
      #encodings: null
      #acceptableContentTypes: array:1 [
        0 => "*/*"
      ]
      #pathInfo: "/iniciar-sesion"
      #requestUri: "/iniciar-sesion"
      #baseUrl: ""
      #basePath: null
      #method: "GET"
      #format: null
      #session: null
      #locale: null
      #defaultLocale: "en"
      -isHostValid: true
      -isForwardedValid: true
      basePath: ""
      format: "html"
    }
    

Environment & details:

empty
empty
empty
empty
empty
Key Value
TEMP
"/tmp"
TMP
"/tmp"
PATH
"/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin"
HOSTNAME
""
USER
"dev1"
HOME
"/var/www/backup"
SCRIPT_NAME
"/index.php"
REQUEST_URI
"/iniciar-sesion"
QUERY_STRING
""
REQUEST_METHOD
"GET"
SERVER_PROTOCOL
"HTTP/1.1"
GATEWAY_INTERFACE
"CGI/1.1"
REDIRECT_URL
"/iniciar-sesion"
REMOTE_PORT
"16936"
SCRIPT_FILENAME
"/var/www/backup/APJ-web-clinica/public/index.php"
SERVER_ADMIN
"[email protected]"
CONTEXT_DOCUMENT_ROOT
"/var/www/backup/APJ-web-clinica/public"
CONTEXT_PREFIX
""
REQUEST_SCHEME
"https"
DOCUMENT_ROOT
"/var/www/backup/APJ-web-clinica/public"
REMOTE_ADDR
"172.70.39.141"
SERVER_PORT
"443"
SERVER_ADDR
"64.20.54.229"
SERVER_NAME
"www.clinicapj.org.pe"
SERVER_SOFTWARE
"Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips PHP/7.2.34"
SERVER_SIGNATURE
""
HTTP_CF_IPCOUNTRY
"US"
HTTP_CDN_LOOP
"cloudflare"
HTTP_CF_CONNECTING_IP
"52.91.255.225"
HTTP_REFERER
"https://www.clinicapj.org.pe/cuenta/agendar-cita/disponibilidad/48/13185/2021-09-21"
HTTP_USER_AGENT
"claudebot"
HTTP_ACCEPT
"*/*"
HTTP_CF_VISITOR
"{"scheme":"https"}"
HTTP_X_FORWARDED_PROTO
"https"
HTTP_CF_RAY
"86b6ccf5585386f4-IAD"
HTTP_X_FORWARDED_FOR
"52.91.255.225"
HTTP_ACCEPT_ENCODING
"gzip, br"
HTTP_CONNECTION
"Keep-Alive"
HTTP_HOST
"www.clinicapj.org.pe"
SSL_TLS_SNI
"www.clinicapj.org.pe"
HTTPS
"on"
UNIQUE_ID
"ZgVA2nfLxpweKYBftJIA3gAAAsI"
REDIRECT_STATUS
"200"
REDIRECT_SSL_TLS_SNI
"www.clinicapj.org.pe"
REDIRECT_HTTPS
"on"
REDIRECT_UNIQUE_ID
"ZgVA2nfLxpweKYBftJIA3gAAAsI"
FCGI_ROLE
"RESPONDER"
PHP_SELF
"/index.php"
REQUEST_TIME_FLOAT
1711620314.47
REQUEST_TIME
1711620314
APP_ENV
"prod"
APP_DEBUG
"true"
APP_KEY
"base64:FgQ6NjoVJrqwEnJv+KR3+ElmJutCr+7TFkSfIrkFe3E="
APP_TIMEZONE
"America/Lima"
APP_LOCALE
"es"
APP_URL
"https://www.clinicapj.org.pe"
DEBUGBAR_ENABLED
"false"
DB_HOST
"66.45.232.86"
DB_PORT
"3306"
DB_DATABASE
"apj_web_clinica"
DB_USERNAME
"usr_clinica"
DB_PASSWORD
"IchohT5Ig7Anae7x"
DB_SECOND_HOST
"190.12.73.236"
DB_SECOND_PORT
"51433"
DB_SECOND_DATABASE
"apj_api"
DB_SECOND_USERNAME
"usr_api"
DB_SECOND_PASSWORD
"iez3AegiuSuchuH2"
MAIL_DRIVER
"smtp"
MAIL_HOST
"mail.clinicapj.org.pe"
MAIL_PORT
"25"
MAIL_USERNAME
"[email protected]"
MAIL_PASSWORD
"x?+yGZO+Ex^y"
MAIL_ENCRYPTION
""
MAIL_FROM_ADDRESS
"[email protected]"
MAIL_FROM_NAME
"APJ"
CACHE_DRIVER
"file"
QUEUE_DRIVER
"database"
APJ_API_URL
"https://api.clinicapj.org.pe/"
Key Value
APP_ENV
"prod"
APP_DEBUG
"true"
APP_KEY
"base64:FgQ6NjoVJrqwEnJv+KR3+ElmJutCr+7TFkSfIrkFe3E="
APP_TIMEZONE
"America/Lima"
APP_LOCALE
"es"
APP_URL
"https://www.clinicapj.org.pe"
DEBUGBAR_ENABLED
"false"
DB_HOST
"66.45.232.86"
DB_PORT
"3306"
DB_DATABASE
"apj_web_clinica"
DB_USERNAME
"usr_clinica"
DB_PASSWORD
"IchohT5Ig7Anae7x"
DB_SECOND_HOST
"190.12.73.236"
DB_SECOND_PORT
"51433"
DB_SECOND_DATABASE
"apj_api"
DB_SECOND_USERNAME
"usr_api"
DB_SECOND_PASSWORD
"iez3AegiuSuchuH2"
MAIL_DRIVER
"smtp"
MAIL_HOST
"mail.clinicapj.org.pe"
MAIL_PORT
"25"
MAIL_USERNAME
"[email protected]"
MAIL_PASSWORD
"x?+yGZO+Ex^y"
MAIL_ENCRYPTION
""
MAIL_FROM_ADDRESS
"[email protected]"
MAIL_FROM_NAME
"APJ"
CACHE_DRIVER
"file"
QUEUE_DRIVER
"database"
APJ_API_URL
"https://api.clinicapj.org.pe/"
0. Whoops\Handler\PrettyPageHandler