ErrorException {#309
  #message: "Undefined offset: 0"
  #code: 0
  #file: "/var/www/html/femart/femart/app/Http/Controllers/ConnectController.php"
  #line: 73
  #severity: E_NOTICE
  trace: {
    /var/www/html/femart/femart/app/Http/Controllers/ConnectController.php:73 {
      App\Http\Controllers\ConnectController->formatBlogpostsFromIG($posts, $userid) …
      › 
      › $caption = $p['node']['edge_media_to_caption']['edges'][0]['node']['text'];$post_id = $p['node']['shortcode'];
      arguments: {
        $level: 8
        $message: "Undefined offset: 0"
        $file: "/var/www/html/femart/femart/app/Http/Controllers/ConnectController.php"
        $line: 73
        $context: array:5 [ …5]
      }
    }
    /var/www/html/femart/femart/app/Http/Controllers/ConnectController.php:113 {
      App\Http\Controllers\ConnectController->getPostsFromUser($id) …
      ›     $blogpostsFromIG = json_decode($callApi('GET', "https://www.instagram.com/" . $user->instagramUsername . "/?__a=1", null), true);    $formattedBlogpostsFromIG = $this->formatBlogpostsFromIG($blogpostsFromIG, $user->id);}
      arguments: {
        $posts: array:5 [ …5]
        $userid: 7
      }
    }
    /var/www/html/femart/femart/app/Http/Controllers/ConnectController.php:40 {
      App\Http\Controllers\ConnectController->getAllBlogposts($order_by) …
      › foreach ($users as $user) {    $allblogpostsOfUser = $this->getPostsFromUser($user->id);arguments: {
        $id: 7
      }
    }
    /var/www/html/femart/femart/app/Http/Controllers/ConnectController.php:145 {
      App\Http\Controllers\ConnectController->discover() …
      › 
      › $posts = $this->getAllBlogposts($order_by);arguments: {
        $order_by: "desc"
      }
    }
    App\Http\Controllers\ConnectController->discover() {}
    /var/www/html/femart/femart/vendor/laravel/framework/src/Illuminate/Routing/Controller.php:54 {
      Illuminate\Routing\Controller->callAction($method, $parameters) …
      › {    return call_user_func_array([$this, $method], $parameters);}
      arguments: {
        $function_name: array:2 [ …2]
        $parameters: []
      }
    }
    /var/www/html/femart/femart/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php:45 {
      Illuminate\Routing\ControllerDispatcher->dispatch(Route $route, $controller, $method) …
      › if (method_exists($controller, 'callAction')) {    return $controller->callAction($method, $parameters);}
      arguments: {
        $method: "Discover"
        $parameters: []
      }
    }
    /var/www/html/femart/femart/vendor/laravel/framework/src/Illuminate/Routing/Route.php:219 {
      Illuminate\Routing\Route->runController() …
      › return $this->controllerDispatcher()->dispatch(    $this, $this->getController(), $this->getControllerMethod());
      arguments: {
        $route: Illuminate\Routing\Route {#222 …}
        $controller: App\Http\Controllers\ConnectController {#257 …}
        $method: "Discover"
      }
    }
    /var/www/html/femart/femart/vendor/laravel/framework/src/Illuminate/Routing/Route.php:176 {
      Illuminate\Routing\Route->run() …
      › if ($this->isControllerAction()) {    return $this->runController();}
    }
    /var/www/html/femart/femart/vendor/laravel/framework/src/Illuminate/Routing/Router.php:681 {
      Illuminate\Routing\Router->Illuminate\Routing\{closure} …
      › return $this->prepareResponse(    $request, $route->run());
    }
    /var/www/html/femart/femart/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:130 {
      Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure} …
      › try {    return $destination($passable);} catch (Exception $e) {
      arguments: {
        Illuminate\Http\Request {#51 …}
      }
    }
    /var/www/html/femart/femart/app/Http/Middleware/SetLanguage.php:32 {
      App\Http\Middleware\SetLanguage->handle($request, Closure $next) …
      › 
      ›     return $next($request);}
      arguments: {
        Illuminate\Http\Request {#51 …}
      }
    }
    /var/www/html/femart/femart/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:171 {
      Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure} …
      › $carry = method_exists($pipe, $this->method)                ? $pipe->{$this->method}(...$parameters)                : $pipe(...$parameters);
      arguments: {
        $request: Illuminate\Http\Request {#51 …}
        $next: Closure($passable) {#250 …}
      }
    }
    /var/www/html/femart/femart/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php:41 {
      Illuminate\Routing\Middleware\SubstituteBindings->handle($request, Closure $next) …
      › 
      ›     return $next($request);}
      arguments: {
        Illuminate\Http\Request {#51 …}
      }
    }
    /var/www/html/femart/femart/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:171 {
      Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure} …
      › $carry = method_exists($pipe, $this->method)                ? $pipe->{$this->method}(...$parameters)                : $pipe(...$parameters);
      arguments: {
        $request: Illuminate\Http\Request {#51 …}
        $next: Closure($passable) {#250 …}
      }
    }
    /var/www/html/femart/femart/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php:76 {
      Illuminate\Foundation\Http\Middleware\VerifyCsrfToken->handle($request, Closure $next) …
      › ) {    return tap($next($request), function ($response) use ($request) {        if ($this->shouldAddXsrfTokenCookie()) {
      arguments: {
        Illuminate\Http\Request {#51 …}
      }
    }
    /var/www/html/femart/femart/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:171 {
      Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure} …
      › $carry = method_exists($pipe, $this->method)                ? $pipe->{$this->method}(...$parameters)                : $pipe(...$parameters);
      arguments: {
        $request: Illuminate\Http\Request {#51 …}
        $next: Closure($passable) {#250 …}
      }
    }
    /var/www/html/femart/femart/vendor/laravel/framework/src/Illuminate/View/Middleware/ShareErrorsFromSession.php:49 {
      Illuminate\View\Middleware\ShareErrorsFromSession->handle($request, Closure $next) …
      › 
      ›     return $next($request);}
      arguments: {
        Illuminate\Http\Request {#51 …}
      }
    }
    /var/www/html/femart/femart/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:171 {
      Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure} …
      › $carry = method_exists($pipe, $this->method)                ? $pipe->{$this->method}(...$parameters)                : $pipe(...$parameters);
      arguments: {
        $request: Illuminate\Http\Request {#51 …}
        $next: Closure($passable) {#250 …}
      }
    }
    /var/www/html/femart/femart/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php:56 {
      Illuminate\Session\Middleware\StartSession->handle($request, Closure $next) …
      › 
      › $response = $next($request);arguments: {
        Illuminate\Http\Request {#51 …}
      }
    }
    /var/www/html/femart/femart/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:171 {
      Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure} …
      › $carry = method_exists($pipe, $this->method)                ? $pipe->{$this->method}(...$parameters)                : $pipe(...$parameters);
      arguments: {
        $request: Illuminate\Http\Request {#51 …}
        $next: Closure($passable) {#250 …}
      }
    }
    /var/www/html/femart/femart/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php:37 {
      Illuminate\Cookie\Middleware\AddQueuedCookiesToResponse->handle($request, Closure $next) …
      › {    $response = $next($request);arguments: {
        Illuminate\Http\Request {#51 …}
      }
    }
    /var/www/html/femart/femart/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:171 {
      Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure} …
      › $carry = method_exists($pipe, $this->method)                ? $pipe->{$this->method}(...$parameters)                : $pipe(...$parameters);
      arguments: {
        $request: Illuminate\Http\Request {#51 …}
        $next: Closure($passable) {#250 …}
      }
    }
    /var/www/html/femart/femart/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)));}
      arguments: {
        Illuminate\Http\Request {#51 …}
      }
    }
    /var/www/html/femart/femart/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:171 {
      Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure} …
      › $carry = method_exists($pipe, $this->method)                ? $pipe->{$this->method}(...$parameters)                : $pipe(...$parameters);
      arguments: {
        $request: Illuminate\Http\Request {#51 …}
        $next: Closure($passable) {#250 …}
      }
    }
    /var/www/html/femart/femart/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:105 {
      Illuminate\Pipeline\Pipeline->then(Closure $destination) …
      › 
      ›     return $pipeline($this->passable);}
      arguments: {
        Illuminate\Http\Request {#51 …}
      }
    }
    /var/www/html/femart/femart/vendor/laravel/framework/src/Illuminate/Routing/Router.php:683 {
      Illuminate\Routing\Router->runRouteWithinStack(Route $route, Request $request) …
      ›                         );                    });}
      arguments: {
        $destination: Closure($request) {#266 …}
      }
    }
    /var/www/html/femart/femart/vendor/laravel/framework/src/Illuminate/Routing/Router.php:658 {
      Illuminate\Routing\Router->runRoute(Request $request, Route $route) …
      › return $this->prepareResponse($request,    $this->runRouteWithinStack($route, $request));
      arguments: {
        $route: Illuminate\Routing\Route {#222 …}
        $request: Illuminate\Http\Request {#51 …}
      }
    }
    /var/www/html/femart/femart/vendor/laravel/framework/src/Illuminate/Routing/Router.php:624 {
      Illuminate\Routing\Router->dispatchToRoute(Request $request) …
      › {    return $this->runRoute($request, $this->findRoute($request));}
      arguments: {
        $request: Illuminate\Http\Request {#51 …}
        $route: Illuminate\Routing\Route {#222 …}
      }
    }
    /var/www/html/femart/femart/vendor/laravel/framework/src/Illuminate/Routing/Router.php:613 {
      Illuminate\Routing\Router->dispatch(Request $request) …
      › 
      ›     return $this->dispatchToRoute($request);}
      arguments: {
        $request: Illuminate\Http\Request {#51 …}
      }
    }
    /var/www/html/femart/femart/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php:170 {
      Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure} …
      › 
      ›     return $this->router->dispatch($request);};
      arguments: {
        $request: Illuminate\Http\Request {#51 …}
      }
    }
    /var/www/html/femart/femart/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:130 {
      Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure} …
      › try {    return $destination($passable);} catch (Exception $e) {
      arguments: {
        Illuminate\Http\Request {#51 …}
      }
    }
    /var/www/html/femart/femart/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php:21 {
      Illuminate\Foundation\Http\Middleware\TransformsRequest->handle($request, Closure $next) …
      › 
      ›     return $next($request);}
      arguments: {
        Illuminate\Http\Request {#51 …}
      }
    }
    /var/www/html/femart/femart/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:171 {
      Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure} …
      › $carry = method_exists($pipe, $this->method)                ? $pipe->{$this->method}(...$parameters)                : $pipe(...$parameters);
      arguments: {
        $request: Illuminate\Http\Request {#51 …}
        $next: Closure($passable) {#250 …}
      }
    }
    /var/www/html/femart/femart/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php:21 {
      Illuminate\Foundation\Http\Middleware\TransformsRequest->handle($request, Closure $next) …
      › 
      ›     return $next($request);}
      arguments: {
        Illuminate\Http\Request {#51 …}
      }
    }
    /var/www/html/femart/femart/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:171 {
      Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure} …
      › $carry = method_exists($pipe, $this->method)                ? $pipe->{$this->method}(...$parameters)                : $pipe(...$parameters);
      arguments: {
        $request: Illuminate\Http\Request {#51 …}
        $next: Closure($passable) {#250 …}
      }
    }
    /var/www/html/femart/femart/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php:27 {
      Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle($request, Closure $next) …
      › 
      ›     return $next($request);}
      arguments: {
        Illuminate\Http\Request {#51 …}
      }
    }
    /var/www/html/femart/femart/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:171 {
      Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure} …
      › $carry = method_exists($pipe, $this->method)                ? $pipe->{$this->method}(...$parameters)                : $pipe(...$parameters);
      arguments: {
        $request: Illuminate\Http\Request {#51 …}
        $next: Closure($passable) {#250 …}
      }
    }
    /var/www/html/femart/femart/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/CheckForMaintenanceMode.php:62 {
      Illuminate\Foundation\Http\Middleware\CheckForMaintenanceMode->handle($request, Closure $next) …
      › 
      ›     return $next($request);}
      arguments: {
        Illuminate\Http\Request {#51 …}
      }
    }
    /var/www/html/femart/femart/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:171 {
      Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure} …
      › $carry = method_exists($pipe, $this->method)                ? $pipe->{$this->method}(...$parameters)                : $pipe(...$parameters);
      arguments: {
        $request: Illuminate\Http\Request {#51 …}
        $next: Closure($passable) {#250 …}
      }
    }
    /var/www/html/femart/femart/vendor/fideloper/proxy/src/TrustProxies.php:57 {
      Fideloper\Proxy\TrustProxies->handle(Request $request, Closure $next) …
      › 
      ›     return $next($request);}
      arguments: {
        Illuminate\Http\Request {#51 …}
      }
    }
    /var/www/html/femart/femart/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:171 {
      Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure} …
      › $carry = method_exists($pipe, $this->method)                ? $pipe->{$this->method}(...$parameters)                : $pipe(...$parameters);
      arguments: {
        $request: Illuminate\Http\Request {#51 …}
        $next: Closure($passable) {#250 …}
      }
    }
    /var/www/html/femart/femart/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:105 {
      Illuminate\Pipeline\Pipeline->then(Closure $destination) …
      › 
      ›     return $pipeline($this->passable);}
      arguments: {
        Illuminate\Http\Request {#51 …}
      }
    }
    /var/www/html/femart/femart/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php:145 {
      Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter($request) …
      ›                 ->through($this->app->shouldSkipMiddleware() ? [] : $this->middleware)                ->then($this->dispatchToRouter());}
      arguments: {
        $destination: Closure($request) {#30 …}
      }
    }
    /var/www/html/femart/femart/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php:110 {
      Illuminate\Foundation\Http\Kernel->handle($request) …
      › 
      ›     $response = $this->sendRequestThroughRouter($request);} catch (Exception $e) {
      arguments: {
        $request: Illuminate\Http\Request {#51 …}
      }
    }
    /var/www/html/femart/femart/public/index.php:55 {$response = $kernel->handle(    $request = Illuminate\Http\Request::capture());
      arguments: {
        $request: Illuminate\Http\Request {#51 …}
      }
    }
  }
}