Illuminate\Database\QueryException {#896
#sql: "select * from `env_settings`"
#bindings: []
#message: "SQLSTATE[HY000] [1045] Access denied for user 'root'@'localhost' (using password: YES) (SQL: select * from `env_settings`)"
#code: 1045
#file: "/var/www/html/vendor/laravel/framework/src/Illuminate/Database/Connection.php"
#line: 664
-previous: PDOException {#497
#message: "SQLSTATE[HY000] [1045] Access denied for user 'root'@'localhost' (using password: YES)"
#code: 1045
#file: "/var/www/html/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php"
#line: 70
+errorInfo: null
trace: {
/var/www/html/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php:70 {
Illuminate\Database\Connectors\Connector->createPdoConnection($dsn, $username, $password, $options) …
›
› return new PDO($dsn, $username, $password, $options);
› }
}
/var/www/html/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php:46 {
Illuminate\Database\Connectors\Connector->createConnection($dsn, array $config, array $options) …
› return $this->createPdoConnection(
› $dsn, $username, $password, $options
› );
}
/var/www/html/vendor/laravel/framework/src/Illuminate/Database/Connectors/MySqlConnector.php:24 {
Illuminate\Database\Connectors\MySqlConnector->connect(array $config) …
› // connection's behavior, and some might be specified by the developers.
› $connection = $this->createConnection($dsn, $config, $options);
›
}
/var/www/html/vendor/laravel/framework/src/Illuminate/Database/Connectors/ConnectionFactory.php:182 {
Illuminate\Database\Connectors\ConnectionFactory->Illuminate\Database\Connectors\{closure} …
› try {
› return $this->createConnector($config)->connect($config);
› } catch (PDOException $e) {
}
Illuminate\Database\Connectors\ConnectionFactory->Illuminate\Database\Connectors\{closure}() {}
/var/www/html/vendor/laravel/framework/src/Illuminate/Database/Connection.php:919 {
Illuminate\Database\Connection->getPdo() …
› if ($this->pdo instanceof Closure) {
› return $this->pdo = call_user_func($this->pdo);
› }
}
/var/www/html/vendor/laravel/framework/src/Illuminate/Database/Connection.php:944 {
Illuminate\Database\Connection->getReadPdo() …
›
› return $this->readPdo ?: $this->getPdo();
› }
}
/var/www/html/vendor/laravel/framework/src/Illuminate/Database/Connection.php:399 {
Illuminate\Database\Connection->getPdoForSelect($useReadPdo = true) …
› {
› return $useReadPdo ? $this->getReadPdo() : $this->getPdo();
› }
}
/var/www/html/vendor/laravel/framework/src/Illuminate/Database/Connection.php:325 {
Illuminate\Database\Connection->Illuminate\Database\{closure} …
› // row from the database table, and will either be an array or objects.
› $statement = $this->prepared($this->getPdoForSelect($useReadPdo)
› ->prepare($query));
}
/var/www/html/vendor/laravel/framework/src/Illuminate/Database/Connection.php:657 {
Illuminate\Database\Connection->runQueryCallback($query, $bindings, Closure $callback) …
› try {
› $result = $callback($query, $bindings);
› }
}
/var/www/html/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 {
Illuminate\Database\Connection->run($query, $bindings, Closure $callback) …
› try {
› $result = $this->runQueryCallback($query, $bindings, $callback);
› } catch (QueryException $e) {
}
/var/www/html/vendor/laravel/framework/src/Illuminate/Database/Connection.php:333 {
Illuminate\Database\Connection->select($query, $bindings = [], $useReadPdo = true) …
› return $statement->fetchAll();
› });
› }
}
/var/www/html/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php:2130 {
Illuminate\Database\Query\Builder->runSelect() …
› return $this->connection->select(
› $this->toSql(), $this->getBindings(), ! $this->useWritePdo
› );
}
/var/www/html/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php:2118 {
Illuminate\Database\Query\Builder->Illuminate\Database\Query\{closure} …
› return collect($this->onceWithColumns(Arr::wrap($columns), function () {
› return $this->processor->processSelect($this, $this->runSelect());
› }));
}
/var/www/html/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php:2604 {
Illuminate\Database\Query\Builder->onceWithColumns($columns, $callback) …
›
› $result = $callback();
›
}
/var/www/html/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php:2119 {
Illuminate\Database\Query\Builder->get($columns = […1]) …
› return $this->processor->processSelect($this, $this->runSelect());
› }));
› }
}
/var/www/html/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php:521 {
Illuminate\Database\Eloquent\Builder->getModels($columns = […1]) …
› return $this->model->hydrate(
› $this->query->get($columns)->all()
› )->all();
}
/var/www/html/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php:505 {
Illuminate\Database\Eloquent\Builder->get($columns = […1]) …
› // 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);
}
/var/www/html/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php:462 {
Illuminate\Database\Eloquent\Model::all($columns = […1]) …
› return static::query()->get(
› is_array($columns) ? $columns : func_get_args()
› );
}
/var/www/html/app/Models/EnvSetting.php:23 {
App\Models\EnvSetting->getEnvVar() …
› try {\r
› $env_data = $this::all();\r
› \r
}
/var/www/html/app/Providers/AppServiceProvider.php:32 {
App\Providers\AppServiceProvider->boot() …
› $env_insta = new EnvSetting();\r
› foreach( $env_insta->getEnvVar() as $value) {\r
› // dd($value->value);\r
}
App\Providers\AppServiceProvider->boot() {}
/var/www/html/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php:32 {
Illuminate\Container\BoundMethod::Illuminate\Container\{closure} …
› return call_user_func_array(
› $callback, static::getMethodDependencies($container, $callback, $parameters)
› );
}
/var/www/html/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php:90 {
Illuminate\Container\BoundMethod::callBoundMethod($container, $callback, $default) …
›
› return $default instanceof Closure ? $default() : $default;
› }
}
/var/www/html/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php:34 {
Illuminate\Container\BoundMethod::call($container, $callback, array $parameters = [], $defaultMethod = null) …
› );
› });
› }
}
/var/www/html/vendor/laravel/framework/src/Illuminate/Container/Container.php:576 {
Illuminate\Container\Container->call($callback, array $parameters = [], $defaultMethod = null) …
› {
› return BoundMethod::call($this, $callback, $parameters, $defaultMethod);
› }
}
/var/www/html/vendor/laravel/framework/src/Illuminate/Foundation/Application.php:827 {
Illuminate\Foundation\Application->bootProvider(ServiceProvider $provider) …
› if (method_exists($provider, 'boot')) {
› return $this->call([$provider, 'boot']);
› }
}
/var/www/html/vendor/laravel/framework/src/Illuminate/Foundation/Application.php:810 {
Illuminate\Foundation\Application->Illuminate\Foundation\{closure} …
› array_walk($this->serviceProviders, function ($p) {
› $this->bootProvider($p);
› });
}
Illuminate\Foundation\Application->Illuminate\Foundation\{closure}() {}
/var/www/html/vendor/laravel/framework/src/Illuminate/Foundation/Application.php:811 {
Illuminate\Foundation\Application->boot() …
› $this->bootProvider($p);
› });
›
}
/var/www/html/vendor/laravel/framework/src/Illuminate/Foundation/Bootstrap/BootProviders.php:17 {
Illuminate\Foundation\Bootstrap\BootProviders->bootstrap(Application $app) …
› {
› $app->boot();
› }
}
/var/www/html/vendor/laravel/framework/src/Illuminate/Foundation/Application.php:210 {
Illuminate\Foundation\Application->bootstrapWith(array $bootstrappers) …
›
› $this->make($bootstrapper)->bootstrap($this);
›
}
/var/www/html/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php:162 {
Illuminate\Foundation\Http\Kernel->bootstrap() …
› if (! $this->app->hasBeenBootstrapped()) {
› $this->app->bootstrapWith($this->bootstrappers());
› }
}
/var/www/html/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php:146 {
Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter($request) …
›
› $this->bootstrap();
›
}
/var/www/html/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php:116 {
Illuminate\Foundation\Http\Kernel->handle($request) …
›
› $response = $this->sendRequestThroughRouter($request);
› } catch (Exception $e) {
}
/var/www/html/public/index.php:55 {
require_once …
› $response = $kernel->handle(
› $request = Illuminate\Http\Request::capture()
› );
}
/var/www/html/index.php:22 {
›
› require_once __DIR__ . '/public/index.php';
›
arguments: {
"/var/www/html/public/index.php"
}
}
}
}
+errorInfo: null
trace: {
/var/www/html/vendor/laravel/framework/src/Illuminate/Database/Connection.php:664 {
Illuminate\Database\Connection->runQueryCallback($query, $bindings, Closure $callback) …
› catch (Exception $e) {
› throw new QueryException(
› $query, $this->prepareBindings($bindings), $e
}
/var/www/html/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624 {
Illuminate\Database\Connection->run($query, $bindings, Closure $callback) …
› try {
› $result = $this->runQueryCallback($query, $bindings, $callback);
› } catch (QueryException $e) {
}
/var/www/html/vendor/laravel/framework/src/Illuminate/Database/Connection.php:333 {
Illuminate\Database\Connection->select($query, $bindings = [], $useReadPdo = true) …
› return $statement->fetchAll();
› });
› }
}
/var/www/html/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php:2130 {
Illuminate\Database\Query\Builder->runSelect() …
› return $this->connection->select(
› $this->toSql(), $this->getBindings(), ! $this->useWritePdo
› );
}
/var/www/html/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php:2118 {
Illuminate\Database\Query\Builder->Illuminate\Database\Query\{closure} …
› return collect($this->onceWithColumns(Arr::wrap($columns), function () {
› return $this->processor->processSelect($this, $this->runSelect());
› }));
}
/var/www/html/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php:2604 {
Illuminate\Database\Query\Builder->onceWithColumns($columns, $callback) …
›
› $result = $callback();
›
}
/var/www/html/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php:2119 {
Illuminate\Database\Query\Builder->get($columns = […1]) …
› return $this->processor->processSelect($this, $this->runSelect());
› }));
› }
}
/var/www/html/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php:521 {
Illuminate\Database\Eloquent\Builder->getModels($columns = […1]) …
› return $this->model->hydrate(
› $this->query->get($columns)->all()
› )->all();
}
/var/www/html/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php:505 {
Illuminate\Database\Eloquent\Builder->get($columns = […1]) …
› // 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);
}
/var/www/html/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php:462 {
Illuminate\Database\Eloquent\Model::all($columns = […1]) …
› return static::query()->get(
› is_array($columns) ? $columns : func_get_args()
› );
}
/var/www/html/app/Models/EnvSetting.php:23 {
App\Models\EnvSetting->getEnvVar() …
› try {\r
› $env_data = $this::all();\r
› \r
}
/var/www/html/app/Providers/AppServiceProvider.php:32 {
App\Providers\AppServiceProvider->boot() …
› $env_insta = new EnvSetting();\r
› foreach( $env_insta->getEnvVar() as $value) {\r
› // dd($value->value);\r
}
App\Providers\AppServiceProvider->boot() {}
/var/www/html/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php:32 {
Illuminate\Container\BoundMethod::Illuminate\Container\{closure} …
› return call_user_func_array(
› $callback, static::getMethodDependencies($container, $callback, $parameters)
› );
}
/var/www/html/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php:90 {
Illuminate\Container\BoundMethod::callBoundMethod($container, $callback, $default) …
›
› return $default instanceof Closure ? $default() : $default;
› }
}
/var/www/html/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php:34 {
Illuminate\Container\BoundMethod::call($container, $callback, array $parameters = [], $defaultMethod = null) …
› );
› });
› }
}
/var/www/html/vendor/laravel/framework/src/Illuminate/Container/Container.php:576 {
Illuminate\Container\Container->call($callback, array $parameters = [], $defaultMethod = null) …
› {
› return BoundMethod::call($this, $callback, $parameters, $defaultMethod);
› }
}
/var/www/html/vendor/laravel/framework/src/Illuminate/Foundation/Application.php:827 {
Illuminate\Foundation\Application->bootProvider(ServiceProvider $provider) …
› if (method_exists($provider, 'boot')) {
› return $this->call([$provider, 'boot']);
› }
}
/var/www/html/vendor/laravel/framework/src/Illuminate/Foundation/Application.php:810 {
Illuminate\Foundation\Application->Illuminate\Foundation\{closure} …
› array_walk($this->serviceProviders, function ($p) {
› $this->bootProvider($p);
› });
}
Illuminate\Foundation\Application->Illuminate\Foundation\{closure}() {}
/var/www/html/vendor/laravel/framework/src/Illuminate/Foundation/Application.php:811 {
Illuminate\Foundation\Application->boot() …
› $this->bootProvider($p);
› });
›
}
/var/www/html/vendor/laravel/framework/src/Illuminate/Foundation/Bootstrap/BootProviders.php:17 {
Illuminate\Foundation\Bootstrap\BootProviders->bootstrap(Application $app) …
› {
› $app->boot();
› }
}
/var/www/html/vendor/laravel/framework/src/Illuminate/Foundation/Application.php:210 {
Illuminate\Foundation\Application->bootstrapWith(array $bootstrappers) …
›
› $this->make($bootstrapper)->bootstrap($this);
›
}
/var/www/html/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php:162 {
Illuminate\Foundation\Http\Kernel->bootstrap() …
› if (! $this->app->hasBeenBootstrapped()) {
› $this->app->bootstrapWith($this->bootstrappers());
› }
}
/var/www/html/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php:146 {
Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter($request) …
›
› $this->bootstrap();
›
}
/var/www/html/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php:116 {
Illuminate\Foundation\Http\Kernel->handle($request) …
›
› $response = $this->sendRequestThroughRouter($request);
› } catch (Exception $e) {
}
/var/www/html/public/index.php:55 {
require_once …
› $response = $kernel->handle(
› $request = Illuminate\Http\Request::capture()
› );
}
/var/www/html/index.php:22 {
›
› require_once __DIR__ . '/public/index.php';
›
arguments: {
"/var/www/html/public/index.php"
}
}
}
}