Whoops! There was an error.
Illuminate \ Database \ QueryException (2002)
SQLSTATE[HY000] [2002] Connection refused (SQL: select * from `companysetting` limit 1) Illuminate\Database\QueryException thrown with message "SQLSTATE[HY000] [2002] Connection refused (SQL: select * from `companysetting` limit 1)" Stacktrace: #56 Illuminate\Database\QueryException in /var/www/website/nuode/vendor/laravel/framework/src/Illuminate/Database/Connection.php:664 #55 App\Http\Controllers\web\ProductController:__construct in [internal]:0 #54 PDOException in /var/www/website/nuode/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php:68 #53 PDO:__construct in /var/www/website/nuode/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php:68 #52 Illuminate\Database\Connectors\Connector:createPdoConnection in /var/www/website/nuode/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php:44 #51 Illuminate\Database\Connectors\Connector:createConnection in /var/www/website/nuode/vendor/laravel/framework/src/Illuminate/Database/Connectors/MySqlConnector.php:24 #50 Illuminate\Database\Connectors\MySqlConnector:connect in /var/www/website/nuode/vendor/laravel/framework/src/Illuminate/Database/Connectors/ConnectionFactory.php:183 #49 Illuminate\Database\Connectors\ConnectionFactory:Illuminate\Database\Connectors\{closure} in /var/www/website/nuode/vendor/laravel/framework/src/Illuminate/Database/Connection.php:915 #48 call_user_func in /var/www/website/nuode/vendor/laravel/framework/src/Illuminate/Database/Connection.php:915 #47 Illuminate\Database\Connection:getPdo in /var/www/website/nuode/vendor/laravel/framework/src/Illuminate/Database/Connection.php:940 #46 Illuminate\Database\Connection:getReadPdo in /var/www/website/nuode/vendor/laravel/framework/src/Illuminate/Database/Connection.php:399 #45 Illuminate\Database\Connection:getPdoForSelect in /var/www/website/nuode/vendor/laravel/framework/src/Illuminate/Database/Connection.php:325 #44 Illuminate\Database\Connection:Illuminate\Database\{closure} in /var/www/website/nuode/vendor/laravel/framework/src/Illuminate/Database/Connection.php:657 #43 Illuminate\Database\Connection:runQueryCallback in /var/www/website/nuode/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 #42 Illuminate\Database\Connection:run in /var/www/website/nuode/vendor/laravel/framework/src/Illuminate/Database/Connection.php:333 #41 Illuminate\Database\Connection:select in /var/www/website/nuode/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php:1963 #40 Illuminate\Database\Query\Builder:runSelect in /var/www/website/nuode/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php:1951 #39 Illuminate\Database\Query\Builder:Illuminate\Database\Query\{closure} in /var/www/website/nuode/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php:2435 #38 Illuminate\Database\Query\Builder:onceWithColumns in /var/www/website/nuode/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php:1952 #37 Illuminate\Database\Query\Builder:get in /var/www/website/nuode/vendor/laravel/framework/src/Illuminate/Database/Concerns/BuildsQueries.php:77 #36 Illuminate\Database\Query\Builder:first in /var/www/website/nuode/app/Http/Controllers/web/BaseController.php:83 #35 App\Http\Controllers\web\BaseController:getCompany in /var/www/website/nuode/app/Http/Controllers/web/BaseController.php:27 #34 App\Http\Controllers\web\BaseController:__construct in /var/www/website/nuode/app/Http/Controllers/web/ProductController.php:13 #33 App\Http\Controllers\web\ProductController:__construct in [internal]:0 #32 ReflectionClass:newInstanceArgs in /var/www/website/nuode/vendor/laravel/framework/src/Illuminate/Container/Container.php:800 #31 Illuminate\Container\Container:build in /var/www/website/nuode/vendor/laravel/framework/src/Illuminate/Container/Container.php:646 #30 Illuminate\Container\Container:resolve in /var/www/website/nuode/vendor/laravel/framework/src/Illuminate/Container/Container.php:601 #29 Illuminate\Container\Container:make in /var/www/website/nuode/vendor/laravel/framework/src/Illuminate/Foundation/Application.php:734 #28 Illuminate\Foundation\Application:make in /var/www/website/nuode/vendor/laravel/framework/src/Illuminate/Routing/Route.php:226 #27 Illuminate\Routing\Route:getController in /var/www/website/nuode/vendor/laravel/framework/src/Illuminate/Routing/Route.php:796 #26 Illuminate\Routing\Route:controllerMiddleware in /var/www/website/nuode/vendor/laravel/framework/src/Illuminate/Routing/Route.php:757 #25 Illuminate\Routing\Route:gatherMiddleware in /var/www/website/nuode/vendor/laravel/framework/src/Illuminate/Routing/Router.php:678 #24 Illuminate\Routing\Router:gatherRouteMiddleware in /var/www/website/nuode/vendor/laravel/framework/src/Illuminate/Routing/Router.php:658 #23 Illuminate\Routing\Router:runRouteWithinStack in /var/www/website/nuode/vendor/laravel/framework/src/Illuminate/Routing/Router.php:642 #22 Illuminate\Routing\Router:runRoute in /var/www/website/nuode/vendor/laravel/framework/src/Illuminate/Routing/Router.php:608 #21 Illuminate\Routing\Router:dispatchToRoute in /var/www/website/nuode/vendor/laravel/framework/src/Illuminate/Routing/Router.php:597 #20 Illuminate\Routing\Router:dispatch in /var/www/website/nuode/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php:176 #19 Illuminate\Foundation\Http\Kernel:Illuminate\Foundation\Http\{closure} in /var/www/website/nuode/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php:30 #18 Illuminate\Routing\Pipeline:Illuminate\Routing\{closure} in /var/www/website/nuode/vendor/fideloper/proxy/src/TrustProxies.php:57 #17 Fideloper\Proxy\TrustProxies:handle in /var/www/website/nuode/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:151 #16 Illuminate\Pipeline\Pipeline:Illuminate\Pipeline\{closure} in /var/www/website/nuode/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php:53 #15 Illuminate\Routing\Pipeline:Illuminate\Routing\{closure} in /var/www/website/nuode/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php:31 #14 Illuminate\Foundation\Http\Middleware\TransformsRequest:handle in /var/www/website/nuode/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:151 #13 Illuminate\Pipeline\Pipeline:Illuminate\Pipeline\{closure} in /var/www/website/nuode/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php:53 #12 Illuminate\Routing\Pipeline:Illuminate\Routing\{closure} in /var/www/website/nuode/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php:31 #11 Illuminate\Foundation\Http\Middleware\TransformsRequest:handle in /var/www/website/nuode/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:151 #10 Illuminate\Pipeline\Pipeline:Illuminate\Pipeline\{closure} in /var/www/website/nuode/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php:53 #9 Illuminate\Routing\Pipeline:Illuminate\Routing\{closure} in /var/www/website/nuode/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php:27 #8 Illuminate\Foundation\Http\Middleware\ValidatePostSize:handle in /var/www/website/nuode/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:151 #7 Illuminate\Pipeline\Pipeline:Illuminate\Pipeline\{closure} in /var/www/website/nuode/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php:53 #6 Illuminate\Routing\Pipeline:Illuminate\Routing\{closure} in /var/www/website/nuode/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/CheckForMaintenanceMode.php:51 #5 Illuminate\Foundation\Http\Middleware\CheckForMaintenanceMode:handle in /var/www/website/nuode/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:151 #4 Illuminate\Pipeline\Pipeline:Illuminate\Pipeline\{closure} in /var/www/website/nuode/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php:53 #3 Illuminate\Routing\Pipeline:Illuminate\Routing\{closure} in /var/www/website/nuode/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:104 #2 Illuminate\Pipeline\Pipeline:then in /var/www/website/nuode/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php:151 #1 Illuminate\Foundation\Http\Kernel:sendRequestThroughRouter in /var/www/website/nuode/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php:116 #0 Illuminate\Foundation\Http\Kernel:handle in /var/www/website/nuode/public/index.php:56
56
Illuminate
\
Database
\
QueryException
/
vendor
/
laravel
/
framework
/
src
/
Illuminate
/
Database
/
Connection.php
664
55
App
\
Http
\
Controllers
\
web
\
ProductController
__construct
[internal]
0
54
PDOException
/
vendor
/
laravel
/
framework
/
src
/
Illuminate
/
Database
/
Connectors
/
Connector.php
68
53
PDO
__construct
/
vendor
/
laravel
/
framework
/
src
/
Illuminate
/
Database
/
Connectors
/
Connector.php
68
52
Illuminate
\
Database
\
Connectors
\
Connector
createPdoConnection
/
vendor
/
laravel
/
framework
/
src
/
Illuminate
/
Database
/
Connectors
/
Connector.php
44
51
Illuminate
\
Database
\
Connectors
\
Connector
createConnection
/
vendor
/
laravel
/
framework
/
src
/
Illuminate
/
Database
/
Connectors
/
MySqlConnector.php
24
50
Illuminate
\
Database
\
Connectors
\
MySqlConnector
connect
/
vendor
/
laravel
/
framework
/
src
/
Illuminate
/
Database
/
Connectors
/
ConnectionFactory.php
183
49
Illuminate
\
Database
\
Connectors
\
ConnectionFactory
Illuminate
\
Database
\
Connectors
\
{closure}
/
vendor
/
laravel
/
framework
/
src
/
Illuminate
/
Database
/
Connection.php
915
48
call_user_func
/
vendor
/
laravel
/
framework
/
src
/
Illuminate
/
Database
/
Connection.php
915
47
Illuminate
\
Database
\
Connection
getPdo
/
vendor
/
laravel
/
framework
/
src
/
Illuminate
/
Database
/
Connection.php
940
46
Illuminate
\
Database
\
Connection
getReadPdo
/
vendor
/
laravel
/
framework
/
src
/
Illuminate
/
Database
/
Connection.php
399
45
Illuminate
\
Database
\
Connection
getPdoForSelect
/
vendor
/
laravel
/
framework
/
src
/
Illuminate
/
Database
/
Connection.php
325
44
Illuminate
\
Database
\
Connection
Illuminate
\
Database
\
{closure}
/
vendor
/
laravel
/
framework
/
src
/
Illuminate
/
Database
/
Connection.php
657
43
Illuminate
\
Database
\
Connection
runQueryCallback
/
vendor
/
laravel
/
framework
/
src
/
Illuminate
/
Database
/
Connection.php
624
42
Illuminate
\
Database
\
Connection
run
/
vendor
/
laravel
/
framework
/
src
/
Illuminate
/
Database
/
Connection.php
333
41
Illuminate
\
Database
\
Connection
select
/
vendor
/
laravel
/
framework
/
src
/
Illuminate
/
Database
/
Query
/
Builder.php
1963
40
Illuminate
\
Database
\
Query
\
Builder
runSelect
/
vendor
/
laravel
/
framework
/
src
/
Illuminate
/
Database
/
Query
/
Builder.php
1951
39
Illuminate
\
Database
\
Query
\
Builder
Illuminate
\
Database
\
Query
\
{closure}
/
vendor
/
laravel
/
framework
/
src
/
Illuminate
/
Database
/
Query
/
Builder.php
2435
38
Illuminate
\
Database
\
Query
\
Builder
onceWithColumns
/
vendor
/
laravel
/
framework
/
src
/
Illuminate
/
Database
/
Query
/
Builder.php
1952
37
Illuminate
\
Database
\
Query
\
Builder
get
/
vendor
/
laravel
/
framework
/
src
/
Illuminate
/
Database
/
Concerns
/
BuildsQueries.php
77
36
Illuminate
\
Database
\
Query
\
Builder
first
/
app
/
Http
/
Controllers
/
web
/
BaseController.php
83
35
App
\
Http
\
Controllers
\
web
\
BaseController
getCompany
/
app
/
Http
/
Controllers
/
web
/
BaseController.php
27
34
App
\
Http
\
Controllers
\
web
\
BaseController
__construct
/
app
/
Http
/
Controllers
/
web
/
ProductController.php
13
33
App
\
Http
\
Controllers
\
web
\
ProductController
__construct
[internal]
0
32
ReflectionClass
newInstanceArgs
/
vendor
/
laravel
/
framework
/
src
/
Illuminate
/
Container
/
Container.php
800
31
Illuminate
\
Container
\
Container
build
/
vendor
/
laravel
/
framework
/
src
/
Illuminate
/
Container
/
Container.php
646
30
Illuminate
\
Container
\
Container
resolve
/
vendor
/
laravel
/
framework
/
src
/
Illuminate
/
Container
/
Container.php
601
29
Illuminate
\
Container
\
Container
make
/
vendor
/
laravel
/
framework
/
src
/
Illuminate
/
Foundation
/
Application.php
734
28
Illuminate
\
Foundation
\
Application
make
/
vendor
/
laravel
/
framework
/
src
/
Illuminate
/
Routing
/
Route.php
226
27
Illuminate
\
Routing
\
Route
getController
/
vendor
/
laravel
/
framework
/
src
/
Illuminate
/
Routing
/
Route.php
796
26
Illuminate
\
Routing
\
Route
controllerMiddleware
/
vendor
/
laravel
/
framework
/
src
/
Illuminate
/
Routing
/
Route.php
757
25
Illuminate
\
Routing
\
Route
gatherMiddleware
/
vendor
/
laravel
/
framework
/
src
/
Illuminate
/
Routing
/
Router.php
678
24
Illuminate
\
Routing
\
Router
gatherRouteMiddleware
/
vendor
/
laravel
/
framework
/
src
/
Illuminate
/
Routing
/
Router.php
658
23
Illuminate
\
Routing
\
Router
runRouteWithinStack
/
vendor
/
laravel
/
framework
/
src
/
Illuminate
/
Routing
/
Router.php
642
22
Illuminate
\
Routing
\
Router
runRoute
/
vendor
/
laravel
/
framework
/
src
/
Illuminate
/
Routing
/
Router.php
608
21
Illuminate
\
Routing
\
Router
dispatchToRoute
/
vendor
/
laravel
/
framework
/
src
/
Illuminate
/
Routing
/
Router.php
597
20
Illuminate
\
Routing
\
Router
dispatch
/
vendor
/
laravel
/
framework
/
src
/
Illuminate
/
Foundation
/
Http
/
Kernel.php
176
19
Illuminate
\
Foundation
\
Http
\
Kernel
Illuminate
\
Foundation
\
Http
\
{closure}
/
vendor
/
laravel
/
framework
/
src
/
Illuminate
/
Routing
/
Pipeline.php
30
18
Illuminate
\
Routing
\
Pipeline
Illuminate
\
Routing
\
{closure}
/
vendor
/
fideloper
/
proxy
/
src
/
TrustProxies.php
57
17
Fideloper
\
Proxy
\
TrustProxies
handle
/
vendor
/
laravel
/
framework
/
src
/
Illuminate
/
Pipeline
/
Pipeline.php
151
16
Illuminate
\
Pipeline
\
Pipeline
Illuminate
\
Pipeline
\
{closure}
/
vendor
/
laravel
/
framework
/
src
/
Illuminate
/
Routing
/
Pipeline.php
53
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
151
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
151
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
151
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
/