http://api.aeaturismo.com.br/v1/package?api_key=KQILbV2AqgWQi1GY&time_stamp=1594920344&signature=12a463ad09ccbd92a6d9feb7c46a1bd968a8bba1520b4c1a819e96c924ab9c6d 
Whoops! There was an error.
37. PDOException
…/­vendor/­laravel/­framework/­src/­Illuminate/­Database/­Connectors/­Connector.php47
36. PDO __construct
…/­vendor/­laravel/­framework/­src/­Illuminate/­Database/­Connectors/­Connector.php47
35. Illuminate\Database\Connectors\Connector createConnection
…/­vendor/­laravel/­framework/­src/­Illuminate/­Database/­Connectors/­MySqlConnector.php20
34. Illuminate\Database\Connectors\MySqlConnector connect
…/­vendor/­laravel/­framework/­src/­Illuminate/­Database/­Connectors/­ConnectionFactory.php59
33. Illuminate\Database\Connectors\ConnectionFactory createSingleConnection
…/­vendor/­laravel/­framework/­src/­Illuminate/­Database/­Connectors/­ConnectionFactory.php47
32. Illuminate\Database\Connectors\ConnectionFactory make
…/­vendor/­laravel/­framework/­src/­Illuminate/­Database/­DatabaseManager.php127
31. Illuminate\Database\DatabaseManager makeConnection
…/­vendor/­laravel/­framework/­src/­Illuminate/­Database/­DatabaseManager.php63
30. Illuminate\Database\DatabaseManager connection
…/­vendor/­laravel/­framework/­src/­Illuminate/­Database/­Eloquent/­Model.php2649
29. Illuminate\Database\Eloquent\Model resolveConnection
…/­vendor/­laravel/­framework/­src/­Illuminate/­Database/­Eloquent/­Model.php2615
28. Illuminate\Database\Eloquent\Model getConnection
…/­vendor/­laravel/­framework/­src/­Illuminate/­Database/­Eloquent/­Model.php1686
27. Illuminate\Database\Eloquent\Model newBaseQueryBuilder
…/­vendor/­laravel/­framework/­src/­Illuminate/­Database/­Eloquent/­Model.php1609
26. Illuminate\Database\Eloquent\Model newQuery
…/­vendor/­laravel/­framework/­src/­Illuminate/­Database/­Eloquent/­Model.php2828
25. Illuminate\Database\Eloquent\Model __call
<#unknown>0
24. User where
<#unknown>0
23. call_user_func_array
…/­vendor/­laravel/­framework/­src/­Illuminate/­Database/­Eloquent/­Model.php2844
22. Illuminate\Database\Eloquent\Model __callStatic
…/­app/­controllers/­BaseController.php58
21. User where
…/­app/­controllers/­BaseController.php58
20. BaseController __construct
…/­app/­controllers/­PackageController.php28
19. PackageController __construct
<#unknown>0
18. ReflectionClass newInstanceArgs
…/­vendor/­laravel/­framework/­src/­Illuminate/­Container/­Container.php507
17. Illuminate\Container\Container build
…/­vendor/­laravel/­framework/­src/­Illuminate/­Container/­Container.php416
16. Illuminate\Container\Container make
…/­vendor/­laravel/­framework/­src/­Illuminate/­Foundation/­Application.php463
15. Illuminate\Foundation\Application make
…/­vendor/­laravel/­framework/­src/­Illuminate/­Routing/­ControllerDispatcher.php78
14. Illuminate\Routing\ControllerDispatcher makeController
…/­vendor/­laravel/­framework/­src/­Illuminate/­Routing/­ControllerDispatcher.php51
13. Illuminate\Routing\ControllerDispatcher dispatch
…/­vendor/­laravel/­framework/­src/­Illuminate/­Routing/­Router.php934
12. Illuminate\Routing\Router Illuminate\Routing\{closure}
<#unknown>0
11. call_user_func_array
…/­vendor/­laravel/­framework/­src/­Illuminate/­Routing/­Route.php105
10. Illuminate\Routing\Route run
…/­vendor/­laravel/­framework/­src/­Illuminate/­Routing/­Router.php1000
9. Illuminate\Routing\Router dispatchToRoute
…/­vendor/­laravel/­framework/­src/­Illuminate/­Routing/­Router.php968
8. Illuminate\Routing\Router dispatch
…/­vendor/­laravel/­framework/­src/­Illuminate/­Foundation/­Application.php738
7. Illuminate\Foundation\Application dispatch
…/­vendor/­laravel/­framework/­src/­Illuminate/­Foundation/­Application.php708
6. Illuminate\Foundation\Application handle
…/­vendor/­laravel/­framework/­src/­Illuminate/­Http/­FrameGuard.php38
5. Illuminate\Http\FrameGuard handle
…/­vendor/­laravel/­framework/­src/­Illuminate/­Session/­Middleware.php72
4. Illuminate\Session\Middleware handle
…/­vendor/­laravel/­framework/­src/­Illuminate/­Cookie/­Queue.php47
3. Illuminate\Cookie\Queue handle
…/­vendor/­laravel/­framework/­src/­Illuminate/­Cookie/­Guard.php51
2. Illuminate\Cookie\Guard handle
…/­vendor/­stack/­builder/­src/­Stack/­StackedHttpKernel.php23
1. Stack\StackedHttpKernel handle
…/­vendor/­laravel/­framework/­src/­Illuminate/­Foundation/­Application.php606
0. Illuminate\Foundation\Application run
…/­public/­index.php49

