21. PDOException
…/­vendor/­laravel/­framework/­src/­Illuminate/­Database/­Connectors/­Connector.php47
20. PDO __construct
…/­vendor/­laravel/­framework/­src/­Illuminate/­Database/­Connectors/­Connector.php0
19. Illuminate\Database\Connectors\Connector createConnection
…/­vendor/­laravel/­framework/­src/­Illuminate/­Database/­Connectors/­MySqlConnector.php20
18. Illuminate\Database\Connectors\MySqlConnector connect
…/­vendor/­laravel/­framework/­src/­Illuminate/­Database/­Connectors/­ConnectionFactory.php41
17. Illuminate\Database\Connectors\ConnectionFactory make
…/­vendor/­laravel/­framework/­src/­Illuminate/­Database/­DatabaseManager.php128
16. Illuminate\Database\DatabaseManager makeConnection
…/­vendor/­laravel/­framework/­src/­Illuminate/­Database/­DatabaseManager.php64
15. Illuminate\Database\DatabaseManager connection
…/­vendor/­laravel/­framework/­src/­Illuminate/­Database/­DatabaseManager.php242
14. Illuminate\Database\DatabaseManager __call
…/­vendor/­laravel/­framework/­src/­Illuminate/­Support/­Facades/­Facade.php206
13. Illuminate\Database\DatabaseManager table
…/­vendor/­laravel/­framework/­src/­Illuminate/­Support/­Facades/­Facade.php206
12. Illuminate\Support\Facades\Facade __callStatic
…/­app/­controllers/­ProdutosRelojoariaController.php12
11. Illuminate\Support\Facades\DB table
…/­app/­controllers/­ProdutosRelojoariaController.php12
10. ProdutosRelojoariaController index
<#unknown>0
9. call_user_func_array
…/­vendor/­laravel/­framework/­src/­Illuminate/­Routing/­Controllers/­Controller.php138
8. Illuminate\Routing\Controllers\Controller callMethod
…/­vendor/­laravel/­framework/­src/­Illuminate/­Routing/­Controllers/­Controller.php115
7. Illuminate\Routing\Controllers\Controller callAction
…/­vendor/­laravel/­framework/­src/­Illuminate/­Routing/­Router.php985
6. Illuminate\Routing\Router Illuminate\Routing\{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:
	/**
	 * Display a listing of the resource.
	 *
	 * @return Response
	 */
	public function index($genero, $marca)
	{
		$conteudo_contactos = DB::table('contactos')->first();
 
		$marcas_reloj_mulher = DB::table('categoria_produto')
	/**
	 * Display a listing of the resource.
	 *
	 * @return Response
	 */
	public function index($genero, $marca)
	{
		$conteudo_contactos = DB::table('contactos')->first();
 
		$marcas_reloj_mulher = DB::table('categoria_produto')
<#unknown>
	 *
	 * @param  string  $method
	 * @param  array   $parameters
	 * @return mixed
	 */
	protected function callMethod($method, $parameters)
	{
		return call_user_func_array(array($this, $method), $parameters);
	}
 
		// after filters on the controller to wrap up any last minute processing.
		$response = $this->callBeforeFilters($router, $method);
 
		$this->setupLayout();
 
		if (is_null($response))
		{
			$response = $this->callMethod($method, $parameters);
		}
 
			// We will extract the passed in parameters off of the route object so we will
			// pass them off to the controller method as arguments. We will not get the
			// 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>
	 *
	 * @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
REDIRECT_STATUS 200
UNIQUE_ID ZgX746eESCk19Dzxw1guJwAAAEg
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 /relojoaria/homem/Sector
SCRIPT_URI http://www.casadosrelogios.pt/relojoaria/homem/Sector
CFG_CLUSTER cluster015
ENVIRONMENT production
PHP_VER 5_3
REGISTER_GLOBALS 0
HTTP_HOST www.casadosrelogios.pt
HTTP_X_PREDICTOR 1
HTTP_X_FORWARDED_FOR 54.89.70.161
HTTP_X_FORWARDED_PROTO http
HTTP_X_OVHREQUEST_ID c26c6016150598926365cee71f00fd01
HTTP_ACCEPT */*
HTTP_USER_AGENT claudebot
HTTP_X_FORWARDED_PORT 80
HTTP_X_REMOTE_PORT 33388
HTTP_X_REMOTE_IP 54.89.70.161
HTTP_X_REMOTE_PROTO http
HTTP_FORWARDED for=54.89.70.161; proto=http; host=www.casadosrelogios.pt
HTTP_REMOTE_PORT 33388
HTTP_X_IPLB_UNIQUE_ID 365946A1:826C_5E174F03:0050_6605FBE3_15BD:383D
HTTP_REMOTE_IP 54.89.70.161
SERVER_SIGNATURE
SERVER_SOFTWARE Apache
SERVER_NAME www.casadosrelogios.pt
SERVER_ADDR 10.15.20.31
SERVER_PORT 80
REMOTE_ADDR 54.89.70.161
DOCUMENT_ROOT /home/casadosr/www
SERVER_ADMIN postmaster@www.casadosrelogios.pt
SCRIPT_FILENAME /home/casadosr/www/index.php
REMOTE_PORT 41640
REDIRECT_URL /relojoaria/homem/Sector
REDIRECT_QUERY_STRING laravel_session=gqe233goo845bfosdofjo3toc0
GATEWAY_INTERFACE CGI/1.1
SERVER_PROTOCOL HTTP/1.1
REQUEST_METHOD GET
QUERY_STRING laravel_session=gqe233goo845bfosdofjo3toc0
REQUEST_URI /relojoaria/homem/Sector?laravel_session=gqe233goo845bfosdofjo3toc0
SCRIPT_NAME /index.php
PHP_SELF /index.php
REQUEST_TIME_FLOAT 1711668195.8002
REQUEST_TIME 1711668195
argv Array ( [0] => laravel_session=gqe233goo845bfosdofjo3toc0 )
argc 1
Key Value
laravel_session gqe233goo845bfosdofjo3toc0
empty
empty
empty
Key Value
_sf2_attributes Array ( [_token] => XWL1RJRYSQodZ9U9E796mhWH2KrxuSKDjspStWcg )
_sf2_flashes Array ( )
_sf2_meta Array ( [u] => 1711668195 [c] => 1711668195 [l] => 7200 )
Key Value
USER casadosr
FCGI_ROLE RESPONDER
REDIRECT_STATUS 200
UNIQUE_ID ZgX746eESCk19Dzxw1guJwAAAEg
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 /relojoaria/homem/Sector
SCRIPT_URI http://www.casadosrelogios.pt/relojoaria/homem/Sector
CFG_CLUSTER cluster015
ENVIRONMENT production
PHP_VER 5_3
REGISTER_GLOBALS 0
HTTP_HOST www.casadosrelogios.pt
HTTP_X_PREDICTOR 1
HTTP_X_FORWARDED_FOR 54.89.70.161
HTTP_X_FORWARDED_PROTO http
HTTP_X_OVHREQUEST_ID c26c6016150598926365cee71f00fd01
HTTP_ACCEPT */*
HTTP_USER_AGENT claudebot
HTTP_X_FORWARDED_PORT 80
HTTP_X_REMOTE_PORT 33388
HTTP_X_REMOTE_IP 54.89.70.161
HTTP_X_REMOTE_PROTO http
HTTP_FORWARDED for=54.89.70.161; proto=http; host=www.casadosrelogios.pt
HTTP_REMOTE_PORT 33388
HTTP_X_IPLB_UNIQUE_ID 365946A1:826C_5E174F03:0050_6605FBE3_15BD:383D
HTTP_REMOTE_IP 54.89.70.161
SERVER_SIGNATURE
SERVER_SOFTWARE Apache
SERVER_NAME www.casadosrelogios.pt
SERVER_ADDR 10.15.20.31
SERVER_PORT 80
REMOTE_ADDR 54.89.70.161
DOCUMENT_ROOT /home/casadosr/www
SERVER_ADMIN postmaster@www.casadosrelogios.pt
SCRIPT_FILENAME /home/casadosr/www/index.php
REMOTE_PORT 41640
REDIRECT_URL /relojoaria/homem/Sector
REDIRECT_QUERY_STRING laravel_session=gqe233goo845bfosdofjo3toc0
GATEWAY_INTERFACE CGI/1.1
SERVER_PROTOCOL HTTP/1.1
REQUEST_METHOD GET
QUERY_STRING laravel_session=gqe233goo845bfosdofjo3toc0
REQUEST_URI /relojoaria/homem/Sector?laravel_session=gqe233goo845bfosdofjo3toc0
SCRIPT_NAME /index.php
PHP_SELF /index.php
REQUEST_TIME_FLOAT 1711668195.8002
REQUEST_TIME 1711668195
argv Array ( [0] => laravel_session=gqe233goo845bfosdofjo3toc0 )
argc 1
0. Whoops\Handler\PrettyPageHandler