Illuminate \ Database \ QueryException (7)
SQLSTATE[08006] [7] connection to server at "127.0.0.1", port 5432 failed: Connection refused Is the server running on that host and accepting TCP/IP connections? (SQL: select * from "users" where "robot_name" = Claudebot limit 1)
Previous exceptions
  • SQLSTATE[08006] [7] connection to server at "127.0.0.1", port 5432 failed: Connection refused Is the server running on that host and accepting TCP/IP connections? (7)
  • SQLSTATE[08006] [7] connection to server at "127.0.0.1", port 5432 failed: Connection refused Is the server running on that host and accepting TCP/IP connections? (7)
Illuminate\Database\QueryException thrown with message "SQLSTATE[08006] [7] connection to server at "127.0.0.1", port 5432 failed: Connection refused Is the server running on that host and accepting TCP/IP connections? (SQL: select * from "users" where "robot_name" = Claudebot limit 1)" Stacktrace: #66 Illuminate\Database\QueryException in /home/forge/lowcosthotels.com/vendor/laravel/framework/src/Illuminate/Database/Connection.php:664 #65 Doctrine\DBAL\Driver\PDOException in /home/forge/lowcosthotels.com/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOConnection.php:31 #64 PDOException in /home/forge/lowcosthotels.com/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOConnection.php:27 #63 PDO:__construct in /home/forge/lowcosthotels.com/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOConnection.php:27 #62 Doctrine\DBAL\Driver\PDOConnection:__construct in /home/forge/lowcosthotels.com/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php:67 #61 Illuminate\Database\Connectors\Connector:createPdoConnection in /home/forge/lowcosthotels.com/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php:46 #60 Illuminate\Database\Connectors\Connector:createConnection in /home/forge/lowcosthotels.com/vendor/laravel/framework/src/Illuminate/Database/Connectors/PostgresConnector.php:33 #59 Illuminate\Database\Connectors\PostgresConnector:connect in /home/forge/lowcosthotels.com/vendor/laravel/framework/src/Illuminate/Database/Connectors/ConnectionFactory.php:182 #58 Illuminate\Database\Connectors\ConnectionFactory:Illuminate\Database\Connectors\{closure} in /home/forge/lowcosthotels.com/vendor/laravel/framework/src/Illuminate/Database/Connection.php:918 #57 call_user_func in /home/forge/lowcosthotels.com/vendor/laravel/framework/src/Illuminate/Database/Connection.php:918 #56 Illuminate\Database\Connection:getPdo in /home/forge/lowcosthotels.com/vendor/laravel/framework/src/Illuminate/Database/Connection.php:943 #55 Illuminate\Database\Connection:getReadPdo in /home/forge/lowcosthotels.com/vendor/laravel/framework/src/Illuminate/Database/Connection.php:399 #54 Illuminate\Database\Connection:getPdoForSelect in /home/forge/lowcosthotels.com/vendor/laravel/framework/src/Illuminate/Database/Connection.php:325 #53 Illuminate\Database\Connection:Illuminate\Database\{closure} in /home/forge/lowcosthotels.com/vendor/laravel/framework/src/Illuminate/Database/Connection.php:657 #52 Illuminate\Database\Connection:runQueryCallback in /home/forge/lowcosthotels.com/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 #51 Illuminate\Database\Connection:run in /home/forge/lowcosthotels.com/vendor/laravel/framework/src/Illuminate/Database/Connection.php:333 #50 Illuminate\Database\Connection:select in /home/forge/lowcosthotels.com/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php:2095 #49 Illuminate\Database\Query\Builder:runSelect in /home/forge/lowcosthotels.com/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php:2083 #48 Illuminate\Database\Query\Builder:Illuminate\Database\Query\{closure} in /home/forge/lowcosthotels.com/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php:2569 #47 Illuminate\Database\Query\Builder:onceWithColumns in /home/forge/lowcosthotels.com/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php:2084 #46 Illuminate\Database\Query\Builder:get in /home/forge/lowcosthotels.com/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php:519 #45 Illuminate\Database\Eloquent\Builder:getModels in /home/forge/lowcosthotels.com/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php:503 #44 Illuminate\Database\Eloquent\Builder:get in /home/forge/lowcosthotels.com/vendor/laravel/framework/src/Illuminate/Database/Concerns/BuildsQueries.php:77 #43 Illuminate\Database\Eloquent\Builder:first in /home/forge/lowcosthotels.com/app/Http/Middleware/StartSession.php:167 #42 App\Http\Middleware\StartSession:handle in /home/forge/lowcosthotels.com/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:163 #41 Illuminate\Pipeline\Pipeline:Illuminate\Pipeline\{closure} in /home/forge/lowcosthotels.com/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php:53 #40 Illuminate\Routing\Pipeline:Illuminate\Routing\{closure} in /home/forge/lowcosthotels.com/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php:41 #39 Illuminate\Routing\Middleware\SubstituteBindings:handle in /home/forge/lowcosthotels.com/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:163 #38 Illuminate\Pipeline\Pipeline:Illuminate\Pipeline\{closure} in /home/forge/lowcosthotels.com/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php:53 #37 Illuminate\Routing\Pipeline:Illuminate\Routing\{closure} in /home/forge/lowcosthotels.com/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php:75 #36 Illuminate\Foundation\Http\Middleware\VerifyCsrfToken:handle in /home/forge/lowcosthotels.com/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:163 #35 Illuminate\Pipeline\Pipeline:Illuminate\Pipeline\{closure} in /home/forge/lowcosthotels.com/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php:53 #34 Illuminate\Routing\Pipeline:Illuminate\Routing\{closure} in /home/forge/lowcosthotels.com/vendor/laravel/framework/src/Illuminate/View/Middleware/ShareErrorsFromSession.php:49 #33 Illuminate\View\Middleware\ShareErrorsFromSession:handle in /home/forge/lowcosthotels.com/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:163 #32 Illuminate\Pipeline\Pipeline:Illuminate\Pipeline\{closure} in /home/forge/lowcosthotels.com/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php:53 #31 Illuminate\Routing\Pipeline:Illuminate\Routing\{closure} in /home/forge/lowcosthotels.com/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php:63 #30 Illuminate\Session\Middleware\StartSession:handle in /home/forge/lowcosthotels.com/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:163 #29 Illuminate\Pipeline\Pipeline:Illuminate\Pipeline\{closure} in /home/forge/lowcosthotels.com/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php:53 #28 Illuminate\Routing\Pipeline:Illuminate\Routing\{closure} in /home/forge/lowcosthotels.com/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php:37 #27 Illuminate\Cookie\Middleware\AddQueuedCookiesToResponse:handle in /home/forge/lowcosthotels.com/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:163 #26 Illuminate\Pipeline\Pipeline:Illuminate\Pipeline\{closure} in /home/forge/lowcosthotels.com/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php:53 #25 Illuminate\Routing\Pipeline:Illuminate\Routing\{closure} in /home/forge/lowcosthotels.com/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php:66 #24 Illuminate\Cookie\Middleware\EncryptCookies:handle in /home/forge/lowcosthotels.com/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:163 #23 Illuminate\Pipeline\Pipeline:Illuminate\Pipeline\{closure} in /home/forge/lowcosthotels.com/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php:53 #22 Illuminate\Routing\Pipeline:Illuminate\Routing\{closure} in /home/forge/lowcosthotels.com/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:104 #21 Illuminate\Pipeline\Pipeline:then in /home/forge/lowcosthotels.com/vendor/laravel/framework/src/Illuminate/Routing/Router.php:684 #20 Illuminate\Routing\Router:runRouteWithinStack in /home/forge/lowcosthotels.com/vendor/laravel/framework/src/Illuminate/Routing/Router.php:659 #19 Illuminate\Routing\Router:runRoute in /home/forge/lowcosthotels.com/vendor/laravel/framework/src/Illuminate/Routing/Router.php:625 #18 Illuminate\Routing\Router:dispatchToRoute in /home/forge/lowcosthotels.com/vendor/laravel/framework/src/Illuminate/Routing/Router.php:614 #17 Illuminate\Routing\Router:dispatch in /home/forge/lowcosthotels.com/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php:176 #16 Illuminate\Foundation\Http\Kernel:Illuminate\Foundation\Http\{closure} in /home/forge/lowcosthotels.com/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php:30 #15 Illuminate\Routing\Pipeline:Illuminate\Routing\{closure} in /home/forge/lowcosthotels.com/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php:31 #14 Illuminate\Foundation\Http\Middleware\TransformsRequest:handle in /home/forge/lowcosthotels.com/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:163 #13 Illuminate\Pipeline\Pipeline:Illuminate\Pipeline\{closure} in /home/forge/lowcosthotels.com/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php:53 #12 Illuminate\Routing\Pipeline:Illuminate\Routing\{closure} in /home/forge/lowcosthotels.com/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php:31 #11 Illuminate\Foundation\Http\Middleware\TransformsRequest:handle in /home/forge/lowcosthotels.com/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:163 #10 Illuminate\Pipeline\Pipeline:Illuminate\Pipeline\{closure} in /home/forge/lowcosthotels.com/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php:53 #9 Illuminate\Routing\Pipeline:Illuminate\Routing\{closure} in /home/forge/lowcosthotels.com/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php:27 #8 Illuminate\Foundation\Http\Middleware\ValidatePostSize:handle in /home/forge/lowcosthotels.com/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:163 #7 Illuminate\Pipeline\Pipeline:Illuminate\Pipeline\{closure} in /home/forge/lowcosthotels.com/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php:53 #6 Illuminate\Routing\Pipeline:Illuminate\Routing\{closure} in /home/forge/lowcosthotels.com/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/CheckForMaintenanceMode.php:62 #5 Illuminate\Foundation\Http\Middleware\CheckForMaintenanceMode:handle in /home/forge/lowcosthotels.com/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:163 #4 Illuminate\Pipeline\Pipeline:Illuminate\Pipeline\{closure} in /home/forge/lowcosthotels.com/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php:53 #3 Illuminate\Routing\Pipeline:Illuminate\Routing\{closure} in /home/forge/lowcosthotels.com/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:104 #2 Illuminate\Pipeline\Pipeline:then in /home/forge/lowcosthotels.com/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php:151 #1 Illuminate\Foundation\Http\Kernel:sendRequestThroughRouter in /home/forge/lowcosthotels.com/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php:116 #0 Illuminate\Foundation\Http\Kernel:handle in /home/forge/lowcosthotels.com/public/index.php:54
66
Illuminate
\
Database
\
QueryException
/
vendor
/
laravel
/
framework
/
src
/
Illuminate
/
Database
/
Connection.php
664
65
Doctrine
\
DBAL
\
Driver
\
PDOException
/
vendor
/
doctrine
/
dbal
/
lib
/
Doctrine
/
DBAL
/
Driver
/
PDOConnection.php
31
64
PDOException
/
vendor
/
doctrine
/
dbal
/
lib
/
Doctrine
/
DBAL
/
Driver
/
PDOConnection.php
27
63
PDO
__construct
/
vendor
/
doctrine
/
dbal
/
lib
/
Doctrine
/
DBAL
/
Driver
/
PDOConnection.php
27
62
Doctrine
\
DBAL
\
Driver
\
PDOConnection
__construct
/
vendor
/
laravel
/
framework
/
src
/
Illuminate
/
Database
/
Connectors
/
Connector.php
67
61
Illuminate
\
Database
\
Connectors
\
Connector
createPdoConnection
/
vendor
/
laravel
/
framework
/
src
/
Illuminate
/
Database
/
Connectors
/
Connector.php
46
60
Illuminate
\
Database
\
Connectors
\
Connector
createConnection
/
vendor
/
laravel
/
framework
/
src
/
Illuminate
/
Database
/
Connectors
/
PostgresConnector.php
33
59
Illuminate
\
Database
\
Connectors
\
PostgresConnector
connect
/
vendor
/
laravel
/
framework
/
src
/
Illuminate
/
Database
/
Connectors
/
ConnectionFactory.php
182
58
Illuminate
\
Database
\
Connectors
\
ConnectionFactory
Illuminate
\
Database
\
Connectors
\
{closure}
/
vendor
/
laravel
/
framework
/
src
/
Illuminate
/
Database
/
Connection.php
918
57
call_user_func
/
vendor
/
laravel
/
framework
/
src
/
Illuminate
/
Database
/
Connection.php
918
56
Illuminate
\
Database
\
Connection
getPdo
/
vendor
/
laravel
/
framework
/
src
/
Illuminate
/
Database
/
Connection.php
943
55
Illuminate
\
Database
\
Connection
getReadPdo
/
vendor
/
laravel
/
framework
/
src
/
Illuminate
/
Database
/
Connection.php
399
54
Illuminate
\
Database
\
Connection
getPdoForSelect
/
vendor
/
laravel
/
framework
/
src
/
Illuminate
/
Database
/
Connection.php
325
53
Illuminate
\
Database
\
Connection
Illuminate
\
Database
\
{closure}
/
vendor
/
laravel
/
framework
/
src
/
Illuminate
/
Database
/
Connection.php
657
52
Illuminate
\
Database
\
Connection
runQueryCallback
/
vendor
/
laravel
/
framework
/
src
/
Illuminate
/
Database
/
Connection.php
624
51
Illuminate
\
Database
\
Connection
run
/
vendor
/
laravel
/
framework
/
src
/
Illuminate
/
Database
/
Connection.php
333
50
Illuminate
\
Database
\
Connection
select
/
vendor
/
laravel
/
framework
/
src
/
Illuminate
/
Database
/
Query
/
Builder.php
2095
49
Illuminate
\
Database
\
Query
\
Builder
runSelect
/
vendor
/
laravel
/
framework
/
src
/
Illuminate
/
Database
/
Query
/
Builder.php
2083
48
Illuminate
\
Database
\
Query
\
Builder
Illuminate
\
Database
\
Query
\
{closure}
/
vendor
/
laravel
/
framework
/
src
/
Illuminate
/
Database
/
Query
/
Builder.php
2569
47
Illuminate
\
Database
\
Query
\
Builder
onceWithColumns
/
vendor
/
laravel
/
framework
/
src
/
Illuminate
/
Database
/
Query
/
Builder.php
2084
46
Illuminate
\
Database
\
Query
\
Builder
get
/
vendor
/
laravel
/
framework
/
src
/
Illuminate
/
Database
/
Eloquent
/
Builder.php
519
45
Illuminate
\
Database
\
Eloquent
\
Builder
getModels
/
vendor
/
laravel
/
framework
/
src
/
Illuminate
/
Database
/
Eloquent
/
Builder.php
503
44
Illuminate
\
Database
\
Eloquent
\
Builder
get
/
vendor
/
laravel
/
framework
/
src
/
Illuminate
/
Database
/
Concerns
/
BuildsQueries.php
77
43
Illuminate
\
Database
\
Eloquent
\
Builder
first
/
app
/
Http
/
Middleware
/
StartSession.php
167
42
App
\
Http
\
Middleware
\
StartSession
handle
/
vendor
/
laravel
/
framework
/
src
/
Illuminate
/
Pipeline
/
Pipeline.php
163
41
Illuminate
\
Pipeline
\
Pipeline
Illuminate
\
Pipeline
\
{closure}
/
vendor
/
laravel
/
framework
/
src
/
Illuminate
/
Routing
/
Pipeline.php
53
40
Illuminate
\
Routing
\
Pipeline
Illuminate
\
Routing
\
{closure}
/
vendor
/
laravel
/
framework
/
src
/
Illuminate
/
Routing
/
Middleware
/
SubstituteBindings.php
41
39
Illuminate
\
Routing
\
Middleware
\
SubstituteBindings
handle
/
vendor
/
laravel
/
framework
/
src
/
Illuminate
/
Pipeline
/
Pipeline.php
163
38
Illuminate
\
Pipeline
\
Pipeline
Illuminate
\
Pipeline
\
{closure}
/
vendor
/
laravel
/
framework
/
src
/
Illuminate
/
Routing
/
Pipeline.php
53
37
Illuminate
\
Routing
\
Pipeline
Illuminate
\
Routing
\
{closure}
/
vendor
/
laravel
/
framework
/
src
/
Illuminate
/
Foundation
/
Http
/
Middleware
/
VerifyCsrfToken.php
75
36
Illuminate
\
Foundation
\
Http
\
Middleware
\
VerifyCsrfToken
handle
/
vendor
/
laravel
/
framework
/
src
/
Illuminate
/
Pipeline
/
Pipeline.php
163
35
Illuminate
\
Pipeline
\
Pipeline
Illuminate
\
Pipeline
\
{closure}
/
vendor
/
laravel
/
framework
/
src
/
Illuminate
/
Routing
/
Pipeline.php
53
34
Illuminate
\
Routing
\
Pipeline
Illuminate
\
Routing
\
{closure}
/
vendor
/
laravel
/
framework
/
src
/
Illuminate
/
View
/
Middleware
/
ShareErrorsFromSession.php
49
33
Illuminate
\
View
\
Middleware
\
ShareErrorsFromSession
handle
/
vendor
/
laravel
/
framework
/
src
/
Illuminate
/
Pipeline
/
Pipeline.php
163
32
Illuminate
\
Pipeline
\
Pipeline
Illuminate
\
Pipeline
\
{closure}
/
vendor
/
laravel
/
framework
/
src
/
Illuminate
/
Routing
/
Pipeline.php
53
31
Illuminate
\
Routing
\
Pipeline
Illuminate
\
Routing
\
{closure}
/
vendor
/
laravel
/
framework
/
src
/
Illuminate
/
Session
/
Middleware
/
StartSession.php
63
30
Illuminate
\
Session
\
Middleware
\
StartSession
handle
/
vendor
/
laravel
/
framework
/
src
/
Illuminate
/
Pipeline
/
Pipeline.php
163
29
Illuminate
\
Pipeline
\
Pipeline
Illuminate
\
Pipeline
\
{closure}
/
vendor
/
laravel
/
framework
/
src
/
Illuminate
/
Routing
/
Pipeline.php
53
28
Illuminate
\
Routing
\
Pipeline
Illuminate
\
Routing
\
{closure}
/
vendor
/
laravel
/
framework
/
src
/
Illuminate
/
Cookie
/
Middleware
/
AddQueuedCookiesToResponse.php
37
27
Illuminate
\
Cookie
\
Middleware
\
AddQueuedCookiesToResponse
handle
/
vendor
/
laravel
/
framework
/
src
/
Illuminate
/
Pipeline
/
Pipeline.php
163
26
Illuminate
\
Pipeline
\
Pipeline
Illuminate
\
Pipeline
\
{closure}
/
vendor
/
laravel
/
framework
/
src
/
Illuminate
/
Routing
/
Pipeline.php
53
25
Illuminate
\
Routing
\
Pipeline
Illuminate
\
Routing
\
{closure}
/
vendor
/
laravel
/
framework
/
src
/
Illuminate
/
Cookie
/
Middleware
/
EncryptCookies.php
66
24
Illuminate
\
Cookie
\
Middleware
\
EncryptCookies
handle
/
vendor
/
laravel
/
framework
/
src
/
Illuminate
/
Pipeline
/
Pipeline.php
163
23
Illuminate
\
Pipeline
\
Pipeline
Illuminate
\
Pipeline
\
{closure}
/
vendor
/
laravel
/
framework
/
src
/
Illuminate
/
Routing
/
Pipeline.php
53
22
Illuminate
\
Routing
\
Pipeline
Illuminate
\
Routing
\
{closure}
/
vendor
/
laravel
/
framework
/
src
/
Illuminate
/
Pipeline
/
Pipeline.php
104
21
Illuminate
\
Pipeline
\
Pipeline
then
/
vendor
/
laravel
/
framework
/
src
/
Illuminate
/
Routing
/
Router.php
684
20
Illuminate
\
Routing
\
Router
runRouteWithinStack
/
vendor
/
laravel
/
framework
/
src
/
Illuminate
/
Routing
/
Router.php
659
19
Illuminate
\
Routing
\
Router
runRoute
/
vendor
/
laravel
/
framework
/
src
/
Illuminate
/
Routing
/
Router.php
625
18
Illuminate
\
Routing
\
Router
dispatchToRoute
/
vendor
/
laravel
/
framework
/
src
/
Illuminate
/
Routing
/
Router.php
614
17
Illuminate
\
Routing
\
Router
dispatch
/
vendor
/
laravel
/
framework
/
src
/
Illuminate
/
Foundation
/
Http
/
Kernel.php
176
16
Illuminate
\
Foundation
\
Http
\
Kernel
Illuminate
\
Foundation
\
Http
\
{closure}
/
vendor
/
laravel
/
framework
/
src
/
Illuminate
/
Routing
/
Pipeline.php
30
15
Illuminate
\
Routing
\
Pipeline
Illuminate
\
Routing
\
{closure}
/
vendor
/
laravel
/
framework
/
src
/
Illuminate
/
Foundation
/
Http
/
Middleware
/
TransformsRequest.php
31
14
Illuminate
\
Foundation
\
Http
\
Middleware
\
TransformsRequest
handle
/
vendor
/
laravel
/
framework
/
src
/
Illuminate
/
Pipeline
/
Pipeline.php
163
13
Illuminate
\
Pipeline
\
Pipeline
Illuminate
\
Pipeline
\
{closure}
/
vendor
/
laravel
/
framework
/
src
/
Illuminate
/
Routing
/
Pipeline.php
53
12
Illuminate
\
Routing
\
Pipeline
Illuminate
\
Routing
\
{closure}
/
vendor
/
laravel
/
framework
/
src
/
Illuminate
/
Foundation
/
Http
/
Middleware
/
TransformsRequest.php
31
11
Illuminate
\
Foundation
\
Http
\
Middleware
\
TransformsRequest
handle
/
vendor
/
laravel
/
framework
/
src
/
Illuminate
/
Pipeline
/
Pipeline.php
163
10
Illuminate
\
Pipeline
\
Pipeline
Illuminate
\
Pipeline
\
{closure}
/
vendor
/
laravel
/
framework
/
src
/
Illuminate
/
Routing
/
Pipeline.php
53
9
Illuminate
\
Routing
\
Pipeline
Illuminate
\
Routing
\
{closure}
/
vendor
/
laravel
/
framework
/
src
/
Illuminate
/
Foundation
/
Http
/
Middleware
/
ValidatePostSize.php
27
8
Illuminate
\
Foundation
\
Http
\
Middleware
\
ValidatePostSize
handle
/
vendor
/
laravel
/
framework
/
src
/
Illuminate
/
Pipeline
/
Pipeline.php
163
7
Illuminate
\
Pipeline
\
Pipeline
Illuminate
\
Pipeline
\
{closure}
/
vendor
/
laravel
/
framework
/
src
/
Illuminate
/
Routing
/
Pipeline.php
53
6
Illuminate
\
Routing
\
Pipeline
Illuminate
\
Routing
\
{closure}
/
vendor
/
laravel
/
framework
/
src
/
Illuminate
/
Foundation
/
Http
/
Middleware
/
CheckForMaintenanceMode.php
62
5
Illuminate
\
Foundation
\
Http
\
Middleware
\
CheckForMaintenanceMode
handle
/
vendor
/
laravel
/
framework
/
src
/
Illuminate
/
Pipeline
/
Pipeline.php
163
4
Illuminate
\
Pipeline
\
Pipeline
Illuminate
\
Pipeline
\
{closure}
/
vendor
/
laravel
/
framework
/
src
/
Illuminate
/
Routing
/
Pipeline.php
53
3
Illuminate
\
Routing
\
Pipeline
Illuminate
\
Routing
\
{closure}
/
vendor
/
laravel
/
framework
/
src
/
Illuminate
/
Pipeline
/
Pipeline.php
104
2
Illuminate
\
Pipeline
\
Pipeline
then
/
vendor
/
laravel
/
framework
/
src
/
Illuminate
/
Foundation
/
Http
/
Kernel.php
151
1
Illuminate
\
Foundation
\
Http
\
Kernel
sendRequestThroughRouter
/
vendor
/
laravel
/
framework
/
src
/
Illuminate
/
Foundation
/
Http
/
Kernel.php
116
0
Illuminate
\
Foundation
\
Http
\
Kernel
handle
/
public
/
index.php
54
/
home
/
forge
/
lowcosthotels.com
/
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[08006] [7] connection to server at "127.0.0.1", port 5432 failed: Connection refused\n
    \tIs the server running on that host and accepting TCP/IP connections? (SQL: select * from "users" where "robot_name" = Claudebot limit 1)
    """
    
/
home
/
forge
/
lowcosthotels.com
/
vendor
/
doctrine
/
dbal
/
lib
/
Doctrine
/
DBAL
/
Driver
/
PDOConnection.php
 * Used by all PDO-based drivers.
 */
class PDOConnection extends PDO implements Connection, ServerInfoAwareConnection
{
    /**
     * @param string       $dsn
     * @param string|null  $user
     * @param string|null  $password
     * @param mixed[]|null $options
     *
     * @throws PDOException In case of an error.
     */
    public function __construct($dsn, $user = null, $password = null, ?array $options = null)
    {
        try {
            parent::__construct($dsn, $user, $password, $options);
            $this->setAttribute(PDO::ATTR_STATEMENT_CLASS, [PDOStatement::class, []]);
            $this->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
        } catch (\PDOException $exception) {
            throw new PDOException($exception);
        }
    }
 
    /**
     * {@inheritdoc}
     */
    public function exec($statement)
    {
        try {
            return parent::exec($statement);
        } catch (\PDOException $exception) {
            throw new PDOException($exception);
        }
    }
 
    /**
     * {@inheritdoc}
     */
    public function getServerVersion()
    {
Arguments
  1. """
    SQLSTATE[08006] [7] connection to server at "127.0.0.1", port 5432 failed: Connection refused\n
    \tIs the server running on that host and accepting TCP/IP connections?
    """
    
Exception message: SQLSTATE[08006] [7] connection to server at "127.0.0.1", port 5432 failed: Connection refused Is the server running on that host and accepting TCP/IP connections?
/
home
/
forge
/
lowcosthotels.com
/
vendor
/
doctrine
/
dbal
/
lib
/
Doctrine
/
DBAL
/
Driver
/
PDOConnection.php
use function func_get_args;
 
/**
 * PDO implementation of the Connection interface.
 * Used by all PDO-based drivers.
 */
class PDOConnection extends PDO implements Connection, ServerInfoAwareConnection
{
    /**
     * @param string       $dsn
     * @param string|null  $user
     * @param string|null  $password
     * @param mixed[]|null $options
     *
     * @throws PDOException In case of an error.
     */
    public function __construct($dsn, $user = null, $password = null, ?array $options = null)
    {
        try {
            parent::__construct($dsn, $user, $password, $options);
            $this->setAttribute(PDO::ATTR_STATEMENT_CLASS, [PDOStatement::class, []]);
            $this->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
        } catch (\PDOException $exception) {
            throw new PDOException($exception);
        }
    }
 
    /**
     * {@inheritdoc}
     */
    public function exec($statement)
    {
        try {
            return parent::exec($statement);
        } catch (\PDOException $exception) {
            throw new PDOException($exception);
        }
    }
 
    /**
Arguments
  1. """
    SQLSTATE[08006] [7] connection to server at "127.0.0.1", port 5432 failed: Connection refused\n
    \tIs the server running on that host and accepting TCP/IP connections?
    """
    
Exception message: SQLSTATE[08006] [7] connection to server at "127.0.0.1", port 5432 failed: Connection refused Is the server running on that host and accepting TCP/IP connections?
/
home
/
forge
/
lowcosthotels.com
/
vendor
/
doctrine
/
dbal
/
lib
/
Doctrine
/
DBAL
/
Driver
/
PDOConnection.php
use function func_get_args;
 
/**
 * PDO implementation of the Connection interface.
 * Used by all PDO-based drivers.
 */
class PDOConnection extends PDO implements Connection, ServerInfoAwareConnection
{
    /**
     * @param string       $dsn
     * @param string|null  $user
     * @param string|null  $password
     * @param mixed[]|null $options
     *
     * @throws PDOException In case of an error.
     */
    public function __construct($dsn, $user = null, $password = null, ?array $options = null)
    {
        try {
            parent::__construct($dsn, $user, $password, $options);
            $this->setAttribute(PDO::ATTR_STATEMENT_CLASS, [PDOStatement::class, []]);
            $this->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
        } catch (\PDOException $exception) {
            throw new PDOException($exception);
        }
    }
 
    /**
     * {@inheritdoc}
     */
    public function exec($statement)
    {
        try {
            return parent::exec($statement);
        } catch (\PDOException $exception) {
            throw new PDOException($exception);
        }
    }
 
    /**
Arguments
  1. "pgsql:host=127.0.0.1;dbname=lowcosthotels;port=5432;sslmode=prefer"
    
  2. "forge"
    
  3. "0I7kQGufXlZawCXknhE8"
    
  4. array:4 [
      8 => 0
      3 => 2
      11 => 0
      17 => false
    ]
    
/
home
/
forge
/
lowcosthotels.com
/
vendor
/
laravel
/
framework
/
src
/
Illuminate
/
Database
/
Connectors
/
Connector.php
        } catch (Exception $e) {
            return $this->tryAgainIfCausedByLostConnection(
                $e, $dsn, $username, $password, $options
            );
        }
    }
 
    /**
     * Create a new PDO connection instance.
     *
     * @param  string  $dsn
     * @param  string  $username
     * @param  string  $password
     * @param  array  $options
     * @return \PDO
     */
    protected function createPdoConnection($dsn, $username, $password, $options)
    {
        if (class_exists(PDOConnection::class) && ! $this->isPersistentConnection($options)) {
            return new PDOConnection($dsn, $username, $password, $options);
        }
 
        return new PDO($dsn, $username, $password, $options);
    }
 
    /**
     * Determine if the connection is persistent.
     *
     * @param  array  $options
     * @return bool
     */
    protected function isPersistentConnection($options)
    {
        return isset($options[PDO::ATTR_PERSISTENT]) &&
               $options[PDO::ATTR_PERSISTENT];
    }
 
    /**
     * Handle an exception that occurred during connect execution.
     *
Arguments
  1. "pgsql:host=127.0.0.1;dbname=lowcosthotels;port=5432;sslmode=prefer"
    
  2. "forge"
    
  3. "0I7kQGufXlZawCXknhE8"
    
  4. array:4 [
      8 => 0
      3 => 2
      11 => 0
      17 => false
    ]
    
/
home
/
forge
/
lowcosthotels.com
/
vendor
/
laravel
/
framework
/
src
/
Illuminate
/
Database
/
Connectors
/
Connector.php
 
    /**
     * Create a new PDO connection.
     *
     * @param  string  $dsn
     * @param  array   $config
     * @param  array   $options
     * @return \PDO
     *
     * @throws \Exception
     */
    public function createConnection($dsn, array $config, array $options)
    {
        [$username, $password] = [
            $config['username'] ?? null, $config['password'] ?? null,
        ];
 
        try {
            return $this->createPdoConnection(
                $dsn, $username, $password, $options
            );
        } catch (Exception $e) {
            return $this->tryAgainIfCausedByLostConnection(
                $e, $dsn, $username, $password, $options
            );
        }
    }
 
    /**
     * Create a new PDO connection instance.
     *
     * @param  string  $dsn
     * @param  string  $username
     * @param  string  $password
     * @param  array  $options
     * @return \PDO
     */
    protected function createPdoConnection($dsn, $username, $password, $options)
    {
        if (class_exists(PDOConnection::class) && ! $this->isPersistentConnection($options)) {
Arguments
  1. "pgsql:host=127.0.0.1;dbname=lowcosthotels;port=5432;sslmode=prefer"
    
  2. "forge"
    
  3. "0I7kQGufXlZawCXknhE8"
    
  4. array:4 [
      8 => 0
      3 => 2
      11 => 0
      17 => false
    ]
    
/
home
/
forge
/
lowcosthotels.com
/
vendor
/
laravel
/
framework
/
src
/
Illuminate
/
Database
/
Connectors
/
PostgresConnector.php
    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)
    {
        // First we'll create the basic DSN and connection instance connecting to the
        // using the configuration option specified by the developer. We will also
        // set the default character set on the connections to UTF-8 by default.
        $connection = $this->createConnection(
            $this->getDsn($config), $config, $this->getOptions($config)
        );
 
        $this->configureEncoding($connection, $config);
 
        // Next, we will check to see if a timezone has been specified in this config
        // and if it has we will issue a statement to modify the timezone with the
        // database. Setting this DB timezone is an optional configuration item.
        $this->configureTimezone($connection, $config);
 
        $this->configureSchema($connection, $config);
 
        // Postgres allows an application_name to be set by the user and this name is
        // used to when monitoring the application with pg_stat_activity. So we'll
        // determine if the option has been specified and run a statement if so.
        $this->configureApplicationName($connection, $config);
 
        return $connection;
    }
 
    /**
Arguments
  1. "pgsql:host=127.0.0.1;dbname=lowcosthotels;port=5432;sslmode=prefer"
    
  2. array:11 [
      "driver" => "pgsql"
      "host" => "127.0.0.1"
      "port" => "5432"
      "database" => "lowcosthotels"
      "username" => "forge"
      "password" => "0I7kQGufXlZawCXknhE8"
      "charset" => "utf8"
      "prefix" => ""
      "schema" => "public"
      "sslmode" => "prefer"
      "name" => "app_db"
    ]
    
  3. array:4 [
      8 => 0
      3 => 2
      11 => 0
      17 => false
    ]
    
/
home
/
forge
/
lowcosthotels.com
/
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:11 [
      "driver" => "pgsql"
      "host" => "127.0.0.1"
      "port" => "5432"
      "database" => "lowcosthotels"
      "username" => "forge"
      "password" => "0I7kQGufXlZawCXknhE8"
      "charset" => "utf8"
      "prefix" => ""
      "schema" => "public"
      "sslmode" => "prefer"
      "name" => "app_db"
    ]
    
/
home
/
forge
/
lowcosthotels.com
/
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();
        }
 
/
home
/
forge
/
lowcosthotels.com
/
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() {#508 …5}
    
/
home
/
forge
/
lowcosthotels.com
/
vendor
/
laravel
/
framework
/
src
/
Illuminate
/
Database
/
Connection.php
    /**
     * Get the current PDO connection used for reading.
     *
     * @return \PDO
     */
    public function getReadPdo()
    {
        if ($this->transactions > 0) {
            return $this->getPdo();
        }
 
        if ($this->recordsModified && $this->getConfig('sticky')) {
            return $this->getPdo();
        }
 
        if ($this->readPdo instanceof Closure) {
            return $this->readPdo = call_user_func($this->readPdo);
        }
 
        return $this->readPdo ?: $this->getPdo();
    }
 
    /**
     * Set the PDO connection.
     *
     * @param  \PDO|\Closure|null  $pdo
     * @return $this
     */
    public function setPdo($pdo)
    {
        $this->transactions = 0;
 
        $this->pdo = $pdo;
 
        return $this;
    }
 
    /**
     * Set the PDO connection used for reading.
     *
/
home
/
forge
/
lowcosthotels.com
/
vendor
/
laravel
/
framework
/
src
/
Illuminate
/
Database
/
Connection.php
    protected function prepared(PDOStatement $statement)
    {
        $statement->setFetchMode($this->fetchMode);
 
        $this->event(new Events\StatementPrepared(
            $this, $statement
        ));
 
        return $statement;
    }
 
    /**
     * Get the PDO connection to use for a select query.
     *
     * @param  bool  $useReadPdo
     * @return \PDO
     */
    protected function getPdoForSelect($useReadPdo = true)
    {
        return $useReadPdo ? $this->getReadPdo() : $this->getPdo();
    }
 
    /**
     * Run an insert statement against the database.
     *
     * @param  string  $query
     * @param  array   $bindings
     * @return bool
     */
    public function insert($query, $bindings = [])
    {
        return $this->statement($query, $bindings);
    }
 
    /**
     * Run an update statement against the database.
     *
     * @param  string  $query
     * @param  array   $bindings
     * @return int
/
home
/
forge
/
lowcosthotels.com
/
vendor
/
laravel
/
framework
/
src
/
Illuminate
/
Database
/
Connection.php
 
    /**
     * Run a select statement against the database.
     *
     * @param  string  $query
     * @param  array  $bindings
     * @param  bool  $useReadPdo
     * @return array
     */
    public function select($query, $bindings = [], $useReadPdo = true)
    {
        return $this->run($query, $bindings, function ($query, $bindings) use ($useReadPdo) {
            if ($this->pretending()) {
                return [];
            }
 
            // For select statements, we'll simply execute the query and return an array
            // of the database result set. Each element in the array will be a single
            // row from the database table, and will either be an array or objects.
            $statement = $this->prepared($this->getPdoForSelect($useReadPdo)
                              ->prepare($query));
 
            $this->bindValues($statement, $this->prepareBindings($bindings));
 
            $statement->execute();
 
            return $statement->fetchAll();
        });
    }
 
    /**
     * Run a select statement against the database and returns a generator.
     *
     * @param  string  $query
     * @param  array  $bindings
     * @param  bool  $useReadPdo
     * @return \Generator
     */
    public function cursor($query, $bindings = [], $useReadPdo = true)
    {
Arguments
  1. true
    
/
home
/
forge
/
lowcosthotels.com
/
vendor
/
laravel
/
framework
/
src
/
Illuminate
/
Database
/
Connection.php
        return $result;
    }
 
    /**
     * Run a SQL statement.
     *
     * @param  string    $query
     * @param  array     $bindings
     * @param  \Closure  $callback
     * @return mixed
     *
     * @throws \Illuminate\Database\QueryException
     */
    protected function runQueryCallback($query, $bindings, Closure $callback)
    {
        // To execute the statement, we'll simply call the callback, which will actually
        // run the SQL against the PDO connection. Then we can calculate the time it
        // took to execute and log the query SQL, bindings and time in our memory.
        try {
            $result = $callback($query, $bindings);
        }
 
        // If an exception occurs when attempting to run a query, we'll format the error
        // message to include the bindings with SQL, which will make this exception a
        // lot more helpful to the developer instead of just the database's errors.
        catch (Exception $e) {
            throw new QueryException(
                $query, $this->prepareBindings($bindings), $e
            );
        }
 
        return $result;
    }
 
    /**
     * Log a query in the connection's query log.
     *
     * @param  string  $query
     * @param  array   $bindings
     * @param  float|null  $time
Arguments
  1. "select * from "users" where "robot_name" = ? limit 1"
    
  2. array:1 [
      0 => "Claudebot"
    ]
    
/
home
/
forge
/
lowcosthotels.com
/
vendor
/
laravel
/
framework
/
src
/
Illuminate
/
Database
/
Connection.php
     * Run a SQL statement and log its execution context.
     *
     * @param  string    $query
     * @param  array     $bindings
     * @param  \Closure  $callback
     * @return mixed
     *
     * @throws \Illuminate\Database\QueryException
     */
    protected function run($query, $bindings, Closure $callback)
    {
        $this->reconnectIfMissingConnection();
 
        $start = microtime(true);
 
        // Here we will run this query. If an exception occurs we'll determine if it was
        // caused by a connection that has been lost. If that is the cause, we'll try
        // to re-establish connection and re-run the query with a fresh connection.
        try {
            $result = $this->runQueryCallback($query, $bindings, $callback);
        } catch (QueryException $e) {
            $result = $this->handleQueryException(
                $e, $query, $bindings, $callback
            );
        }
 
        // Once we have run the query we will calculate the time that it took to run and
        // then log the query, bindings, and execution time so we will report them on
        // the event that the developer needs them. We'll log time in milliseconds.
        $this->logQuery(
            $query, $bindings, $this->getElapsedTime($start)
        );
 
        return $result;
    }
 
    /**
     * Run a SQL statement.
     *
     * @param  string    $query
Arguments
  1. "select * from "users" where "robot_name" = ? limit 1"
    
  2. array:1 [
      0 => "Claudebot"
    ]
    
  3. Closure($query, $bindings) {#520 …6}
    
/
home
/
forge
/
lowcosthotels.com
/
vendor
/
laravel
/
framework
/
src
/
Illuminate
/
Database
/
Connection.php
     */
    public function select($query, $bindings = [], $useReadPdo = true)
    {
        return $this->run($query, $bindings, function ($query, $bindings) use ($useReadPdo) {
            if ($this->pretending()) {
                return [];
            }
 
            // For select statements, we'll simply execute the query and return an array
            // of the database result set. Each element in the array will be a single
            // row from the database table, and will either be an array or objects.
            $statement = $this->prepared($this->getPdoForSelect($useReadPdo)
                              ->prepare($query));
 
            $this->bindValues($statement, $this->prepareBindings($bindings));
 
            $statement->execute();
 
            return $statement->fetchAll();
        });
    }
 
    /**
     * Run a select statement against the database and returns a generator.
     *
     * @param  string  $query
     * @param  array  $bindings
     * @param  bool  $useReadPdo
     * @return \Generator
     */
    public function cursor($query, $bindings = [], $useReadPdo = true)
    {
        $statement = $this->run($query, $bindings, function ($query, $bindings) use ($useReadPdo) {
            if ($this->pretending()) {
                return [];
            }
 
            // First we will create a statement for the query. Then, we will set the fetch
            // mode and prepare the bindings for the query. Once that's done we will be
            // ready to execute the query against the database and return the cursor.
Arguments
  1. "select * from "users" where "robot_name" = ? limit 1"
    
  2. array:1 [
      0 => "Claudebot"
    ]
    
  3. Closure($query, $bindings) {#520 …6}
    
/
home
/
forge
/
lowcosthotels.com
/
vendor
/
laravel
/
framework
/
src
/
Illuminate
/
Database
/
Query
/
Builder.php
     *
     * @param  array  $columns
     * @return \Illuminate\Support\Collection
     */
    public function get($columns = ['*'])
    {
        return collect($this->onceWithColumns($columns, function () {
            return $this->processor->processSelect($this, $this->runSelect());
        }));
    }
 
    /**
     * Run the query as a "select" statement against the connection.
     *
     * @return array
     */
    protected function runSelect()
    {
        return $this->connection->select(
            $this->toSql(), $this->getBindings(), ! $this->useWritePdo
        );
    }
 
    /**
     * Paginate the given query into a simple paginator.
     *
     * @param  int  $perPage
     * @param  array  $columns
     * @param  string  $pageName
     * @param  int|null  $page
     * @return \Illuminate\Contracts\Pagination\LengthAwarePaginator
     */
    public function paginate($perPage = 15, $columns = ['*'], $pageName = 'page', $page = null)
    {
        $page = $page ?: Paginator::resolveCurrentPage($pageName);
 
        $total = $this->getCountForPagination($columns);
 
        $results = $total ? $this->forPage($page, $perPage)->get($columns) : collect();
 
Arguments
  1. "select * from "users" where "robot_name" = ? limit 1"
    
  2. array:1 [
      0 => "Claudebot"
    ]
    
  3. true
    
/
home
/
forge
/
lowcosthotels.com
/
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