17. PDOException
…/­vendor/­laravel/­framework/­src/­Illuminate/­Database/­Connectors/­Connector.php47
16. PDO __construct
…/­vendor/­laravel/­framework/­src/­Illuminate/­Database/­Connectors/­Connector.php0
15. Illuminate\Database\Connectors\Connector createConnection
…/­vendor/­laravel/­framework/­src/­Illuminate/­Database/­Connectors/­MySqlConnector.php20
14. Illuminate\Database\Connectors\MySqlConnector connect
…/­vendor/­laravel/­framework/­src/­Illuminate/­Database/­Connectors/­ConnectionFactory.php41
13. Illuminate\Database\Connectors\ConnectionFactory make
…/­vendor/­laravel/­framework/­src/­Illuminate/­Database/­DatabaseManager.php128
12. Illuminate\Database\DatabaseManager makeConnection
…/­vendor/­laravel/­framework/­src/­Illuminate/­Database/­DatabaseManager.php64
11. Illuminate\Database\DatabaseManager connection
…/­vendor/­laravel/­framework/­src/­Illuminate/­Database/­DatabaseManager.php242
10. Illuminate\Database\DatabaseManager __call
…/­vendor/­laravel/­framework/­src/­Illuminate/­Support/­Facades/­Facade.php206
9. Illuminate\Database\DatabaseManager table
…/­vendor/­laravel/­framework/­src/­Illuminate/­Support/­Facades/­Facade.php206
8. Illuminate\Support\Facades\Facade __callStatic
…/­app/­routes.php16
7. Illuminate\Support\Facades\DB table
…/­app/­routes.php16
6. {closure}
<#unknown>0
5. call_user_func_array
…/­vendor/­laravel/­framework/­src/­Illuminate/­Routing/­Route.php80
4. Illuminate\Routing\Route callCallable
…/­vendor/­laravel/­framework/­src/­Illuminate/­Routing/­Route.php47
3. Illuminate\Routing\Route run
…/­vendor/­laravel/­framework/­src/­Illuminate/­Routing/­Router.php1016
2. Illuminate\Routing\Router dispatch
…/­vendor/­laravel/­framework/­src/­Illuminate/­Foundation/­Application.php576
1. Illuminate\Foundation\Application dispatch
…/­vendor/­laravel/­framework/­src/­Illuminate/­Foundation/­Application.php552
0. Illuminate\Foundation\Application run
…/­index.php49

PDOException

SQLSTATE[HY000] [2002] php_network_getaddresses: getaddrinfo failed: Name or service not known

	 */
	public function createConnection($dsn, array $config, array $options)
	{
		$username = array_get($config, 'username');
 
		$password = array_get($config, 'password');
 
		return new PDO($dsn, $username, $password, $options);
	}
 
<?php namespace Illuminate\Database\Connectors;
 
use PDO;
 
class Connector {
 
	/**
	 * The default PDO connection options.
	 *
	 * @var array
		$dsn = $this->getDsn($config);
 
		// 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'];
	 * @param  string  $name
	 * @return \Illuminate\Database\Connection
	 */
	public function make(array $config, $name = null)
	{
		$config = $this->parseConfig($config, $name);
 
		$pdo = $this->createConnector($config)->connect($config);
 
		return $this->createConnection($config['driver'], $pdo, $config['database'], $config['prefix'], $config);
		// and will call the Closure if so, which allows us to have a more generic
		// resolver for the drivers themselves which applies to all connections.
		if (isset($this->extensions[$driver]))
		{
			return call_user_func($this->extensions[$driver], $config);
		}
 
		return $this->factory->make($config, $name);
	}
 
		$name = $name ?: $this->getDefaultConnection();
 
