^ Illuminate\Database\QueryException {#563
  #sql: "select * from "app_client_setting" where ("client_id" = ? and "is_active" = ?) limit 1"
  #bindings: array:2 [
    0 => "149"
    1 => 1
  ]
  #message: """
    SQLSTATE[08006] [7] could not connect to server: Connection refused\n
    \tIs the server running on host "10.20.21.225" and accepting\n
    \tTCP/IP connections on port 5432? (SQL: select * from "app_client_setting" where ("client_id" = 149 and "is_active" = 1) limit 1)
    """
  #code: 7
  #file: "/home/madieservice/taxeservice/vendor/laravel/framework/src/Illuminate/Database/Connection.php"
  #line: 664
  -previous: Doctrine\DBAL\Driver\PDO\Exception {#565
    -errorCode: 7
    -sqlState: "08006"
    #message: """
      SQLSTATE[08006] [7] could not connect to server: Connection refused\n
      \tIs the server running on host "10.20.21.225" and accepting\n
      \tTCP/IP connections on port 5432?
      """
    #code: 7
    #file: "/home/madieservice/taxeservice/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDO/Exception.php"
    #line: 18
    -previous: PDOException {#562
      #message: """
        SQLSTATE[08006] [7] could not connect to server: Connection refused\n
        \tIs the server running on host "10.20.21.225" and accepting\n
        \tTCP/IP connections on port 5432?
        """
      #code: 7
      #file: "/home/madieservice/taxeservice/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOConnection.php"
      #line: 39
      +errorInfo: array:3 [
        0 => "08006"
        1 => 7
        2 => """
          could not connect to server: Connection refused\n
          \tIs the server running on host "10.20.21.225" and accepting\n
          \tTCP/IP connections on port 5432?
          """
      ]
      trace: {
        /home/madieservice/taxeservice/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOConnection.php:39 {
          Doctrine\DBAL\Driver\PDOConnection->__construct($dsn, $user = null, $password = null, array $options = null) …
          › try {    parent::__construct($dsn, (string) $user, (string) $password, (array) $options);    $this->setAttribute(PDO::ATTR_STATEMENT_CLASS, [Statement::class, []]);
        }
        /home/madieservice/taxeservice/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php:65 {
          Illuminate\Database\Connectors\Connector->createPdoConnection($dsn, $username, $password, $options) …
          › if (class_exists(PDOConnection::class) && ! $this->isPersistentConnection($options)) {    return new PDOConnection($dsn, $username, $password, $options);}
        }
        /home/madieservice/taxeservice/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php:44 {
          Illuminate\Database\Connectors\Connector->createConnection($dsn, array $config, array $options) …
          › return $this->createPdoConnection(    $dsn, $username, $password, $options);
        }
        /home/madieservice/taxeservice/vendor/laravel/framework/src/Illuminate/Database/Connectors/PostgresConnector.php:33 {
          Illuminate\Database\Connectors\PostgresConnector->connect(array $config) …
          › $connection = $this->createConnection(    $this->getDsn($config), $config, $this->getOptions($config));
        }
        /home/madieservice/taxeservice/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}() {}
        /home/madieservice/taxeservice/vendor/laravel/framework/src/Illuminate/Database/Connection.php:915 {
          Illuminate\Database\Connection->getPdo() …
          › if ($this->pdo instanceof Closure) {    return $this->pdo = call_user_func($this->pdo);}
        }
        /home/madieservice/taxeservice/vendor/laravel/framework/src/Illuminate/Database/Connection.php:940 {
          Illuminate\Database\Connection->getReadPdo() …
          › 
          ›     return $this->readPdo ?: $this->getPdo();}
        }
        /home/madieservice/taxeservice/vendor/laravel/framework/src/Illuminate/Database/Connection.php:399 {
          Illuminate\Database\Connection->getPdoForSelect($useReadPdo = true) …
          › {    return $useReadPdo ? $this->getReadPdo() : $this->getPdo();}
        }
        /home/madieservice/taxeservice/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));
        }
        /home/madieservice/taxeservice/vendor/laravel/framework/src/Illuminate/Database/Connection.php:657 {
          Illuminate\Database\Connection->runQueryCallback($query, $bindings, Closure $callback) …
          › try {    $result = $callback($query, $bindings);}
        }
        /home/madieservice/taxeservice/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) {
        }
        /home/madieservice/taxeservice/vendor/laravel/framework/src/Illuminate/Database/Connection.php:333 {
          Illuminate\Database\Connection->select($query, $bindings = [], $useReadPdo = true) …
          ›         return $statement->fetchAll();    });}
        }
        /home/madieservice/taxeservice/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php:1963 {
          Illuminate\Database\Query\Builder->runSelect() …
          › return $this->connection->select(    $this->toSql(), $this->getBindings(), ! $this->useWritePdo);
        }
        /home/madieservice/taxeservice/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php:1951 {
          Illuminate\Database\Query\Builder->Illuminate\Database\Query\{closure} …
          › return collect($this->onceWithColumns($columns, function () {    return $this->processor->processSelect($this, $this->runSelect());}));
        }
        /home/madieservice/taxeservice/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php:2435 {
          Illuminate\Database\Query\Builder->onceWithColumns($columns, $callback) …
          › 
          › $result = $callback();}
        /home/madieservice/taxeservice/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php:1952 {
          Illuminate\Database\Query\Builder->get($columns = […1]) …
          ›         return $this->processor->processSelect($this, $this->runSelect());    }));}
        }
        /home/madieservice/taxeservice/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php:481 {
          Illuminate\Database\Eloquent\Builder->getModels($columns = […1]) …
          › return $this->model->hydrate(    $this->query->get($columns)->all())->all();
        }
        /home/madieservice/taxeservice/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php:465 {
          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);
        }
        /home/madieservice/taxeservice/vendor/laravel/framework/src/Illuminate/Database/Concerns/BuildsQueries.php:77 {
          Illuminate\Database\Eloquent\Builder->first($columns = […1]) …
          › {    return $this->take(1)->get($columns)->first();}
        }
        /home/madieservice/taxeservice/app/helpers/settings.php:23 {
          App\Helpers\Settings::Clientsettings() …
          › $client_id = env('client_id');$acs = App_client_setting::where([['client_id', $client_id], ['is_active', true]])->select('*')->first();return $acs;
        }
        /home/madieservice/taxeservice/app/Providers/MailConfigServiceProvider.php:20 {
          App\Providers\MailConfigServiceProvider->boot() …
          › 
          › $acs = settings::Clientsettings();$client_id = $acs->client_id;
        }
        App\Providers\MailConfigServiceProvider->boot() {}
        /home/madieservice/taxeservice/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php:29 {
          Illuminate\Container\BoundMethod::Illuminate\Container\{closure} …
          › return call_user_func_array(    $callback, static::getMethodDependencies($container, $callback, $parameters));
        }
        /home/madieservice/taxeservice/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php:87 {
          Illuminate\Container\BoundMethod::callBoundMethod($container, $callback, $default) …
          › 
          ›     return $default instanceof Closure ? $default() : $default;}
        }
        /home/madieservice/taxeservice/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php:31 {
          Illuminate\Container\BoundMethod::call($container, $callback, array $parameters = [], $defaultMethod = null) …
          ›         );    });}
        }
        /home/madieservice/taxeservice/vendor/laravel/framework/src/Illuminate/Container/Container.php:564 {
          Illuminate\Container\Container->call($callback, array $parameters = [], $defaultMethod = null) …
          › {    return BoundMethod::call($this, $callback, $parameters, $defaultMethod);}
        }
        /home/madieservice/taxeservice/vendor/laravel/framework/src/Illuminate/Foundation/Application.php:794 {
          Illuminate\Foundation\Application->bootProvider(ServiceProvider $provider) …
          › if (method_exists($provider, 'boot')) {    return $this->call([$provider, 'boot']);}
        }
        /home/madieservice/taxeservice/vendor/laravel/framework/src/Illuminate/Foundation/Application.php:777 {
          Illuminate\Foundation\Application->Illuminate\Foundation\{closure} …
          › array_walk($this->serviceProviders, function ($p) {    $this->bootProvider($p);});
        }
        Illuminate\Foundation\Application->Illuminate\Foundation\{closure}() {}
        /home/madieservice/taxeservice/vendor/laravel/framework/src/Illuminate/Foundation/Application.php:778 {
          Illuminate\Foundation\Application->boot() …
          ›     $this->bootProvider($p);});}
        /home/madieservice/taxeservice/vendor/laravel/framework/src/Illuminate/Foundation/Bootstrap/BootProviders.php:17 {
          Illuminate\Foundation\Bootstrap\BootProviders->bootstrap(Application $app) …
          › {    $app->boot();}
        }
        /home/madieservice/taxeservice/vendor/laravel/framework/src/Illuminate/Foundation/Application.php:206 {
          Illuminate\Foundation\Application->bootstrapWith(array $bootstrappers) …
          › 
          › $this->make($bootstrapper)->bootstrap($this);}
        /home/madieservice/taxeservice/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php:162 {
          Illuminate\Foundation\Http\Kernel->bootstrap() …
          › if (! $this->app->hasBeenBootstrapped()) {    $this->app->bootstrapWith($this->bootstrappers());}
        }
        /home/madieservice/taxeservice/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php:146 {
          Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter($request) …
          › 
          › $this->bootstrap();}
        /home/madieservice/taxeservice/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php:116 {
          Illuminate\Foundation\Http\Kernel->handle($request) …
          › 
          ›     $response = $this->sendRequestThroughRouter($request);} catch (Exception $e) {
        }
        /home/madieservice/taxeservice/public/index.php:55 {$response = $kernel->handle(    $request = Illuminate\Http\Request::capture());
        }
      }
    }
    +errorInfo: array:3 [
      0 => "08006"
      1 => 7
      2 => """
        could not connect to server: Connection refused\n
        \tIs the server running on host "10.20.21.225" and accepting\n
        \tTCP/IP connections on port 5432?
        """
    ]
    trace: {
      /home/madieservice/taxeservice/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDO/Exception.php:18 {
        Doctrine\DBAL\Driver\PDO\Exception::new(PDOException $exception): self …
        › {    return new self($exception);}
      }
      /home/madieservice/taxeservice/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOConnection.php:43 {
        Doctrine\DBAL\Driver\PDOConnection->__construct($dsn, $user = null, $password = null, array $options = null) …
        › } catch (PDOException $exception) {    throw Exception::new($exception);}
      }
      /home/madieservice/taxeservice/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php:65 {
        Illuminate\Database\Connectors\Connector->createPdoConnection($dsn, $username, $password, $options) …
        › if (class_exists(PDOConnection::class) && ! $this->isPersistentConnection($options)) {    return new PDOConnection($dsn, $username, $password, $options);}
      }
      /home/madieservice/taxeservice/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php:44 {
        Illuminate\Database\Connectors\Connector->createConnection($dsn, array $config, array $options) …
        › return $this->createPdoConnection(    $dsn, $username, $password, $options);
      }
      /home/madieservice/taxeservice/vendor/laravel/framework/src/Illuminate/Database/Connectors/PostgresConnector.php:33 {
        Illuminate\Database\Connectors\PostgresConnector->connect(array $config) …
        › $connection = $this->createConnection(    $this->getDsn($config), $config, $this->getOptions($config));
      }
      /home/madieservice/taxeservice/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}() {}
      /home/madieservice/taxeservice/vendor/laravel/framework/src/Illuminate/Database/Connection.php:915 {
        Illuminate\Database\Connection->getPdo() …
        › if ($this->pdo instanceof Closure) {    return $this->pdo = call_user_func($this->pdo);}
      }
      /home/madieservice/taxeservice/vendor/laravel/framework/src/Illuminate/Database/Connection.php:940 {
        Illuminate\Database\Connection->getReadPdo() …
        › 
        ›     return $this->readPdo ?: $this->getPdo();}
      }
      /home/madieservice/taxeservice/vendor/laravel/framework/src/Illuminate/Database/Connection.php:399 {
        Illuminate\Database\Connection->getPdoForSelect($useReadPdo = true) …
        › {    return $useReadPdo ? $this->getReadPdo() : $this->getPdo();}
      }
      /home/madieservice/taxeservice/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));
      }
      /home/madieservice/taxeservice/vendor/laravel/framework/src/Illuminate/Database/Connection.php:657 {
        Illuminate\Database\Connection->runQueryCallback($query, $bindings, Closure $callback) …
        › try {    $result = $callback($query, $bindings);}
      }
      /home/madieservice/taxeservice/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) {
      }
      /home/madieservice/taxeservice/vendor/laravel/framework/src/Illuminate/Database/Connection.php:333 {
        Illuminate\Database\Connection->select($query, $bindings = [], $useReadPdo = true) …
        ›         return $statement->fetchAll();    });}
      }
      /home/madieservice/taxeservice/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php:1963 {
        Illuminate\Database\Query\Builder->runSelect() …
        › return $this->connection->select(    $this->toSql(), $this->getBindings(), ! $this->useWritePdo);
      }
      /home/madieservice/taxeservice/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php:1951 {
        Illuminate\Database\Query\Builder->Illuminate\Database\Query\{closure} …
        › return collect($this->onceWithColumns($columns, function () {    return $this->processor->processSelect($this, $this->runSelect());}));
      }
      /home/madieservice/taxeservice/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php:2435 {
        Illuminate\Database\Query\Builder->onceWithColumns($columns, $callback) …
        › 
        › $result = $callback();}
      /home/madieservice/taxeservice/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php:1952 {
        Illuminate\Database\Query\Builder->get($columns = […1]) …
        ›         return $this->processor->processSelect($this, $this->runSelect());    }));}
      }
      /home/madieservice/taxeservice/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php:481 {
        Illuminate\Database\Eloquent\Builder->getModels($columns = […1]) …
        › return $this->model->hydrate(    $this->query->get($columns)->all())->all();
      }
      /home/madieservice/taxeservice/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php:465 {
        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);
      }
      /home/madieservice/taxeservice/vendor/laravel/framework/src/Illuminate/Database/Concerns/BuildsQueries.php:77 {
        Illuminate\Database\Eloquent\Builder->first($columns = […1]) …
        › {    return $this->take(1)->get($columns)->first();}
      }
      /home/madieservice/taxeservice/app/helpers/settings.php:23 {
        App\Helpers\Settings::Clientsettings() …
        › $client_id = env('client_id');$acs = App_client_setting::where([['client_id', $client_id], ['is_active', true]])->select('*')->first();return $acs;
      }
      /home/madieservice/taxeservice/app/Providers/MailConfigServiceProvider.php:20 {
        App\Providers\MailConfigServiceProvider->boot() …
        › 
        › $acs = settings::Clientsettings();$client_id = $acs->client_id;
      }
      App\Providers\MailConfigServiceProvider->boot() {}
      /home/madieservice/taxeservice/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php:29 {
        Illuminate\Container\BoundMethod::Illuminate\Container\{closure} …
        › return call_user_func_array(    $callback, static::getMethodDependencies($container, $callback, $parameters));
      }
      /home/madieservice/taxeservice/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php:87 {
        Illuminate\Container\BoundMethod::callBoundMethod($container, $callback, $default) …
        › 
        ›     return $default instanceof Closure ? $default() : $default;}
      }
      /home/madieservice/taxeservice/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php:31 {
        Illuminate\Container\BoundMethod::call($container, $callback, array $parameters = [], $defaultMethod = null) …
        ›         );    });}
      }
      /home/madieservice/taxeservice/vendor/laravel/framework/src/Illuminate/Container/Container.php:564 {
        Illuminate\Container\Container->call($callback, array $parameters = [], $defaultMethod = null) …
        › {    return BoundMethod::call($this, $callback, $parameters, $defaultMethod);}
      }
      /home/madieservice/taxeservice/vendor/laravel/framework/src/Illuminate/Foundation/Application.php:794 {
        Illuminate\Foundation\Application->bootProvider(ServiceProvider $provider) …
        › if (method_exists($provider, 'boot')) {    return $this->call([$provider, 'boot']);}
      }
      /home/madieservice/taxeservice/vendor/laravel/framework/src/Illuminate/Foundation/Application.php:777 {
        Illuminate\Foundation\Application->Illuminate\Foundation\{closure} …
        › array_walk($this->serviceProviders, function ($p) {    $this->bootProvider($p);});
      }
      Illuminate\Foundation\Application->Illuminate\Foundation\{closure}() {}
      /home/madieservice/taxeservice/vendor/laravel/framework/src/Illuminate/Foundation/Application.php:778 {
        Illuminate\Foundation\Application->boot() …
        ›     $this->bootProvider($p);});}
      /home/madieservice/taxeservice/vendor/laravel/framework/src/Illuminate/Foundation/Bootstrap/BootProviders.php:17 {
        Illuminate\Foundation\Bootstrap\BootProviders->bootstrap(Application $app) …
        › {    $app->boot();}
      }
      /home/madieservice/taxeservice/vendor/laravel/framework/src/Illuminate/Foundation/Application.php:206 {
        Illuminate\Foundation\Application->bootstrapWith(array $bootstrappers) …
        › 
        › $this->make($bootstrapper)->bootstrap($this);}
      /home/madieservice/taxeservice/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php:162 {
        Illuminate\Foundation\Http\Kernel->bootstrap() …
        › if (! $this->app->hasBeenBootstrapped()) {    $this->app->bootstrapWith($this->bootstrappers());}
      }
      /home/madieservice/taxeservice/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php:146 {
        Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter($request) …
        › 
        › $this->bootstrap();}
      /home/madieservice/taxeservice/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php:116 {
        Illuminate\Foundation\Http\Kernel->handle($request) …
        › 
        ›     $response = $this->sendRequestThroughRouter($request);} catch (Exception $e) {
      }
      /home/madieservice/taxeservice/public/index.php:55 {$response = $kernel->handle(    $request = Illuminate\Http\Request::capture());
      }
    }
  }
  +errorInfo: array:3 [
    0 => "08006"
    1 => 7
    2 => """
      could not connect to server: Connection refused\n
      \tIs the server running on host "10.20.21.225" and accepting\n
      \tTCP/IP connections on port 5432?
      """
  ]
  trace: {
    /home/madieservice/taxeservice/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
    }
    /home/madieservice/taxeservice/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) {
    }
    /home/madieservice/taxeservice/vendor/laravel/framework/src/Illuminate/Database/Connection.php:333 {
      Illuminate\Database\Connection->select($query, $bindings = [], $useReadPdo = true) …
      ›         return $statement->fetchAll();    });}
    }
    /home/madieservice/taxeservice/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php:1963 {
      Illuminate\Database\Query\Builder->runSelect() …
      › return $this->connection->select(    $this->toSql(), $this->getBindings(), ! $this->useWritePdo);
    }
    /home/madieservice/taxeservice/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php:1951 {
      Illuminate\Database\Query\Builder->Illuminate\Database\Query\{closure} …
      › return collect($this->onceWithColumns($columns, function () {    return $this->processor->processSelect($this, $this->runSelect());}));
    }
    /home/madieservice/taxeservice/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php:2435 {
      Illuminate\Database\Query\Builder->onceWithColumns($columns, $callback) …
      › 
      › $result = $callback();}
    /home/madieservice/taxeservice/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php:1952 {
      Illuminate\Database\Query\Builder->get($columns = […1]) …
      ›         return $this->processor->processSelect($this, $this->runSelect());    }));}
    }
    /home/madieservice/taxeservice/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php:481 {
      Illuminate\Database\Eloquent\Builder->getModels($columns = […1]) …
      › return $this->model->hydrate(    $this->query->get($columns)->all())->all();
    }
    /home/madieservice/taxeservice/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php:465 {
      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);
    }
    /home/madieservice/taxeservice/vendor/laravel/framework/src/Illuminate/Database/Concerns/BuildsQueries.php:77 {
      Illuminate\Database\Eloquent\Builder->first($columns = […1]) …
      › {    return $this->take(1)->get($columns)->first();}
    }
    /home/madieservice/taxeservice/app/helpers/settings.php:23 {
      App\Helpers\Settings::Clientsettings() …
      › $client_id = env('client_id');$acs = App_client_setting::where([['client_id', $client_id], ['is_active', true]])->select('*')->first();return $acs;
    }
    /home/madieservice/taxeservice/app/Providers/MailConfigServiceProvider.php:20 {
      App\Providers\MailConfigServiceProvider->boot() …
      › 
      › $acs = settings::Clientsettings();$client_id = $acs->client_id;
    }
    App\Providers\MailConfigServiceProvider->boot() {}
    /home/madieservice/taxeservice/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php:29 {
      Illuminate\Container\BoundMethod::Illuminate\Container\{closure} …
      › return call_user_func_array(    $callback, static::getMethodDependencies($container, $callback, $parameters));
    }
    /home/madieservice/taxeservice/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php:87 {
      Illuminate\Container\BoundMethod::callBoundMethod($container, $callback, $default) …
      › 
      ›     return $default instanceof Closure ? $default() : $default;}
    }
    /home/madieservice/taxeservice/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php:31 {
      Illuminate\Container\BoundMethod::call($container, $callback, array $parameters = [], $defaultMethod = null) …
      ›         );    });}
    }
    /home/madieservice/taxeservice/vendor/laravel/framework/src/Illuminate/Container/Container.php:564 {
      Illuminate\Container\Container->call($callback, array $parameters = [], $defaultMethod = null) …
      › {    return BoundMethod::call($this, $callback, $parameters, $defaultMethod);}
    }
    /home/madieservice/taxeservice/vendor/laravel/framework/src/Illuminate/Foundation/Application.php:794 {
      Illuminate\Foundation\Application->bootProvider(ServiceProvider $provider) …
      › if (method_exists($provider, 'boot')) {    return $this->call([$provider, 'boot']);}
    }
    /home/madieservice/taxeservice/vendor/laravel/framework/src/Illuminate/Foundation/Application.php:777 {
      Illuminate\Foundation\Application->Illuminate\Foundation\{closure} …
      › array_walk($this->serviceProviders, function ($p) {    $this->bootProvider($p);});
    }
    Illuminate\Foundation\Application->Illuminate\Foundation\{closure}() {}
    /home/madieservice/taxeservice/vendor/laravel/framework/src/Illuminate/Foundation/Application.php:778 {
      Illuminate\Foundation\Application->boot() …
      ›     $this->bootProvider($p);});}
    /home/madieservice/taxeservice/vendor/laravel/framework/src/Illuminate/Foundation/Bootstrap/BootProviders.php:17 {
      Illuminate\Foundation\Bootstrap\BootProviders->bootstrap(Application $app) …
      › {    $app->boot();}
    }
    /home/madieservice/taxeservice/vendor/laravel/framework/src/Illuminate/Foundation/Application.php:206 {
      Illuminate\Foundation\Application->bootstrapWith(array $bootstrappers) …
      › 
      › $this->make($bootstrapper)->bootstrap($this);}
    /home/madieservice/taxeservice/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php:162 {
      Illuminate\Foundation\Http\Kernel->bootstrap() …
      › if (! $this->app->hasBeenBootstrapped()) {    $this->app->bootstrapWith($this->bootstrappers());}
    }
    /home/madieservice/taxeservice/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php:146 {
      Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter($request) …
      › 
      › $this->bootstrap();}
    /home/madieservice/taxeservice/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php:116 {
      Illuminate\Foundation\Http\Kernel->handle($request) …
      › 
      ›     $response = $this->sendRequestThroughRouter($request);} catch (Exception $e) {
    }
    /home/madieservice/taxeservice/public/index.php:55 {$response = $kernel->handle(    $request = Illuminate\Http\Request::capture());
    }
  }
}
^ """
SQLSTATE[08006] [7] could not connect to server: Connection refused\n
\tIs the server running on host "10.20.21.225" and accepting\n
\tTCP/IP connections on port 5432? (SQL: select * from "app_client_setting" where ("client_id" = 149 and "is_active" = 1) limit 1)
"""