http://api.aeaturismo.com.br/v1/package/all-routes?api_key=uxrn7xuvEqTmhr1F&time_stamp=1734189924&signature=4fcfc8d7e824cd9aee2052545a5ef718c955d69134ecd47fcce74338ddedfd97 
Whoops! There was an error.
20. ErrorException
…/­app/­controllers/­PackageController.php627
19. Illuminate\Exception\Handler handleError
…/­app/­controllers/­PackageController.php627
18. PackageController packageCities
…/­app/­controllers/­PackageController.php143
17. PackageController packagesRoutes
<#unknown>0
16. call_user_func_array
…/­vendor/­laravel/­framework/­src/­Illuminate/­Routing/­Controller.php194
15. Illuminate\Routing\Controller callAction
…/­vendor/­laravel/­framework/­src/­Illuminate/­Routing/­ControllerDispatcher.php93
14. Illuminate\Routing\ControllerDispatcher call
…/­vendor/­laravel/­framework/­src/­Illuminate/­Routing/­ControllerDispatcher.php62
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

ErrorException

Undefined property: stdClass::$origin

		$package_route = array();
 
		foreach( $package->days()->get() as $day )
			foreach( $day->main_services()->where('type', '=', 'main')->get() as $main )
			{
				$service = (object) $this->getServices($main->service_day_id, 'main');
 
				$origin = City::where('name', '=', $service->origin)->first();
				$origin = $this->assembleCityInformation($origin);
 
		$package_route = array();
 
		foreach( $package->days()->get() as $day )
			foreach( $day->main_services()->where('type', '=', 'main')->get() as $main )
			{
				$service = (object) $this->getServices($main->service_day_id, 'main');
 
				$origin = City::where('name', '=', $service->origin)->first();
				$origin = $this->assembleCityInformation($origin);
 
			$pack['code']  = $package->code;
			$pack['days']  = $package->days;
			$pack['city']  = $package->city->name.' - '.$package->city->state->acronym;
			$pack['name']  = isset( $description->name ) ? $description->name   : '';
			$pack['title'] = isset( $description->title ) ? $description->title : '';
 
			$routes[$package->id]['package'] = $pack;
			$routes[$package->id]['days'] = $this->packageCities($package);
		}
 
<#unknown>
	 * @param array   $parameters
	 * @return \Symfony\Component\HttpFoundation\Response
	 */
	public function callAction($method, $parameters)
	{
		$this->setupLayout();
 
		$response = call_user_func_array(array($this, $method), $parameters);
 
		// If no response is returned from the controller action and a layout is being
	 * @param  string  $method
	 * @return mixed
	 */
	protected function call($instance, $route, $method)
	{
		$parameters = $route->parametersWithoutNulls();
 
		return $instance->callAction($method, $parameters);
	}
 
		$response = $this->before($instance, $route, $request, $method);
 
		// If no before filters returned a response we'll call the method on the controller
		// to get the response to be returned to the router. We will then return it back
		// out for processing by this router and the after filters can be called then.
		if (is_null($response))
		{
			$response = $this->call($instance, $route, $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 46144
REDIRECT_QUERY_STRING api_key=uxrn7xuvEqTmhr1F&time_stamp=1734189924&signature=4fcfc8d7e824cd9aee2052545a5ef718c955d69134ecd47fcce74338ddedfd97
REDIRECT_URL /v1/package/all-routes
GATEWAY_INTERFACE CGI/1.1
SERVER_PROTOCOL HTTP/1.1
REQUEST_METHOD GET
QUERY_STRING api_key=uxrn7xuvEqTmhr1F&time_stamp=1734189924&signature=4fcfc8d7e824cd9aee2052545a5ef718c955d69134ecd47fcce74338ddedfd97
REQUEST_URI /v1/package/all-routes?api_key=uxrn7xuvEqTmhr1F&time_stamp=1734189924&signature=4fcfc8d7e824cd9aee2052545a5ef718c955d69134ecd47fcce74338ddedfd97
SCRIPT_NAME /index.php
PHP_SELF /index.php
REQUEST_TIME_FLOAT 1734189924.136
REQUEST_TIME 1734189924
Key Value
api_key uxrn7xuvEqTmhr1F
time_stamp 1734189924
signature 4fcfc8d7e824cd9aee2052545a5ef718c955d69134ecd47fcce74338ddedfd97
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 133
  4. at BaseModel->request('GET', 'package/all-routes') in Package.php line 115
  5. at Package->getPackagesRoute() in Map.php line 60
  6. at Map->initMap() in RoteiroController.php line 72
  7. at RoteiroController->index(object(Request))
  8. at call_user_func_array(array(object(RoteiroController), 'index'), array(object(Request))) in Controller.php line 246
  9. at Controller->callAction('index', array(object(Request))) in ControllerDispatcher.php line 162
  10. at ControllerDispatcher->call(object(RoteiroController), object(Route), 'index') 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(RoteiroController), object(Route), object(Request), 'index') in ControllerDispatcher.php line 67
  17. at ControllerDispatcher->dispatch(object(Route), object(Request), 'Morpheus\Http\Controllers\RoteiroController', 'index') 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 106