PDOException
/var/www/vhosts/nickstr.nl/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php47
PDO __construct
/var/www/vhosts/nickstr.nl/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php47
Illuminate\Database\Connectors\Connector createConnection
/var/www/vhosts/nickstr.nl/vendor/laravel/framework/src/Illuminate/Database/Connectors/MySqlConnector.php20
Illuminate\Database\Connectors\MySqlConnector connect
/var/www/vhosts/nickstr.nl/vendor/laravel/framework/src/Illuminate/Database/Connectors/ConnectionFactory.php25
Illuminate\Database\Connectors\ConnectionFactory make
/var/www/vhosts/nickstr.nl/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php87
Illuminate\Database\DatabaseManager makeConnection
/var/www/vhosts/nickstr.nl/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php64
Illuminate\Database\DatabaseManager connection
/var/www/vhosts/nickstr.nl/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php1496
Illuminate\Database\Eloquent\Model resolveConnection
/var/www/vhosts/nickstr.nl/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php1464
Illuminate\Database\Eloquent\Model getConnection
/var/www/vhosts/nickstr.nl/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php861
Illuminate\Database\Eloquent\Model newBaseQueryBuilder
/var/www/vhosts/nickstr.nl/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php844
Illuminate\Database\Eloquent\Model newQuery
/var/www/vhosts/nickstr.nl/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php1669
Illuminate\Database\Eloquent\Model __call
/var/www/vhosts/nickstr.nl/app/models/Post.php17
Post orderBy
/var/www/vhosts/nickstr.nl/app/models/Post.php17
Post getLatest
/var/www/vhosts/nickstr.nl/app/controllers/PostsController.php19
PostsController index
<#unknown>0
call_user_func_array
/var/www/vhosts/nickstr.nl/vendor/laravel/framework/src/Illuminate/Routing/Controllers/Controller.php138
Illuminate\Routing\Controllers\Controller callMethod
/var/www/vhosts/nickstr.nl/vendor/laravel/framework/src/Illuminate/Routing/Controllers/Controller.php115
Illuminate\Routing\Controllers\Controller callAction
/var/www/vhosts/nickstr.nl/vendor/laravel/framework/src/Illuminate/Routing/Router.php927
Illuminate\Routing\Router Illuminate\Routing\{closure}
<#unknown>0
call_user_func_array
/var/www/vhosts/nickstr.nl/vendor/laravel/framework/src/Illuminate/Routing/Route.php72
Illuminate\Routing\Route callCallable
/var/www/vhosts/nickstr.nl/vendor/laravel/framework/src/Illuminate/Routing/Route.php47
Illuminate\Routing\Route run
/var/www/vhosts/nickstr.nl/vendor/laravel/framework/src/Illuminate/Routing/Router.php958
Illuminate\Routing\Router dispatch
/var/www/vhosts/nickstr.nl/vendor/laravel/framework/src/Illuminate/Foundation/Application.php463
Illuminate\Foundation\Application dispatch
/var/www/vhosts/nickstr.nl/vendor/laravel/framework/src/Illuminate/Foundation/Application.php448
Illuminate\Foundation\Application run
/var/www/vhosts/nickstr.nl/httpdocs/index.php52

PDOException

SQLSTATE[HY000] [2002] Connection refused

/var/www/vhosts/nickstr.nl/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php
	{
		$username = array_get($config, 'username');

		$password = array_get($config, 'password');

		return new PDO($dsn, $username, $password, $options);
	}

/var/www/vhosts/nickstr.nl/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php
	{
		$username = array_get($config, 'username');

		$password = array_get($config, 'password');

		return new PDO($dsn, $username, $password, $options);
	}

/var/www/vhosts/nickstr.nl/vendor/laravel/framework/src/Illuminate/Database/Connectors/MySqlConnector.php
		// We need to grab the PDO options that should be used while making the brand
		// new connection instance. The PDO options control various aspects of the
		// connection's behavior, and some might be specified by the developers.
		$options = $this->getOptions($config);

		$connection = $this->createConnection($dsn, $config, $options);

		$collation = $config['collation'];
/var/www/vhosts/nickstr.nl/vendor/laravel/framework/src/Illuminate/Database/Connectors/ConnectionFactory.php
		if ( ! isset($config['prefix']))
		{
			$config['prefix'] = '';
		}

		$pdo = $this->createConnector($config)->connect($config);

		$config['name'] = $name;
