^ ErrorException {#1727
  #message: "Trying to get property 'airports' of non-object"
  #code: 0
  #file: "/workspace/app/Services/AnalyticsService.php"
  #line: 380
  #severity: E_NOTICE
  trace: {
    /workspace/app/Services/AnalyticsService.php:380 {
      App\Services\AnalyticsService::App\Services\{closure} …
      › 'from'           => optional( $fromCity->airports->first() )->code,'to'             => optional( $toCity->airports->first() )->code,'from_city'      => $fromCity->code,
    }
    App\Services\AnalyticsService::App\Services\{closure}() {}
    /workspace/vendor/laravel/framework/src/Illuminate/Support/Collection.php:1120 {
      Illuminate\Support\Collection->map(callable $callback) …
      › 
      › $items = array_map($callback, $this->items, $keys);}
    /workspace/vendor/laravel/framework/src/Illuminate/Support/Collection.php:125 {
      Illuminate\Support\Collection::times($number, callable $callback = null) …
      › 
      ›     return (new static(range(1, $number)))->map($callback);}
    }
    /workspace/app/Services/AnalyticsService.php:422 {
      App\Services\AnalyticsService::generateFlights($from, $to, $searchType, int $count = 6, array $default = null): Collection …
      ›     return $flight;} );}
    /workspace/app/Services/AnalyticsService.php:211 {
      App\Services\AnalyticsService::minDurations($from = null, $to = null): Collection …
      › if( ! $flights or count( $flights ) <= 0) {    $flights = self::generateFlights( $from, $to, Flight::ONEWAY, 5 );}
    }
    /workspace/storage/framework/views/e9c28cc0cec85ffc1485b1f3fcc3135fbd3ca8d0.php:49 {
      include …
      › $durations = [];foreach($analytics->minDurations($defaultCountry, $content) as $flighs) {    $durations[] = "{$flighs->fromCity->name} {$flighs->toCity->name} Uçuşları: {$flighs->min}";
    }
    /workspace/vendor/laravel/framework/src/Illuminate/View/Engines/PhpEngine.php:43 {
      Illuminate\View\Engines\PhpEngine->evaluatePath($__path, $__data) …
      › try {    include $__path;} catch (Exception $e) {
      arguments: {
        "/workspace/storage/framework/views/e9c28cc0cec85ffc1485b1f3fcc3135fbd3ca8d0.php"
      }
    }
    /workspace/vendor/laravel/framework/src/Illuminate/View/Engines/CompilerEngine.php:59 {
      Illuminate\View\Engines\CompilerEngine->get($path, array $data = []) …
      › // which have been rendered for right exception messages to be generated.$results = $this->evaluatePath($compiled, $data);}
    /workspace/vendor/laravel/framework/src/Illuminate/View/View.php:142 {
      Illuminate\View\View->getContents() …
      › {    return $this->engine->get($this->path, $this->gatherData());}
    }
    /workspace/vendor/laravel/framework/src/Illuminate/View/View.php:125 {
      Illuminate\View\View->renderContents() …
      › 
      › $contents = $this->getContents();}
    /workspace/vendor/laravel/framework/src/Illuminate/View/View.php:90 {
      Illuminate\View\View->render(callable $callback = null) …
      › try {    $contents = $this->renderContents();}
    /workspace/vendor/laravel/framework/src/Illuminate/Http/Response.php:42 {
      Illuminate\Http\Response->setContent($content) …
      › elseif ($content instanceof Renderable) {    $content = $content->render();}
    }
    /workspace/vendor/symfony/http-foundation/Response.php:205 {
      Symfony\Component\HttpFoundation\Response->__construct($content = '', int $status = 200, array $headers = []) …
      › $this->headers = new ResponseHeaderBag($headers);$this->setContent($content);$this->setStatusCode($status);
    }
    /workspace/vendor/laravel/framework/src/Illuminate/Routing/Router.php:748 {
      Illuminate\Routing\Router::toResponse($request, $response) …
      › } elseif (! $response instanceof SymfonyResponse) {    $response = new Response($response);}
    }
    /workspace/vendor/laravel/framework/src/Illuminate/Routing/Router.php:720 {
      Illuminate\Routing\Router->prepareResponse($request, $response) …
      › {    return static::toResponse($request, $response);}
    }
    /workspace/vendor/laravel/framework/src/Illuminate/Routing/Router.php:680 {
      Illuminate\Routing\Router->Illuminate\Routing\{closure} …
      › return $this->prepareResponse(    $request, $route->run());
    }
    /workspace/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php:30 {
      Illuminate\Routing\Pipeline->Illuminate\Routing\{closure} …
      › try {    return $destination($passable);} catch (Exception $e) {
    }
    /workspace/app/Http/Middleware/CatchAffiliateMiddleware.php:44 {
      App\Http\Middleware\CatchAffiliateMiddleware->handle($request, Closure $next) …
      › 
      ›     return $next( $request );}
    }
    /workspace/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:163 {
      Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure} …
      › $response = method_exists($pipe, $this->method)                ? $pipe->{$this->method}(...$parameters)                : $pipe(...$parameters);
    }
    /workspace/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php:53 {
      Illuminate\Routing\Pipeline->Illuminate\Routing\{closure} …
      › 
      ›     return $callable($passable);} catch (Exception $e) {
    }
    /workspace/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php:41 {
      Illuminate\Routing\Middleware\SubstituteBindings->handle($request, Closure $next) …
      › 
      ›     return $next($request);}
    }
    /workspace/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:163 {
      Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure} …
      › $response = method_exists($pipe, $this->method)                ? $pipe->{$this->method}(...$parameters)                : $pipe(...$parameters);
    }
    /workspace/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php:53 {
      Illuminate\Routing\Pipeline->Illuminate\Routing\{closure} …
      › 
      ›     return $callable($passable);} catch (Exception $e) {
    }
    /workspace/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php:75 {
      Illuminate\Foundation\Http\Middleware\VerifyCsrfToken->handle($request, Closure $next) …
      › ) {    return tap($next($request), function ($response) use ($request) {        if ($this->shouldAddXsrfTokenCookie()) {
    }
    /workspace/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:163 {
      Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure} …
      › $response = method_exists($pipe, $this->method)                ? $pipe->{$this->method}(...$parameters)                : $pipe(...$parameters);
    }
    /workspace/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php:53 {
      Illuminate\Routing\Pipeline->Illuminate\Routing\{closure} …
      › 
      ›     return $callable($passable);} catch (Exception $e) {
    }
    /workspace/vendor/laravel/framework/src/Illuminate/View/Middleware/ShareErrorsFromSession.php:49 {
      Illuminate\View\Middleware\ShareErrorsFromSession->handle($request, Closure $next) …
      › 
      ›     return $next($request);}
    }
    /workspace/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:163 {
      Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure} …
      › $response = method_exists($pipe, $this->method)                ? $pipe->{$this->method}(...$parameters)                : $pipe(...$parameters);
    }
    /workspace/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php:53 {
      Illuminate\Routing\Pipeline->Illuminate\Routing\{closure} …
      › 
      ›     return $callable($passable);} catch (Exception $e) {
    }
    /workspace/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php:56 {
      Illuminate\Session\Middleware\StartSession->handle($request, Closure $next) …
      › 
      › $response = $next($request);}
    /workspace/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:163 {
      Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure} …
      › $response = method_exists($pipe, $this->method)                ? $pipe->{$this->method}(...$parameters)                : $pipe(...$parameters);
    }
    /workspace/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php:53 {
      Illuminate\Routing\Pipeline->Illuminate\Routing\{closure} …
      › 
      ›     return $callable($passable);} catch (Exception $e) {
    }
    /workspace/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php:37 {
      Illuminate\Cookie\Middleware\AddQueuedCookiesToResponse->handle($request, Closure $next) …
      › {    $response = $next($request);}
    /workspace/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:163 {
      Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure} …
      › $response = method_exists($pipe, $this->method)                ? $pipe->{$this->method}(...$parameters)                : $pipe(...$parameters);
    }
    /workspace/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php:53 {
      Illuminate\Routing\Pipeline->Illuminate\Routing\{closure} …
      › 
      ›     return $callable($passable);} catch (Exception $e) {
    }
    /workspace/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php:66 {
      Illuminate\Cookie\Middleware\EncryptCookies->handle($request, Closure $next) …
      › {    return $this->encrypt($next($this->decrypt($request)));}
    }
    /workspace/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:163 {
      Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure} …
      › $response = method_exists($pipe, $this->method)                ? $pipe->{$this->method}(...$parameters)                : $pipe(...$parameters);
    }
    /workspace/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php:53 {
      Illuminate\Routing\Pipeline->Illuminate\Routing\{closure} …
      › 
      ›     return $callable($passable);} catch (Exception $e) {
    }
    /workspace/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:104 {
      Illuminate\Pipeline\Pipeline->then(Closure $destination) …
      › 
      ›     return $pipeline($this->passable);}
    }
    /workspace/vendor/laravel/framework/src/Illuminate/Routing/Router.php:682 {
      Illuminate\Routing\Router->runRouteWithinStack(Route $route, Request $request) …
      ›                         );                    });}
    }
    /workspace/vendor/laravel/framework/src/Illuminate/Routing/Router.php:657 {
      Illuminate\Routing\Router->runRoute(Request $request, Route $route) …
      › return $this->prepareResponse($request,    $this->runRouteWithinStack($route, $request));
    }
    /workspace/vendor/laravel/framework/src/Illuminate/Routing/Router.php:623 {
      Illuminate\Routing\Router->dispatchToRoute(Request $request) …
      › {    return $this->runRoute($request, $this->findRoute($request));}
    }
    /workspace/vendor/laravel/framework/src/Illuminate/Routing/Router.php:612 {
      Illuminate\Routing\Router->dispatch(Request $request) …
      › 
      ›     return $this->dispatchToRoute($request);}
    }
    /workspace/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php:176 {
      Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure} …
      › 
      ›     return $this->router->dispatch($request);};
    }
    /workspace/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php:30 {
      Illuminate\Routing\Pipeline->Illuminate\Routing\{closure} …
      › try {    return $destination($passable);} catch (Exception $e) {
    }
    /workspace/vendor/beyondcode/laravel-server-timing/src/Middleware/ServerTimingMiddleware.php:36 {
      BeyondCode\ServerTiming\Middleware\ServerTimingMiddleware->handle(Request $request, Closure $next) …
      › /** @var Response $response */$response = $next($request);}
    /workspace/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:163 {
      Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure} …
      › $response = method_exists($pipe, $this->method)                ? $pipe->{$this->method}(...$parameters)                : $pipe(...$parameters);
    }
    /workspace/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php:53 {
      Illuminate\Routing\Pipeline->Illuminate\Routing\{closure} …
      › 
      ›     return $callable($passable);} catch (Exception $e) {
    }
    /workspace/vendor/spatie/laravel-cors/src/Cors.php:28 {
      Spatie\Cors\Cors->handle($request, Closure $next) …
      › if (! $this->isCorsRequest($request)) {    return $next($request);}
    }
    /workspace/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:163 {
      Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure} …
      › $response = method_exists($pipe, $this->method)                ? $pipe->{$this->method}(...$parameters)                : $pipe(...$parameters);
    }
    /workspace/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php:53 {
      Illuminate\Routing\Pipeline->Illuminate\Routing\{closure} …
      › 
      ›     return $callable($passable);} catch (Exception $e) {
    }
    /workspace/app/Http/Middleware/GetSetTrackCodeCookie.php:60 {
      App\Http\Middleware\GetSetTrackCodeCookie->handle($request, Closure $next) …
      › 
      ›     return $next($request)->cookie('user_track_code', json_encode($array), (60*24*30));}
    }
    /workspace/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:163 {
      Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure} …
      › $response = method_exists($pipe, $this->method)                ? $pipe->{$this->method}(...$parameters)                : $pipe(...$parameters);
    }
    /workspace/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php:53 {
      Illuminate\Routing\Pipeline->Illuminate\Routing\{closure} …
      › 
      ›     return $callable($passable);} catch (Exception $e) {
    }
    /workspace/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php:21 {
      Illuminate\Foundation\Http\Middleware\TransformsRequest->handle($request, Closure $next) …
      › 
      ›     return $next($request);}
    }
    /workspace/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:163 {
      Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure} …
      › $response = method_exists($pipe, $this->method)                ? $pipe->{$this->method}(...$parameters)                : $pipe(...$parameters);
    }
    /workspace/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php:53 {
      Illuminate\Routing\Pipeline->Illuminate\Routing\{closure} …
      › 
      ›     return $callable($passable);} catch (Exception $e) {
    }
    /workspace/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php:21 {
      Illuminate\Foundation\Http\Middleware\TransformsRequest->handle($request, Closure $next) …
      › 
      ›     return $next($request);}
    }
    /workspace/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:163 {
      Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure} …
      › $response = method_exists($pipe, $this->method)                ? $pipe->{$this->method}(...$parameters)                : $pipe(...$parameters);
    }
    /workspace/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php:53 {
      Illuminate\Routing\Pipeline->Illuminate\Routing\{closure} …
      › 
      ›     return $callable($passable);} catch (Exception $e) {
    }
    /workspace/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php:27 {
      Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle($request, Closure $next) …
      › 
      ›     return $next($request);}
    }
    /workspace/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:163 {
      Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure} …
      › $response = method_exists($pipe, $this->method)                ? $pipe->{$this->method}(...$parameters)                : $pipe(...$parameters);
    }
    /workspace/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php:53 {
      Illuminate\Routing\Pipeline->Illuminate\Routing\{closure} …
      › 
      ›     return $callable($passable);} catch (Exception $e) {
    }
    /workspace/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/CheckForMaintenanceMode.php:62 {
      Illuminate\Foundation\Http\Middleware\CheckForMaintenanceMode->handle($request, Closure $next) …
      › 
      ›     return $next($request);}
    }
    /workspace/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:163 {
      Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure} …
      › $response = method_exists($pipe, $this->method)                ? $pipe->{$this->method}(...$parameters)                : $pipe(...$parameters);
    }
    /workspace/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php:53 {
      Illuminate\Routing\Pipeline->Illuminate\Routing\{closure} …
      › 
      ›     return $callable($passable);} catch (Exception $e) {
    }
    /workspace/vendor/fideloper/proxy/src/TrustProxies.php:57 {
      Fideloper\Proxy\TrustProxies->handle(Request $request, Closure $next) …
      › 
      ›     return $next($request);}
    }
    /workspace/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:163 {
      Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure} …
      › $response = method_exists($pipe, $this->method)                ? $pipe->{$this->method}(...$parameters)                : $pipe(...$parameters);
    }
    /workspace/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php:53 {
      Illuminate\Routing\Pipeline->Illuminate\Routing\{closure} …
      › 
      ›     return $callable($passable);} catch (Exception $e) {
    }
    /workspace/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:104 {
      Illuminate\Pipeline\Pipeline->then(Closure $destination) …
      › 
      ›     return $pipeline($this->passable);}
    }
    /workspace/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php:151 {
      Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter($request) …
      ›                 ->through($this->app->shouldSkipMiddleware() ? [] : $this->middleware)                ->then($this->dispatchToRouter());}
    }
    /workspace/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php:116 {
      Illuminate\Foundation\Http\Kernel->handle($request) …
      › 
      ›     $response = $this->sendRequestThroughRouter($request);} catch (Exception $e) {
    }
    /workspace/public/index.php:55 {$response = $kernel->handle(    $request = Illuminate\Http\Request::capture());
    }
  }
}