		// 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);
	 *
	 * @param  string  $method
	 * @param  array   $parameters
	 * @return mixed
	 */
	public function __call($method, $parameters)
	{
		return call_user_func_array(array($this->connection(), $method), $parameters);
	}
 
 
		switch (count($args))
		{
			case 0:
				return $instance->$method();
 
			case 1:
				return $instance->$method($args[0]);
 
			case 2:
 
		switch (count($args))
		{
			case 0:
				return $instance->$method();
 
			case 1:
				return $instance->$method($args[0]);
 
			case 2:
| It's a breeze. Simply tell Laravel the URIs it should respond to
| and give it the Closure to execute when that URI is requested.
|
*/
 
Route::get('/',function()
{
	$page_info = DB::table('pages')->where('nome_page','=','Home')->first();
	$frases_home = DB::table('home')->first();
	$conteudo_contactos = DB::table('contactos')->first();
| It's a breeze. Simply tell Laravel the URIs it should respond to
| and give it the Closure to execute when that URI is requested.
|
*/
 
Route::get('/',function()
{
	$page_info = DB::table('pages')->where('nome_page','=','Home')->first();
	$frases_home = DB::table('home')->first();
	$conteudo_contactos = DB::table('contactos')->first();
<#unknown>
	 *
	 * @return mixed
	 */
	protected function callCallable()
	{
		$variables = array_values($this->getParametersWithoutDefaults());
 
		return call_user_func_array($this->getOption('_call'), $variables);
	}
 
		// 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.
		$response = $this->callBeforeFilters($request);
 
		if ( ! isset($response))
		{
			$response = $this->callCallable();
		}
 
		// Once we have the route, we can just run it to get the responses, which will
		// always be instances of the Response class. Once we have the responses we
		// will execute the global "after" middlewares to finish off the request.
		else
		{
			$this->currentRoute = $route = $this->findRoute($request);
 
			$response = $route->run($request);
		}
 
		if ($this->isDownForMaintenance())
		{
			$response = $this['events']->until('illuminate.app.down');
 
			if ( ! is_null($response)) return $this->prepareResponse($response, $request);
		}
 
		return $this['router']->dispatch($this->prepareRequest($request));
	}
 
	/**
	 * Handles the given request and delivers the response.
	 *
	 * @return void
	 */
	public function run()
	{
		$response = $this->dispatch($this['request']);
 
		$this['router']->callCloseFilter($this['request'], $response);
| Once we have the application, we can simply call the run method,
| which will execute the request and send the response back to
| the client's browser allowing them to enjoy the creative
| and wonderful applications we have created for them.
|
*/
 
$app->run();
 
/*
Key Value
USER casadosr
FCGI_ROLE RESPONDER
APP_ENGINE php
APP_ENGINE_VERSION 5.4
ENVIRONMENT production
DOCUMENT_ROOT /home/casadosr/www
UNIQUE_ID ZgXKBxeLVEZBnAAHBVhEAgAAADs
GEOIP_COUNTRY_CODE US
GEOIP_COUNTRY_NAME United States
GEOIP_REGION VA
GEOIP_CITY Ashburn
GEOIP_DMA_CODE 511
GEOIP_AREA_CODE 703
GEOIP_LATITUDE 39.046902
GEOIP_LONGITUDE -77.490303
SCRIPT_URL /
SCRIPT_URI http://www.casadosrelogios.pt/
CFG_CLUSTER cluster015
PHP_VER 5_3
REGISTER_GLOBALS 0
HTTP_HOST www.casadosrelogios.pt
HTTP_X_PREDICTOR 1
HTTP_X_FORWARDED_FOR 44.212.26.248
HTTP_X_FORWARDED_PROTO http
HTTP_X_OVHREQUEST_ID 148db761748b6b7735bc3654f08798c8
HTTP_ACCEPT */*
HTTP_USER_AGENT claudebot
HTTP_X_FORWARDED_PORT 80
HTTP_X_REMOTE_PORT 49312
HTTP_X_REMOTE_IP 44.212.26.248
HTTP_X_REMOTE_PROTO http
HTTP_FORWARDED for=44.212.26.248; proto=http; host=www.casadosrelogios.pt
HTTP_REMOTE_PORT 49312
HTTP_X_IPLB_UNIQUE_ID 2CD41AF8:C0A0_5E174F03:0050_6605CA07_6E32:75D0
HTTP_REMOTE_IP 44.212.26.248
SERVER_SIGNATURE
SERVER_SOFTWARE Apache
SERVER_NAME www.casadosrelogios.pt
SERVER_ADDR 10.15.20.31
SERVER_PORT 80
REMOTE_ADDR 44.212.26.248
SERVER_ADMIN postmaster@www.casadosrelogios.pt
SCRIPT_FILENAME /home/casadosr/www/index.php
REMOTE_PORT 37516
GATEWAY_INTERFACE CGI/1.1
SERVER_PROTOCOL HTTP/1.1
REQUEST_METHOD GET
QUERY_STRING laravel_session=01knd3r2vlhkq6ko89pcadtj16
REQUEST_URI /?laravel_session=01knd3r2vlhkq6ko89pcadtj16
SCRIPT_NAME /index.php
PHP_SELF /index.php
REQUEST_TIME_FLOAT 1711655431.4791
REQUEST_TIME 1711655431
argv Array ( [0] => laravel_session=01knd3r2vlhkq6ko89pcadtj16 )
argc 1
Key Value
laravel_session 01knd3r2vlhkq6ko89pcadtj16
empty
empty
empty
Key Value
_sf2_attributes Array ( [_token] => Cz3iIsvw6LfynIyYXGgFQnw0IyB2v2Z9v6ke40hG )
_sf2_flashes Array ( )
_sf2_meta Array ( [u] => 1711655431 [c] => 1711655431 [l] => 7200 )
Key Value
USER casadosr
FCGI_ROLE RESPONDER
APP_ENGINE php
APP_ENGINE_VERSION 5.4
ENVIRONMENT production
DOCUMENT_ROOT /home/casadosr/www
UNIQUE_ID ZgXKBxeLVEZBnAAHBVhEAgAAADs
GEOIP_COUNTRY_CODE US
GEOIP_COUNTRY_NAME United States
GEOIP_REGION VA
GEOIP_CITY Ashburn
GEOIP_DMA_CODE 511
GEOIP_AREA_CODE 703
GEOIP_LATITUDE 39.046902
GEOIP_LONGITUDE -77.490303
SCRIPT_URL /
SCRIPT_URI http://www.casadosrelogios.pt/
CFG_CLUSTER cluster015
PHP_VER 5_3
REGISTER_GLOBALS 0
HTTP_HOST www.casadosrelogios.pt
HTTP_X_PREDICTOR 1
HTTP_X_FORWARDED_FOR 44.212.26.248
HTTP_X_FORWARDED_PROTO http
HTTP_X_OVHREQUEST_ID 148db761748b6b7735bc3654f08798c8
HTTP_ACCEPT */*
HTTP_USER_AGENT claudebot
HTTP_X_FORWARDED_PORT 80
HTTP_X_REMOTE_PORT 49312
HTTP_X_REMOTE_IP 44.212.26.248
HTTP_X_REMOTE_PROTO http
HTTP_FORWARDED for=44.212.26.248; proto=http; host=www.casadosrelogios.pt
HTTP_REMOTE_PORT 49312
HTTP_X_IPLB_UNIQUE_ID 2CD41AF8:C0A0_5E174F03:0050_6605CA07_6E32:75D0
HTTP_REMOTE_IP 44.212.26.248
SERVER_SIGNATURE
SERVER_SOFTWARE Apache
SERVER_NAME www.casadosrelogios.pt
SERVER_ADDR 10.15.20.31
SERVER_PORT 80
REMOTE_ADDR 44.212.26.248
SERVER_ADMIN postmaster@www.casadosrelogios.pt
SCRIPT_FILENAME /home/casadosr/www/index.php
REMOTE_PORT 37516
GATEWAY_INTERFACE CGI/1.1
SERVER_PROTOCOL HTTP/1.1
REQUEST_METHOD GET
QUERY_STRING laravel_session=01knd3r2vlhkq6ko89pcadtj16
REQUEST_URI /?laravel_session=01knd3r2vlhkq6ko89pcadtj16
SCRIPT_NAME /index.php
PHP_SELF /index.php
REQUEST_TIME_FLOAT 1711655431.4791
REQUEST_TIME 1711655431
argv Array ( [0] => laravel_session=01knd3r2vlhkq6ko89pcadtj16 )
argc 1
0. Whoops\Handler\PrettyPageHandler