/var/www/vhosts/nickstr.nl/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php
		if (isset($this->extensions[$name]))
		{
			return call_user_func($this->extensions[$name], $config);
		}

		return $this->factory->make($config, $name);
	}

/var/www/vhosts/nickstr.nl/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php
		// If we haven't created this connection, we'll create it based on the config
		// provided in the application. Once we've created the connections we will
		// set the "fetch mode" for PDO which determines the query return types.
		if ( ! isset($this->connections[$name]))
		{
			$connection = $this->makeConnection($name);

			$this->connections[$name] = $this->prepare($connection);
/var/www/vhosts/nickstr.nl/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php
	 * @param  string  $connection
	 * @return Illuminate\Database\Connection
	 */
	public static function resolveConnection($connection)
	{
		return static::$resolver->connection($connection);
	}

/var/www/vhosts/nickstr.nl/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php
	 *
	 * @return Illuminate\Database\Connection
	 */
	public function getConnection()
	{
		return static::resolveConnection($this->connection);
	}

/var/www/vhosts/nickstr.nl/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php
	 *
	 * @return Illuminate\Database\Query\Builder
	 */
	protected function newBaseQueryBuilder()
	{
		$conn = $this->getConnection();

		$grammar = $conn->getQueryGrammar();
/var/www/vhosts/nickstr.nl/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php
	 *
	 * @return Illuminate\Database\Eloquent\Builder
	 */
	public function newQuery()
	{
		$builder = new Builder($this->newBaseQueryBuilder());

		// Once we have the query builders, we will set the model instances so the
/var/www/vhosts/nickstr.nl/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php
	 * @param  array   $parameters
	 * @return mixed
	 */
	public function __call($method, $parameters)
	{
		$query = $this->newQuery();

		return call_user_func_array(array($query, $method), $parameters);
/var/www/vhosts/nickstr.nl/app/models/Post.php
        return $this->hasOne('image');
    }

    public function getLatest()
    {  
       return $this->orderBy('created_at', 'DESC')->where('private', '=', 0)->first();
    }

/var/www/vhosts/nickstr.nl/app/models/Post.php
        return $this->hasOne('image');
    }

    public function getLatest()
    {  
       return $this->orderBy('created_at', 'DESC')->where('private', '=', 0)->first();
    }

/var/www/vhosts/nickstr.nl/app/controllers/PostsController.php
	 *
	 * @return Response
	 */
	public function index()
	{   
        $post = $this->post->getLatest();
        $image = $this->imageRepository->get( $post->image, $post->view );
        $this->layout->nest('navigation', 'partials.navigation', compact('post') );
<#unknown>
/var/www/vhosts/nickstr.nl/vendor/laravel/framework/src/Illuminate/Routing/Controllers/Controller.php
	 * @param  array   $parameters
	 * @return mixed
	 */
	protected function callMethod($method, $parameters)
	{
		return call_user_func_array(array($this, $method), $parameters);
	}

/var/www/vhosts/nickstr.nl/vendor/laravel/framework/src/Illuminate/Routing/Controllers/Controller.php
		$this->setupLayout();

		if (is_null($response))
		{
			$response = $this->callMethod($method, $parameters);
		}

/var/www/vhosts/nickstr.nl/vendor/laravel/framework/src/Illuminate/Routing/Router.php
			// defaults so that the controllers will be able to use its own defaults.
			$args = array_values($route->getParametersWithoutDefaults());

			$instance = $ioc->make($controller);

			return $instance->callAction($ioc, $me, $method, $args);
		};
	}
<#unknown>
/var/www/vhosts/nickstr.nl/vendor/laravel/framework/src/Illuminate/Routing/Route.php
	 */
	protected function callCallable()
	{
		$variables = array_values($this->getParametersWithoutDefaults());

		return call_user_func_array($this->getOption('_call'), $variables);
	}

/var/www/vhosts/nickstr.nl/vendor/laravel/framework/src/Illuminate/Routing/Route.php
		// We will only call the router callable if no "before" middlewares returned
		// a response. If they do, we will consider that the response to requests
		// so that the request "lifecycle" will be easily halted for filtering.
		if ( ! isset($response))
		{
			$response = $this->callCallable();
		}

/var/www/vhosts/nickstr.nl/vendor/laravel/framework/src/Illuminate/Routing/Router.php
		// will execute the global "after" middlewares to finish off the request.
		else
		{
			$this->currentRoute = $route = $this->findRoute($request);

			$response = $route->run($request);
		}

/var/www/vhosts/nickstr.nl/vendor/laravel/framework/src/Illuminate/Foundation/Application.php
	 * @param  Illuminate\Foundation\Request  $request
	 * @return Symfony\Component\HttpFoundation\Response
	 */
	public function dispatch(Request $request)
	{
		return $this['router']->dispatch($this->prepareRequest($request));
	}

/var/www/vhosts/nickstr.nl/vendor/laravel/framework/src/Illuminate/Foundation/Application.php
	 *
	 * @return void
	 */
	public function run()
	{
		$response = $this->dispatch($this['request']);

		$response->send();
/var/www/vhosts/nickstr.nl/httpdocs/index.php
| the client's browser allowing them to enjoy the creative
| and wonderful applications we have created for them.
|
*/

$app->run();

/*
Key Value
USER nickstabb995c32
HOME /var/www/vhosts/nickstr.nl
FCGI_ROLE RESPONDER
UNIQUE_ID YXINBmZ9p2iH6P4TS6I4PAAAABE
QS_SrvConn 1
QS_IPConn 1
QS_AllConn 1
QS_ConnectionId 1634864390421897171815453
proxy-nokeepalive 1
HTTP_USER_AGENT CCBot/2.0 (https://commoncrawl.org/faq/)
HTTP_ACCEPT text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
HTTP_ACCEPT_LANGUAGE en-US,en;q=0.5
HTTP_ACCEPT_ENCODING br,gzip
HTTP_HOST nickstr.nl
HTTP_CONNECTION Keep-Alive
PATH /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin
SERVER_SIGNATURE
SERVER_SOFTWARE Apache
SERVER_NAME nickstr.nl
SERVER_ADDR 185.232.248.29
SERVER_PORT 80
REMOTE_ADDR 3.235.179.111
DOCUMENT_ROOT /var/www/vhosts/nickstr.nl/httpdocs
REQUEST_SCHEME http
CONTEXT_PREFIX
CONTEXT_DOCUMENT_ROOT /var/www/vhosts/nickstr.nl/httpdocs
SERVER_ADMIN systeembeheer@sohosted.com
SCRIPT_FILENAME /var/www/vhosts/nickstr.nl/httpdocs/index.php
REMOTE_PORT 42028
GATEWAY_INTERFACE CGI/1.1
SERVER_PROTOCOL HTTP/1.1
REQUEST_METHOD GET
QUERY_STRING
REQUEST_URI /
SCRIPT_NAME /index.php
PHP_SELF /index.php
REQUEST_TIME_FLOAT 1634864390.5284
REQUEST_TIME 1634864390
Key Value
USER nickstabb995c32
HOME /var/www/vhosts/nickstr.nl
FCGI_ROLE RESPONDER
UNIQUE_ID YXINBmZ9p2iH6P4TS6I4PAAAABE
QS_SrvConn 1
QS_IPConn 1
QS_AllConn 1
QS_ConnectionId 1634864390421897171815453
proxy-nokeepalive 1
HTTP_USER_AGENT CCBot/2.0 (https://commoncrawl.org/faq/)
HTTP_ACCEPT text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
HTTP_ACCEPT_LANGUAGE en-US,en;q=0.5
HTTP_ACCEPT_ENCODING br,gzip
HTTP_HOST nickstr.nl
HTTP_CONNECTION Keep-Alive
PATH /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin
SERVER_SIGNATURE
SERVER_SOFTWARE Apache
SERVER_NAME nickstr.nl
SERVER_ADDR 185.232.248.29
SERVER_PORT 80
REMOTE_ADDR 3.235.179.111
DOCUMENT_ROOT /var/www/vhosts/nickstr.nl/httpdocs
REQUEST_SCHEME http
CONTEXT_PREFIX
CONTEXT_DOCUMENT_ROOT /var/www/vhosts/nickstr.nl/httpdocs
SERVER_ADMIN systeembeheer@sohosted.com
SCRIPT_FILENAME /var/www/vhosts/nickstr.nl/httpdocs/index.php
REMOTE_PORT 42028
GATEWAY_INTERFACE CGI/1.1
SERVER_PROTOCOL HTTP/1.1
REQUEST_METHOD GET
QUERY_STRING
REQUEST_URI /
SCRIPT_NAME /index.php
PHP_SELF /index.php
REQUEST_TIME_FLOAT 1634864390.5284
REQUEST_TIME 1634864390
0. Damnit\Handler\PrettyPageHandler