PDOException

SQLSTATE[HY000] [2002] Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)

	 */
	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);
	}
 
	 */
	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);
	}
 
		$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'];
	 * Create a single database connection instance.
	 *
	 * @param  array  $config
	 * @return \Illuminate\Database\Connection
	 */
	protected function createSingleConnection(array $config)
	{
		$pdo = $this->createConnector($config)->connect($config);
 
		return $this->createConnection($config['driver'], $pdo, $config['database'], $config['prefix'], $config);
 
		if (isset($config['read']))
		{
			return $this->createReadWriteConnection($config);
		}
		else
		{
			return $this->createSingleConnection($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, $name);
		}

		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);
	 * Resolve a connection instance.
	 *
	 * @param  string  $connection
	 * @return \Illuminate\Database\Connection
	 */
	public static function resolveConnection($connection = null)
	{
		return static::$resolver->connection($connection);
	}
 
	/**
	 * Get the database connection for the model.
	 *
	 * @return \Illuminate\Database\Connection
	 */
	public function getConnection()
	{
		return static::resolveConnection($this->connection);
	}
 
	/**
	 * Get a new query builder instance for the connection.
	 *
	 * @return \Illuminate\Database\Query\Builder
	 */
	protected function newBaseQueryBuilder()
	{
		$conn = $this->getConnection();
 
		$grammar = $conn->getQueryGrammar();
	 * Get a new query builder for the model's table.
	 *
	 * @param  bool  $excludeDeleted
	 * @return \Illuminate\Database\Eloquent\Builder|static
	 */
	public function newQuery($excludeDeleted = true)
	{
		$builder = $this->newEloquentBuilder($this->newBaseQueryBuilder());
 
		// Once we have the query builders, we will set the model instances so the
	public function __call($method, $parameters)
	{
		if (in_array($method, array('increment', 'decrement')))
		{
			return call_user_func_array(array($this, $method), $parameters);
		}
 
		$query = $this->newQuery();
 
		return call_user_func_array(array($query, $method), $parameters);
<#unknown>
<#unknown>
	 * @param  array   $parameters
	 * @return mixed
	 */
	public static function __callStatic($method, $parameters)
	{
		$instance = new static;
 
		return call_user_func_array(array($instance, $method), $parameters);
	}
 
		$request_type = Request::server('REQUEST_METHOD');
		$url = Request::url();
		$apiKey    = Input::get('api_key');
		//$apiKey    = "9dAQnFHCrWS4OJuz";
		$timestamp = Input::get('time_stamp');
		$signature = Input::get('signature');
		
		$user = User::where('public_api_key', '=', $apiKey)->first();
		$auth = new Authenticator($request_type, $apiKey, $url, $timestamp, $signature);
		if($auth->auth())
		$request_type = Request::server('REQUEST_METHOD');
		$url = Request::url();
		$apiKey    = Input::get('api_key');
		//$apiKey    = "9dAQnFHCrWS4OJuz";
		$timestamp = Input::get('time_stamp');
		$signature = Input::get('signature');
		
		$user = User::where('public_api_key', '=', $apiKey)->first();
		$auth = new Authenticator($request_type, $apiKey, $url, $timestamp, $signature);
		if($auth->auth())
	/**
	 * Calls the parent construct and fulfills the "lang" global variable.
	 * 
	 * @access Public
	 */
	public function __construct()
	{
		parent::__construct( Input::all() );
	}
 
<#unknown>
		// Once we have all the constructor's parameters we can create each of the
		// dependency instances and then use the reflection instances to make a
		// new instance of this class, injecting the created dependencies in.
		$deps = array_merge($parameters, $this->getDependencies(
			array_diff_key($classes, $parameters)
		));
 
		return $reflector->newInstanceArgs($deps);
	}
 
		$concrete = $this->getConcrete($abstract);
 
		// We're ready to instantiate an instance of the concrete type registered for
		// the binding. This will instantiate the types, as well as resolve any of
		// its "nested" dependencies recursively until all have gotten resolved.
		if ($this->isBuildable($concrete, $abstract))
		{
			$object = $this->build($concrete, $parameters);
		}
		else
		$abstract = $this->getAlias($abstract);
 
		if (isset($this->deferredServices[$abstract]))
		{
			$this->loadDeferredProvider($abstract);
		}
 
		return parent::make($abstract, $parameters);
	}
 
	 * @param  string  $controller
	 * @return mixed
	 */
	protected function makeController($controller)
	{
		Controller::setFilterer($this->filterer);
 
		return $this->container->make($controller);
	}
 
	 * @return mixed
	 */
	public function dispatch(Route $route, Request $request, $controller, $method)
	{
		// First we will make an instance of this controller via the IoC container instance
		// so that we can call the methods on it. We will also apply any "after" filters
		// to the route so that they will be run by the routers after this processing.
		$instance = $this->makeController($controller);
 
		$this->assignAfter($instance, $route, $request, $method);
			$request = $me->getCurrentRequest();
 
			// Now we can split the controller and method out of the action string so that we
			// can call them appropriately on the class. This controller and method are in
			// in the Class@method format and we need to explode them out then use them.
			list($class, $method) = explode('@', $controller);
 
			return $d->dispatch($route, $request, $class, $method);
		};
	}
<#unknown>
	 *
	 * @return mixed
	 */
	public function run()
	{
		$parameters = array_filter($this->parameters(), function($p) { return isset($p); });

		return call_user_func_array($this->action['uses'], $parameters);
	}

		// Once we have successfully matched the incoming request to a given route we
		// can call the before filters on that route. This works similar to global
		// filters in that if a response is returned we will not call the route.
		$response = $this->callRouteBefore($route, $request);
 
		if (is_null($response))
		{
			$response = $route->run($request);
		}
 
		// If no response was returned from the before filter, we will call the proper
		// route instance to get the response. If no route is found a response will
		// still get returned based on why no routes were found for this request.
		$response = $this->callFilter('before', $request);
 
		if (is_null($response))
		{
			$response = $this->dispatchToRoute($request);
		}
 
		}
 
		if ($this->runningUnitTests() && ! $this['session']->isStarted())
		{
			$this['session']->start();
		}
 
		return $this['router']->dispatch($this->prepareRequest($request));
	}
 
	{
		try
		{
			$this->refreshRequest($request = Request::createFromBase($request));
 
			$this->boot();
 
			return $this->dispatch($request);
		}
		catch (\Exception $e)
	 * @param  \Symfony\Component\HttpFoundation\Request  $request
	 * @param  int   $type
	 * @param  bool  $catch
	 * @return \Symfony\Component\HttpFoundation\Response
	 */
	public function handle(SymfonyRequest $request, $type = HttpKernelInterface::MASTER_REQUEST, $catch = true)
	{
		$response = $this->app->handle($request, $type, $catch);
 
		$response->headers->set('X-Frame-Options', 'SAMEORIGIN', false);
		if ($this->sessionConfigured())
		{
			$session = $this->startSession($request);
 
			$request->setSession($session);
		}
 
		$response = $this->app->handle($request, $type, $catch);
 
		// Again, if the session has been configured we will need to close out the session
	 * @param  \Symfony\Component\HttpFoundation\Request  $request
	 * @param  int   $type
	 * @param  bool  $catch
	 * @return \Symfony\Component\HttpFoundation\Response
	 */
	public function handle(Request $request, $type = HttpKernelInterface::MASTER_REQUEST, $catch = true)
	{
		$response = $this->app->handle($request, $type, $catch);
 
		foreach ($this->cookies->getQueuedCookies() as $cookie)
	 * @param  \Symfony\Component\HttpFoundation\Request  $request
	 * @param  int   $type
	 * @param  bool  $catch
	 * @return \Symfony\Component\HttpFoundation\Response
	 */
	public function handle(Request $request, $type = HttpKernelInterface::MASTER_REQUEST, $catch = true)
	{
		return $this->encrypt($this->app->handle($this->decrypt($request), $type, $catch));
	}
 
    {
        $this->app = $app;
        $this->middlewares = $middlewares;
    }
 
    public function handle(Request $request, $type = HttpKernelInterface::MASTER_REQUEST, $catch = true)
    {
        return $this->app->handle($request, $type, $catch);
    }
 
	 * @param  \Symfony\Component\HttpFoundation\Request  $request
	 * @return void
	 */
	public function run(SymfonyRequest $request = null)
	{
		$request = $request ?: $this['request'];
 
		$response = with($stack = $this->getStackedClient())->handle($request);
 
		$response->send();
| 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 application we have whipped up for them.
|
*/
 
$app->run();
 
Key Value
REDIRECT_STATUS 200
HTTP_HOST api.aeaturismo.com.br
HTTP_ACCEPT */*
PATH /usr/local/bin:/usr/bin:/bin
SERVER_SIGNATURE <address>Apache/2.2.22 (Debian) Server at api.aeaturismo.com.br Port 80</address>
SERVER_SOFTWARE Apache/2.2.22 (Debian)
SERVER_NAME api.aeaturismo.com.br
SERVER_ADDR 96.126.121.60
SERVER_PORT 80
REMOTE_ADDR 96.126.121.60
DOCUMENT_ROOT /srv/www/api.aeaturismo.com.br/public_html/public
SERVER_ADMIN webmaster@aeatour.com
SCRIPT_FILENAME /srv/www/api.aeaturismo.com.br/public_html/public/index.php
REMOTE_PORT 53542
REDIRECT_QUERY_STRING api_key=KQILbV2AqgWQi1GY&time_stamp=1594920344&signature=12a463ad09ccbd92a6d9feb7c46a1bd968a8bba1520b4c1a819e96c924ab9c6d
REDIRECT_URL /v1/package
GATEWAY_INTERFACE CGI/1.1
SERVER_PROTOCOL HTTP/1.1
REQUEST_METHOD GET
QUERY_STRING api_key=KQILbV2AqgWQi1GY&time_stamp=1594920344&signature=12a463ad09ccbd92a6d9feb7c46a1bd968a8bba1520b4c1a819e96c924ab9c6d
REQUEST_URI /v1/package?api_key=KQILbV2AqgWQi1GY&time_stamp=1594920344&signature=12a463ad09ccbd92a6d9feb7c46a1bd968a8bba1520b4c1a819e96c924ab9c6d
SCRIPT_NAME /index.php
PHP_SELF /index.php
REQUEST_TIME_FLOAT 1594920344.378
REQUEST_TIME 1594920344
Key Value
api_key KQILbV2AqgWQi1GY
time_stamp 1594920344
signature 12a463ad09ccbd92a6d9feb7c46a1bd968a8bba1520b4c1a819e96c924ab9c6d
empty
empty
empty
empty
empty
0. Whoops\Handler\PrettyPageHandler

Whoops, looks like something went wrong.

1/1 HttpException in Application.php line 904: The server response wasn't in a JSON format.

  1. in Application.php line 904
  2. at Application->abort('403', 'The server response wasn't in a JSON format.', array()) in helpers.php line 21
  3. at abort('403', 'The server response wasn't in a JSON format.') in BaseModel.php line 136
  4. at BaseModel->request('GET', 'package') in Package.php line 56
  5. at Package->getAllPackage() in Package.php line 156
  6. at Package->getPackagesByRegionId('9') in RegionController.php line 39
  7. at RegionController->showRegionPackagesView(object(Request), '9', '91')
  8. at call_user_func_array(array(object(RegionController), 'showRegionPackagesView'), array(object(Request), 'region_id' => '9', 'photo_id' => '91')) in Controller.php line 246
  9. at Controller->callAction('showRegionPackagesView', array(object(Request), 'region_id' => '9', 'photo_id' => '91')) in ControllerDispatcher.php line 162
  10. at ControllerDispatcher->call(object(RegionController), object(Route), 'showRegionPackagesView') in ControllerDispatcher.php line 107
  11. at ControllerDispatcher->Illuminate\Routing\{closure}(object(Request))
  12. at call_user_func(object(Closure), object(Request)) in Pipeline.php line 141
  13. at Pipeline->Illuminate\Pipeline\{closure}(object(Request))
  14. at call_user_func(object(Closure), object(Request)) in Pipeline.php line 101
  15. at Pipeline->then(object(Closure)) in ControllerDispatcher.php line 108
  16. at ControllerDispatcher->callWithinStack(object(RegionController), object(Route), object(Request), 'showRegionPackagesView') in ControllerDispatcher.php line 67
  17. at ControllerDispatcher->dispatch(object(Route), object(Request), 'Apolo\Http\Controllers\RegionController', 'showRegionPackagesView') in Route.php line 204
  18. at Route->runWithCustomDispatcher(object(Request)) in Route.php line 134
  19. at Route->run(object(Request)) in Router.php line 701
  20. at Router->Illuminate\Routing\{closure}(object(Request))
  21. at call_user_func(object(Closure), object(Request)) in Pipeline.php line 141
  22. at Pipeline->Illuminate\Pipeline\{closure}(object(Request))
  23. at call_user_func(object(Closure), object(Request)) in Pipeline.php line 101
  24. at Pipeline->then(object(Closure)) in Router.php line 703
  25. at Router->runRouteWithinStack(object(Route), object(Request)) in Router.php line 670
  26. at Router->dispatchToRoute(object(Request)) in Router.php line 628
  27. at Router->dispatch(object(Request)) in Kernel.php line 214
  28. at Kernel->Illuminate\Foundation\Http\{closure}(object(Request))
  29. at call_user_func(object(Closure), object(Request)) in Pipeline.php line 141
  30. at Pipeline->Illuminate\Pipeline\{closure}(object(Request)) in ShareErrorsFromSession.php line 55
  31. at ShareErrorsFromSession->handle(object(Request), object(Closure)) in Pipeline.php line 125
  32. at Pipeline->Illuminate\Pipeline\{closure}(object(Request)) in StartSession.php line 61
  33. at StartSession->handle(object(Request), object(Closure)) in Pipeline.php line 125
  34. at Pipeline->Illuminate\Pipeline\{closure}(object(Request)) in AddQueuedCookiesToResponse.php line 36
  35. at AddQueuedCookiesToResponse->handle(object(Request), object(Closure)) in Pipeline.php line 125
  36. at Pipeline->Illuminate\Pipeline\{closure}(object(Request)) in EncryptCookies.php line 40
  37. at EncryptCookies->handle(object(Request), object(Closure)) in Pipeline.php line 125
  38. at Pipeline->Illuminate\Pipeline\{closure}(object(Request)) in CheckForMaintenanceMode.php line 42
  39. at CheckForMaintenanceMode->handle(object(Request), object(Closure)) in Pipeline.php line 125
  40. at Pipeline->Illuminate\Pipeline\{closure}(object(Request))
  41. at call_user_func(object(Closure), object(Request)) in Pipeline.php line 101
  42. at Pipeline->then(object(Closure)) in Kernel.php line 115
  43. at Kernel->sendRequestThroughRouter(object(Request)) in Kernel.php line 84
  44. at Kernel->handle(object(Request)) in index.php line 53