FlattenException {#601
  -message: "Trying to get property 'ItemsName' of non-object"
  -code: 0
  -previous: null
  -trace: array:53 [
    0 => array:8 [
      "namespace" => ""
      "short_class" => ""
      "class" => ""
      "type" => ""
      "function" => ""
      "file" => "/app/Http/Controllers/MainController.php"
      "line" => 529
      "args" => []
    ]
    1 => array:8 [
      "namespace" => "Illuminate\Foundation\Bootstrap"
      "short_class" => "HandleExceptions"
      "class" => "Illuminate\Foundation\Bootstrap\HandleExceptions"
      "type" => "->"
      "function" => "handleError"
      "file" => "/app/Http/Controllers/MainController.php"
      "line" => 529
      "args" => array:5 [
        0 => array:2 [
          0 => "integer"
          1 => 8
        ]
        1 => array:2 [
          0 => "string"
          1 => "Trying to get property 'ItemsName' of non-object"
        ]
        2 => array:2 [
          0 => "string"
          1 => "/app/Http/Controllers/MainController.php"
        ]
        3 => array:2 [
          0 => "integer"
          1 => 529
        ]
        4 => array:2 [
          0 => "array"
          1 => array:29 [
            "request" => array:2 [
              0 => "object"
              1 => "Illuminate\Http\Request"
            ]
            "categories" => array:2 [
              0 => "array"
              1 => []
            ]
            "keywords" => array:2 [
              0 => "string"
              1 => "Urządzenia siłowe, Urządzenia siłowni plenerowych, Urządzenia fitness, Urządzenia siłowni zewnętrznych, Urządzenia do rehabilitacji, Urządzenia do ćwiczeń, Urządzenia dla Seniorów, Urządzenia dla niepełnosprawnych, Urządzenia do parku, Urządzenia plenerowe, Siłownia plenerowa, Siłownia zewnętrzna, Siłownia pod chmurką, Siłownia fitness, Siłownia dla Seniora, Siłownia dla niepełnosprawnych, Rehabilitacja dla niepełnosprawnych, Rehabilitacja plenerowa, Rehabilitacja siłownie zewnętrzne, Rehablitacja osób starszych, Rehabilitacja dla Seniorów, Ćwiczenia na zewnątrz, Ćwiczenia urządzenia, Ćwiczenia siłownia zewnętrzna, Ćwiczenia w plenerze, Ćwiczenia rehabilitacyjne, Ćwiczenia dla Seniorów, Ćwiczenia dla osób starszych, Ćwiczenia dla niepełnosprawnych, Gimnastyka dla osób niepełnosprawnych, Aktywny Senior, Siłownie dedykowane, Producent siłowni zewnętrznych, Producent urządzeń siłowych, Producent urządzeń do rehabilitacji, Producent siłowni plenerowych, Producent urządzeń dla Seniorów"
            ]
            "categories_str" => array:2 [
              0 => "string"
              1 => "active-senior-silownia-plenerowa"
            ]
            "category_slug" => array:2 [
              0 => "string"
              1 => "active-senior-silownia-plenerowa"
            ]
            "level" => array:2 [
              0 => "integer"
              1 => 1
            ]
            "layout" => array:2 [
              0 => "string"
              1 => "pages.category"
            ]
            "main_menu" => array:2 [
              0 => "object"
              1 => "App\Models\Menu"
            ]
            "selected_category" => array:2 [
              0 => "null"
              1 => null
            ]
            "title" => array:2 [
              0 => "null"
              1 => null
            ]
            "descr" => array:2 [
              0 => "null"
              1 => null
            ]
            "sortBy" => array:2 [
              0 => "string"
              1 => "kolejnosc"
            ]
            "q" => array:2 [
              0 => "string"
              1 => ""
            ]
            "products" => array:2 [
              0 => "object"
              1 => "Illuminate\Pagination\LengthAwarePaginator"
            ]
            "categories_ids" => array:2 [
              0 => "array"
              1 => array:5 [
                0 => array:2 [
                  0 => "integer"
                  1 => 155
                ]
                1 => array:2 [
                  0 => "integer"
                  1 => 156
                ]
                2 => array:2 [
                  0 => "integer"
                  1 => 5005
                ]
                3 => array:2 [
                  0 => "integer"
                  1 => 5006
                ]
                4 => array:2 [
                  0 => "integer"
                  1 => 5007
                ]
              ]
            ]
            "order" => array:2 [
              0 => "string"
              1 => "asc"
            ]
            "currentPage" => array:2 [
              0 => "integer"
              1 => 1
            ]
            "perPage" => array:2 [
              0 => "integer"
              1 => 5000
            ]
            "total" => array:2 [
              0 => "integer"
              1 => 0
            ]
            "currentMax" => array:2 [
              0 => "integer"
              1 => 0
            ]
            "currentMin" => array:2 [
              0 => "integer"
              1 => 1
            ]
            "tags" => array:2 [
              0 => "array"
              1 => []
            ]
            "tags_labels" => array:2 [
              0 => "array"
              1 => []
            ]
            "featured_products" => array:2 [
              0 => "object"
              1 => "Illuminate\Database\Eloquent\Collection"
            ]
            "home_page" => array:2 [
              0 => "object"
              1 => "App\Models\Page"
            ]
            "gallery" => array:2 [
              0 => "null"
              1 => null
            ]
            "gallery_title" => array:2 [
              0 => "string"
              1 => ""
            ]
            "tags_objects" => array:2 [
              0 => "object"
              1 => "Illuminate\Support\Collection"
            ]
            "main_menu_api" => array:2 [
              0 => "array"
              1 => array:1 [
                0 => array:2 [
                  0 => "array"
                  1 => array:6 [
                    "id" => array:2 [
                      0 => "integer"
                      1 => 460
                    ]
                    "menu_item_id" => array:2 [
                      0 => "null"
                      1 => null
                    ]
                    "name" => array:2 [
                      0 => "string"
                      1 => "ACTIVE-SENIOR"
                    ]
                    "position_in_queue" => array:2 [
                      0 => "integer"
                      1 => 1
                    ]
                    "link" => array:2 [
                      0 => "string"
                      1 => "active-senior"
                    ]
                    "items" => array:2 [
                      0 => "array"
                      1 => array:5 [
                        0 => array:2 [
                          0 => "array"
                          1 => array:6 [
                            "id" => array:2 [
                              0 => "integer"
                              1 => 25
                            ]
                            "menu_item_id" => array:2 [
                              0 => "integer"
                              1 => 460
                            ]
                            "name" => array:2 [
                              0 => "string"
                              1 => "Urządzenia rehabilitacyjne"
                            ]
                            "position_in_queue" => array:2 [
                              0 => "integer"
                              1 => 155
                            ]
                            "link" => array:2 [
                              0 => "string"
                              1 => "urzadzenia-rehabilitacyjne"
                            ]
                            "items" => array:2 [
                              0 => "array"
                              1 => []
                            ]
                          ]
                        ]
                        1 => array:2 [
                          0 => "array"
                          1 => array:6 [
                            "id" => array:2 [
                              0 => "integer"
                              1 => 26
                            ]
                            "menu_item_id" => array:2 [
                              0 => "integer"
                              1 => 460
                            ]
                            "name" => array:2 [
                              0 => "string"
                              1 => "Siłownie zewnętrzne"
                            ]
                            "position_in_queue" => array:2 [
                              0 => "integer"
                              1 => 156
                            ]
                            "link" => array:2 [
                              0 => "string"
                              1 => "silownie-zewnetrzne"
                            ]
                            "items" => array:2 [
                              0 => "array"
                              1 => []
                            ]
                          ]
                        ]
                        2 => array:2 [
                          0 => "array"
                          1 => array:6 [
                            "id" => array:2 [
                              0 => "integer"
                              1 => 61
                            ]
                            "menu_item_id" => array:2 [
                              0 => "integer"
                              1 => 460
                            ]
                            "name" => array:2 [
                              0 => "string"
                              1 => "Street Workout"
                            ]
                            "position_in_queue" => array:2 [
                              0 => "integer"
                              1 => 157
                            ]
                            "link" => array:2 [
                              0 => "string"
                              1 => "urzadzenia-street-workout"
                            ]
                            "items" => array:2 [
                              0 => "array"
                              1 => []
                            ]
                          ]
                        ]
                        3 => array:2 [
                          0 => "array"
                          1 => array:6 [
                            "id" => array:2 [
                              0 => "integer"
                              1 => 62
                            ]
                            "menu_item_id" => array:2 [
                              0 => "integer"
                              1 => 460
                            ]
                            "name" => array:2 [
                              0 => "string"
                              1 => "Stoły do gier"
                            ]
                            "position_in_queue" => array:2 [
                              0 => "integer"
                              1 => 158
                            ]
                            "link" => array:2 [
                              0 => "string"
                              1 => "stoly-do-gier"
                            ]
                            "items" => array:2 [
                              0 => "array"
                              1 => []
                            ]
                          ]
                        ]
                        4 => array:2 [
                          0 => "array"
                          1 => array:6 [
                            "id" => array:2 [
                              0 => "integer"
                              1 => 63
                            ]
                            "menu_item_id" => array:2 [
                              0 => "integer"
                              1 => 460
                            ]
                            "name" => array:2 [
                              0 => "string"
                              1 => "Gry ruchowe"
                            ]
                            "position_in_queue" => array:2 [
                              0 => "integer"
                              1 => 159
                            ]
                            "link" => array:2 [
                              0 => "string"
                              1 => "gry-ruchowe"
                            ]
                            "items" => array:2 [
                              0 => "array"
                              1 => []
                            ]
                          ]
                        ]
                      ]
                    ]
                  ]
                ]
              ]
            ]
          ]
        ]
      ]
    ]
    2 => array:8 [
      "namespace" => "App\Http\Controllers"
      "short_class" => "MainController"
      "class" => "App\Http\Controllers\MainController"
      "type" => "->"
      "function" => "category"
      "file" => null
      "line" => null
      "args" => array:2 [
        0 => array:2 [
          0 => "object"
          1 => "Illuminate\Http\Request"
        ]
        1 => array:2 [
          0 => "array"
          1 => []
        ]
      ]
    ]
    3 => array:8 [
      "namespace" => ""
      "short_class" => ""
      "class" => ""
      "type" => ""
      "function" => "call_user_func_array"
      "file" => "/vendor/laravel/framework/src/Illuminate/Routing/Controller.php"
      "line" => 54
      "args" => array:2 [
        0 => array:2 [
          0 => "array"
          1 => array:2 [
            0 => array:2 [
              0 => "object"
              1 => "App\Http\Controllers\MainController"
            ]
            1 => array:2 [
              0 => "string"
              1 => "category"
            ]
          ]
        ]
        1 => array:2 [
          0 => "array"
          1 => array:2 [
            0 => array:2 [
              0 => "object"
              1 => "Illuminate\Http\Request"
            ]
            "categories" => array:2 [
              0 => "string"
              1 => "active-senior-silownia-plenerowa"
            ]
          ]
        ]
      ]
    ]
    4 => array:8 [
      "namespace" => "Illuminate\Routing"
      "short_class" => "Controller"
      "class" => "Illuminate\Routing\Controller"
      "type" => "->"
      "function" => "callAction"
      "file" => "/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php"
      "line" => 45
      "args" => array:2 [
        0 => array:2 [
          0 => "string"
          1 => "category"
        ]
        1 => array:2 [
          0 => "array"
          1 => array:2 [
            0 => array:2 [
              0 => "object"
              1 => "Illuminate\Http\Request"
            ]
            "categories" => array:2 [
              0 => "string"
              1 => "active-senior-silownia-plenerowa"
            ]
          ]
        ]
      ]
    ]
    5 => array:8 [
      "namespace" => "Illuminate\Routing"
      "short_class" => "ControllerDispatcher"
      "class" => "Illuminate\Routing\ControllerDispatcher"
      "type" => "->"
      "function" => "dispatch"
      "file" => "/vendor/laravel/framework/src/Illuminate/Routing/Route.php"
      "line" => 219
      "args" => array:3 [
        0 => array:2 [
          0 => "object"
          1 => "Illuminate\Routing\Route"
        ]
        1 => array:2 [
          0 => "object"
          1 => "App\Http\Controllers\MainController"
        ]
        2 => array:2 [
          0 => "string"
          1 => "category"
        ]
      ]
    ]
    6 => array:8 [
      "namespace" => "Illuminate\Routing"
      "short_class" => "Route"
      "class" => "Illuminate\Routing\Route"
      "type" => "->"
      "function" => "runController"
      "file" => "/vendor/laravel/framework/src/Illuminate/Routing/Route.php"
      "line" => 176
      "args" => []
    ]
    7 => array:8 [
      "namespace" => "Illuminate\Routing"
      "short_class" => "Route"
      "class" => "Illuminate\Routing\Route"
      "type" => "->"
      "function" => "run"
      "file" => "/vendor/laravel/framework/src/Illuminate/Routing/Router.php"
      "line" => 680
      "args" => []
    ]
    8 => array:8 [
      "namespace" => "Illuminate\Routing"
      "short_class" => "Router"
      "class" => "Illuminate\Routing\Router"
      "type" => "->"
      "function" => "Illuminate\Routing\{closure}"
      "file" => "/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php"
      "line" => 30
      "args" => array:1 [
        0 => array:2 [
          0 => "object"
          1 => "Illuminate\Http\Request"
        ]
      ]
    ]
    9 => array:8 [
      "namespace" => "Illuminate\Routing"
      "short_class" => "Pipeline"
      "class" => "Illuminate\Routing\Pipeline"
      "type" => "->"
      "function" => "Illuminate\Routing\{closure}"
      "file" => "/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php"
      "line" => 41
      "args" => array:1 [
        0 => array:2 [
          0 => "object"
          1 => "Illuminate\Http\Request"
        ]
      ]
    ]
    10 => array:8 [
      "namespace" => "Illuminate\Routing\Middleware"
      "short_class" => "SubstituteBindings"
      "class" => "Illuminate\Routing\Middleware\SubstituteBindings"
      "type" => "->"
      "function" => "handle"
      "file" => "/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php"
      "line" => 163
      "args" => array:2 [
        0 => array:2 [
          0 => "object"
          1 => "Illuminate\Http\Request"
        ]
        1 => array:2 [
          0 => "object"
          1 => "Closure"
        ]
      ]
    ]
    11 => array:8 [
      "namespace" => "Illuminate\Pipeline"
      "short_class" => "Pipeline"
      "class" => "Illuminate\Pipeline\Pipeline"
      "type" => "->"
      "function" => "Illuminate\Pipeline\{closure}"
      "file" => "/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php"
      "line" => 53
      "args" => array:1 [
        0 => array:2 [
          0 => "object"
          1 => "Illuminate\Http\Request"
        ]
      ]
    ]
    12 => array:8 [
      "namespace" => "Illuminate\Routing"
      "short_class" => "Pipeline"
      "class" => "Illuminate\Routing\Pipeline"
      "type" => "->"
      "function" => "Illuminate\Routing\{closure}"
      "file" => "/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php"
      "line" => 75
      "args" => array:1 [
        0 => array:2 [
          0 => "object"
          1 => "Illuminate\Http\Request"
        ]
      ]
    ]
    13 => array:8 [
      "namespace" => "Illuminate\Foundation\Http\Middleware"
      "short_class" => "VerifyCsrfToken"
      "class" => "Illuminate\Foundation\Http\Middleware\VerifyCsrfToken"
      "type" => "->"
      "function" => "handle"
      "file" => "/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php"
      "line" => 163
      "args" => array:2 [
        0 => array:2 [
          0 => "object"
          1 => "Illuminate\Http\Request"
        ]
        1 => array:2 [
          0 => "object"
          1 => "Closure"
        ]
      ]
    ]
    14 => array:8 [
      "namespace" => "Illuminate\Pipeline"
      "short_class" => "Pipeline"
      "class" => "Illuminate\Pipeline\Pipeline"
      "type" => "->"
      "function" => "Illuminate\Pipeline\{closure}"
      "file" => "/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php"
      "line" => 53
      "args" => array:1 [
        0 => array:2 [
          0 => "object"
          1 => "Illuminate\Http\Request"
        ]
      ]
    ]
    15 => array:8 [
      "namespace" => "Illuminate\Routing"
      "short_class" => "Pipeline"
      "class" => "Illuminate\Routing\Pipeline"
      "type" => "->"
      "function" => "Illuminate\Routing\{closure}"
      "file" => "/vendor/laravel/framework/src/Illuminate/View/Middleware/ShareErrorsFromSession.php"
      "line" => 49
      "args" => array:1 [
        0 => array:2 [
          0 => "object"
          1 => "Illuminate\Http\Request"
        ]
      ]
    ]
    16 => array:8 [
      "namespace" => "Illuminate\View\Middleware"
      "short_class" => "ShareErrorsFromSession"
      "class" => "Illuminate\View\Middleware\ShareErrorsFromSession"
      "type" => "->"
      "function" => "handle"
      "file" => "/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php"
      "line" => 163
      "args" => array:2 [
        0 => array:2 [
          0 => "object"
          1 => "Illuminate\Http\Request"
        ]
        1 => array:2 [
          0 => "object"
          1 => "Closure"
        ]
      ]
    ]
    17 => array:8 [
      "namespace" => "Illuminate\Pipeline"
      "short_class" => "Pipeline"
      "class" => "Illuminate\Pipeline\Pipeline"
      "type" => "->"
      "function" => "Illuminate\Pipeline\{closure}"
      "file" => "/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php"
      "line" => 53
      "args" => array:1 [
        0 => array:2 [
          0 => "object"
          1 => "Illuminate\Http\Request"
        ]
      ]
    ]
    18 => array:8 [
      "namespace" => "Illuminate\Routing"
      "short_class" => "Pipeline"
      "class" => "Illuminate\Routing\Pipeline"
      "type" => "->"
      "function" => "Illuminate\Routing\{closure}"
      "file" => "/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php"
      "line" => 56
      "args" => array:1 [
        0 => array:2 [
          0 => "object"
          1 => "Illuminate\Http\Request"
        ]
      ]
    ]
    19 => array:8 [
      "namespace" => "Illuminate\Session\Middleware"
      "short_class" => "StartSession"
      "class" => "Illuminate\Session\Middleware\StartSession"
      "type" => "->"
      "function" => "handle"
      "file" => "/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php"
      "line" => 163
      "args" => array:2 [
        0 => array:2 [
          0 => "object"
          1 => "Illuminate\Http\Request"
        ]
        1 => array:2 [
          0 => "object"
          1 => "Closure"
        ]
      ]
    ]
    20 => array:8 [
      "namespace" => "Illuminate\Pipeline"
      "short_class" => "Pipeline"
      "class" => "Illuminate\Pipeline\Pipeline"
      "type" => "->"
      "function" => "Illuminate\Pipeline\{closure}"
      "file" => "/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php"
      "line" => 53
      "args" => array:1 [
        0 => array:2 [
          0 => "object"
          1 => "Illuminate\Http\Request"
        ]
      ]
    ]
    21 => array:8 [
      "namespace" => "Illuminate\Routing"
      "short_class" => "Pipeline"
      "class" => "Illuminate\Routing\Pipeline"
      "type" => "->"
      "function" => "Illuminate\Routing\{closure}"
      "file" => "/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php"
      "line" => 37
      "args" => array:1 [
        0 => array:2 [
          0 => "object"
          1 => "Illuminate\Http\Request"
        ]
      ]
    ]
    22 => array:8 [
      "namespace" => "Illuminate\Cookie\Middleware"
      "short_class" => "AddQueuedCookiesToResponse"
      "class" => "Illuminate\Cookie\Middleware\AddQueuedCookiesToResponse"
      "type" => "->"
      "function" => "handle"
      "file" => "/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php"
      "line" => 163
      "args" => array:2 [
        0 => array:2 [
          0 => "object"
          1 => "Illuminate\Http\Request"
        ]
        1 => array:2 [
          0 => "object"
          1 => "Closure"
        ]
      ]
    ]
    23 => array:8 [
      "namespace" => "Illuminate\Pipeline"
      "short_class" => "Pipeline"
      "class" => "Illuminate\Pipeline\Pipeline"
      "type" => "->"
      "function" => "Illuminate\Pipeline\{closure}"
      "file" => "/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php"
      "line" => 53
      "args" => array:1 [
        0 => array:2 [
          0 => "object"
          1 => "Illuminate\Http\Request"
        ]
      ]
    ]
    24 => array:8 [
      "namespace" => "Illuminate\Routing"
      "short_class" => "Pipeline"
      "class" => "Illuminate\Routing\Pipeline"
      "type" => "->"
      "function" => "Illuminate\Routing\{closure}"
      "file" => "/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php"
      "line" => 66
      "args" => array:1 [
        0 => array:2 [
          0 => "object"
          1 => "Illuminate\Http\Request"
        ]
      ]
    ]
    25 => array:8 [
      "namespace" => "Illuminate\Cookie\Middleware"
      "short_class" => "EncryptCookies"
      "class" => "Illuminate\Cookie\Middleware\EncryptCookies"
      "type" => "->"
      "function" => "handle"
      "file" => "/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php"
      "line" => 163
      "args" => array:2 [
        0 => array:2 [
          0 => "object"
          1 => "Illuminate\Http\Request"
        ]
        1 => array:2 [
          0 => "object"
          1 => "Closure"
        ]
      ]
    ]
    26 => array:8 [
      "namespace" => "Illuminate\Pipeline"
      "short_class" => "Pipeline"
      "class" => "Illuminate\Pipeline\Pipeline"
      "type" => "->"
      "function" => "Illuminate\Pipeline\{closure}"
      "file" => "/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php"
      "line" => 53
      "args" => array:1 [
        0 => array:2 [
          0 => "object"
          1 => "Illuminate\Http\Request"
        ]
      ]
    ]
    27 => array:8 [
      "namespace" => "Illuminate\Routing"
      "short_class" => "Pipeline"
      "class" => "Illuminate\Routing\Pipeline"
      "type" => "->"
      "function" => "Illuminate\Routing\{closure}"
      "file" => "/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php"
      "line" => 104
      "args" => array:1 [
        0 => array:2 [
          0 => "object"
          1 => "Illuminate\Http\Request"
        ]
      ]
    ]
    28 => array:8 [
      "namespace" => "Illuminate\Pipeline"
      "short_class" => "Pipeline"
      "class" => "Illuminate\Pipeline\Pipeline"
      "type" => "->"
      "function" => "then"
      "file" => "/vendor/laravel/framework/src/Illuminate/Routing/Router.php"
      "line" => 682
      "args" => array:1 [
        0 => array:2 [
          0 => "object"
          1 => "Closure"
        ]
      ]
    ]
    29 => array:8 [
      "namespace" => "Illuminate\Routing"
      "short_class" => "Router"
      "class" => "Illuminate\Routing\Router"
      "type" => "->"
      "function" => "runRouteWithinStack"
      "file" => "/vendor/laravel/framework/src/Illuminate/Routing/Router.php"
      "line" => 657
      "args" => array:2 [
        0 => array:2 [
          0 => "object"
          1 => "Illuminate\Routing\Route"
        ]
        1 => array:2 [
          0 => "object"
          1 => "Illuminate\Http\Request"
        ]
      ]
    ]
    30 => array:8 [
      "namespace" => "Illuminate\Routing"
      "short_class" => "Router"
      "class" => "Illuminate\Routing\Router"
      "type" => "->"
      "function" => "runRoute"
      "file" => "/vendor/laravel/framework/src/Illuminate/Routing/Router.php"
      "line" => 623
      "args" => array:2 [
        0 => array:2 [
          0 => "object"
          1 => "Illuminate\Http\Request"
        ]
        1 => array:2 [
          0 => "object"
          1 => "Illuminate\Routing\Route"
        ]
      ]
    ]
    31 => array:8 [
      "namespace" => "Illuminate\Routing"
      "short_class" => "Router"
      "class" => "Illuminate\Routing\Router"
      "type" => "->"
      "function" => "dispatchToRoute"
      "file" => "/vendor/laravel/framework/src/Illuminate/Routing/Router.php"
      "line" => 612
      "args" => array:1 [
        0 => array:2 [
          0 => "object"
          1 => "Illuminate\Http\Request"
        ]
      ]
    ]
    32 => array:8 [
      "namespace" => "Illuminate\Routing"
      "short_class" => "Router"
      "class" => "Illuminate\Routing\Router"
      "type" => "->"
      "function" => "dispatch"
      "file" => "/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php"
      "line" => 176
      "args" => array:1 [
        0 => array:2 [
          0 => "object"
          1 => "Illuminate\Http\Request"
        ]
      ]
    ]
    33 => array:8 [
      "namespace" => "Illuminate\Foundation\Http"
      "short_class" => "Kernel"
      "class" => "Illuminate\Foundation\Http\Kernel"
      "type" => "->"
      "function" => "Illuminate\Foundation\Http\{closure}"
      "file" => "/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php"
      "line" => 30
      "args" => array:1 [
        0 => array:2 [
          0 => "object"
          1 => "Illuminate\Http\Request"
        ]
      ]
    ]
    34 => array:8 [
      "namespace" => "Illuminate\Routing"
      "short_class" => "Pipeline"
      "class" => "Illuminate\Routing\Pipeline"
      "type" => "->"
      "function" => "Illuminate\Routing\{closure}"
      "file" => "/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php"
      "line" => 21
      "args" => array:1 [
        0 => array:2 [
          0 => "object"
          1 => "Illuminate\Http\Request"
        ]
      ]
    ]
    35 => array:8 [
      "namespace" => "Illuminate\Foundation\Http\Middleware"
      "short_class" => "TransformsRequest"
      "class" => "Illuminate\Foundation\Http\Middleware\TransformsRequest"
      "type" => "->"
      "function" => "handle"
      "file" => "/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php"
      "line" => 163
      "args" => array:2 [
        0 => array:2 [
          0 => "object"
          1 => "Illuminate\Http\Request"
        ]
        1 => array:2 [
          0 => "object"
          1 => "Closure"
        ]
      ]
    ]
    36 => array:8 [
      "namespace" => "Illuminate\Pipeline"
      "short_class" => "Pipeline"
      "class" => "Illuminate\Pipeline\Pipeline"
      "type" => "->"
      "function" => "Illuminate\Pipeline\{closure}"
      "file" => "/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php"
      "line" => 53
      "args" => array:1 [
        0 => array:2 [
          0 => "object"
          1 => "Illuminate\Http\Request"
        ]
      ]
    ]
    37 => array:8 [
      "namespace" => "Illuminate\Routing"
      "short_class" => "Pipeline"
      "class" => "Illuminate\Routing\Pipeline"
      "type" => "->"
      "function" => "Illuminate\Routing\{closure}"
      "file" => "/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php"
      "line" => 21
      "args" => array:1 [
        0 => array:2 [
          0 => "object"
          1 => "Illuminate\Http\Request"
        ]
      ]
    ]
    38 => array:8 [
      "namespace" => "Illuminate\Foundation\Http\Middleware"
      "short_class" => "TransformsRequest"
      "class" => "Illuminate\Foundation\Http\Middleware\TransformsRequest"
      "type" => "->"
      "function" => "handle"
      "file" => "/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php"
      "line" => 163
      "args" => array:2 [
        0 => array:2 [
          0 => "object"
          1 => "Illuminate\Http\Request"
        ]
        1 => array:2 [
          0 => "object"
          1 => "Closure"
        ]
      ]
    ]
    39 => array:8 [
      "namespace" => "Illuminate\Pipeline"
      "short_class" => "Pipeline"
      "class" => "Illuminate\Pipeline\Pipeline"
      "type" => "->"
      "function" => "Illuminate\Pipeline\{closure}"
      "file" => "/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php"
      "line" => 53
      "args" => array:1 [
        0 => array:2 [
          0 => "object"
          1 => "Illuminate\Http\Request"
        ]
      ]
    ]
    40 => array:8 [
      "namespace" => "Illuminate\Routing"
      "short_class" => "Pipeline"
      "class" => "Illuminate\Routing\Pipeline"
      "type" => "->"
      "function" => "Illuminate\Routing\{closure}"
      "file" => "/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php"
      "line" => 27
      "args" => array:1 [
        0 => array:2 [
          0 => "object"
          1 => "Illuminate\Http\Request"
        ]
      ]
    ]
    41 => array:8 [
      "namespace" => "Illuminate\Foundation\Http\Middleware"
      "short_class" => "ValidatePostSize"
      "class" => "Illuminate\Foundation\Http\Middleware\ValidatePostSize"
      "type" => "->"
      "function" => "handle"
      "file" => "/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php"
      "line" => 163
      "args" => array:2 [
        0 => array:2 [
          0 => "object"
          1 => "Illuminate\Http\Request"
        ]
        1 => array:2 [
          0 => "object"
          1 => "Closure"
        ]
      ]
    ]
    42 => array:8 [
      "namespace" => "Illuminate\Pipeline"
      "short_class" => "Pipeline"
      "class" => "Illuminate\Pipeline\Pipeline"
      "type" => "->"
      "function" => "Illuminate\Pipeline\{closure}"
      "file" => "/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php"
      "line" => 53
      "args" => array:1 [
        0 => array:2 [
          0 => "object"
          1 => "Illuminate\Http\Request"
        ]
      ]
    ]
    43 => array:8 [
      "namespace" => "Illuminate\Routing"
      "short_class" => "Pipeline"
      "class" => "Illuminate\Routing\Pipeline"
      "type" => "->"
      "function" => "Illuminate\Routing\{closure}"
      "file" => "/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/CheckForMaintenanceMode.php"
      "line" => 62
      "args" => array:1 [
        0 => array:2 [
          0 => "object"
          1 => "Illuminate\Http\Request"
        ]
      ]
    ]
    44 => array:8 [
      "namespace" => "Illuminate\Foundation\Http\Middleware"
      "short_class" => "CheckForMaintenanceMode"
      "class" => "Illuminate\Foundation\Http\Middleware\CheckForMaintenanceMode"
      "type" => "->"
      "function" => "handle"
      "file" => "/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php"
      "line" => 163
      "args" => array:2 [
        0 => array:2 [
          0 => "object"
          1 => "Illuminate\Http\Request"
        ]
        1 => array:2 [
          0 => "object"
          1 => "Closure"
        ]
      ]
    ]
    45 => array:8 [
      "namespace" => "Illuminate\Pipeline"
      "short_class" => "Pipeline"
      "class" => "Illuminate\Pipeline\Pipeline"
      "type" => "->"
      "function" => "Illuminate\Pipeline\{closure}"
      "file" => "/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php"
      "line" => 53
      "args" => array:1 [
        0 => array:2 [
          0 => "object"
          1 => "Illuminate\Http\Request"
        ]
      ]
    ]
    46 => array:8 [
      "namespace" => "Illuminate\Routing"
      "short_class" => "Pipeline"
      "class" => "Illuminate\Routing\Pipeline"
      "type" => "->"
      "function" => "Illuminate\Routing\{closure}"
      "file" => "/vendor/fideloper/proxy/src/TrustProxies.php"
      "line" => 57
      "args" => array:1 [
        0 => array:2 [
          0 => "object"
          1 => "Illuminate\Http\Request"
        ]
      ]
    ]
    47 => array:8 [
      "namespace" => "Fideloper\Proxy"
      "short_class" => "TrustProxies"
      "class" => "Fideloper\Proxy\TrustProxies"
      "type" => "->"
      "function" => "handle"
      "file" => "/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php"
      "line" => 163
      "args" => array:2 [
        0 => array:2 [
          0 => "object"
          1 => "Illuminate\Http\Request"
        ]
        1 => array:2 [
          0 => "object"
          1 => "Closure"
        ]
      ]
    ]
    48 => array:8 [
      "namespace" => "Illuminate\Pipeline"
      "short_class" => "Pipeline"
      "class" => "Illuminate\Pipeline\Pipeline"
      "type" => "->"
      "function" => "Illuminate\Pipeline\{closure}"
      "file" => "/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php"
      "line" => 53
      "args" => array:1 [
        0 => array:2 [
          0 => "object"
          1 => "Illuminate\Http\Request"
        ]
      ]
    ]
    49 => array:8 [
      "namespace" => "Illuminate\Routing"
      "short_class" => "Pipeline"
      "class" => "Illuminate\Routing\Pipeline"
      "type" => "->"
      "function" => "Illuminate\Routing\{closure}"
      "file" => "/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php"
      "line" => 104
      "args" => array:1 [
        0 => array:2 [
          0 => "object"
          1 => "Illuminate\Http\Request"
        ]
      ]
    ]
    50 => array:8 [
      "namespace" => "Illuminate\Pipeline"
      "short_class" => "Pipeline"
      "class" => "Illuminate\Pipeline\Pipeline"
      "type" => "->"
      "function" => "then"
      "file" => "/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php"
      "line" => 151
      "args" => array:1 [
        0 => array:2 [
          0 => "object"
          1 => "Closure"
        ]
      ]
    ]
    51 => array:8 [
      "namespace" => "Illuminate\Foundation\Http"
      "short_class" => "Kernel"
      "class" => "Illuminate\Foundation\Http\Kernel"
      "type" => "->"
      "function" => "sendRequestThroughRouter"
      "file" => "/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php"
      "line" => 116
      "args" => array:1 [
        0 => array:2 [
          0 => "object"
          1 => "Illuminate\Http\Request"
        ]
      ]
    ]
    52 => array:8 [
      "namespace" => "Illuminate\Foundation\Http"
      "short_class" => "Kernel"
      "class" => "Illuminate\Foundation\Http\Kernel"
      "type" => "->"
      "function" => "handle"
      "file" => "/public/index.php"
      "line" => 55
      "args" => array:1 [
        0 => array:2 [
          0 => "object"
          1 => "Illuminate\Http\Request"
        ]
      ]
    ]
  ]
  -traceAsString: """
    #0 /app/Http/Controllers/MainController.php(529): Illuminate\Foundation\Bootstrap\HandleExceptions->handleError(8, 'Trying to get p...', '/app/Http/Contr...', 529, Array)\n
    #1 [internal function]: App\Http\Controllers\MainController->category(Object(Illuminate\Http\Request), Array)\n
    #2 /vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): call_user_func_array(Array, Array)\n
    #3 /vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(45): Illuminate\Routing\Controller->callAction('category', Array)\n
    #4 /vendor/laravel/framework/src/Illuminate/Routing/Route.php(219): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\MainController), 'category')\n
    #5 /vendor/laravel/framework/src/Illuminate/Routing/Route.php(176): Illuminate\Routing\Route->runController()\n
    #6 /vendor/laravel/framework/src/Illuminate/Routing/Router.php(680): Illuminate\Routing\Route->run()\n
    #7 /vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php(30): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))\n
    #8 /vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(41): Illuminate\Routing\Pipeline->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))\n
    #9 /vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(163): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))\n
    #10 /vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php(53): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))\n
    #11 /vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(75): Illuminate\Routing\Pipeline->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))\n
    #12 /vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(163): Illuminate\Foundation\Http\Middleware\VerifyCsrfToken->handle(Object(Illuminate\Http\Request), Object(Closure))\n
    #13 /vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php(53): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))\n
    #14 /vendor/laravel/framework/src/Illuminate/View/Middleware/ShareErrorsFromSession.php(49): Illuminate\Routing\Pipeline->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))\n
    #15 /vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(163): Illuminate\View\Middleware\ShareErrorsFromSession->handle(Object(Illuminate\Http\Request), Object(Closure))\n
    #16 /vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php(53): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))\n
    #17 /vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(56): Illuminate\Routing\Pipeline->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))\n
    #18 /vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(163): Illuminate\Session\Middleware\StartSession->handle(Object(Illuminate\Http\Request), Object(Closure))\n
    #19 /vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php(53): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))\n
    #20 /vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\Routing\Pipeline->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))\n
    #21 /vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(163): Illuminate\Cookie\Middleware\AddQueuedCookiesToResponse->handle(Object(Illuminate\Http\Request), Object(Closure))\n
    #22 /vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php(53): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))\n
    #23 /vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(66): Illuminate\Routing\Pipeline->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))\n
    #24 /vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(163): Illuminate\Cookie\Middleware\EncryptCookies->handle(Object(Illuminate\Http\Request), Object(Closure))\n
    #25 /vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php(53): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))\n
    #26 /vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(104): Illuminate\Routing\Pipeline->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))\n
    #27 /vendor/laravel/framework/src/Illuminate/Routing/Router.php(682): Illuminate\Pipeline\Pipeline->then(Object(Closure))\n
    #28 /vendor/laravel/framework/src/Illuminate/Routing/Router.php(657): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))\n
    #29 /vendor/laravel/framework/src/Illuminate/Routing/Router.php(623): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))\n
    #30 /vendor/laravel/framework/src/Illuminate/Routing/Router.php(612): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))\n
    #31 /vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(176): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))\n
    #32 /vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php(30): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))\n
    #33 /vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Routing\Pipeline->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))\n
    #34 /vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(163): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))\n
    #35 /vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php(53): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))\n
    #36 /vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Routing\Pipeline->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))\n
    #37 /vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(163): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))\n
    #38 /vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php(53): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))\n
    #39 /vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Routing\Pipeline->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))\n
    #40 /vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(163): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))\n
    #41 /vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php(53): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))\n
    #42 /vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/CheckForMaintenanceMode.php(62): Illuminate\Routing\Pipeline->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))\n
    #43 /vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(163): Illuminate\Foundation\Http\Middleware\CheckForMaintenanceMode->handle(Object(Illuminate\Http\Request), Object(Closure))\n
    #44 /vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php(53): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))\n
    #45 /vendor/fideloper/proxy/src/TrustProxies.php(57): Illuminate\Routing\Pipeline->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))\n
    #46 /vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(163): Fideloper\Proxy\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))\n
    #47 /vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php(53): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))\n
    #48 /vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(104): Illuminate\Routing\Pipeline->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))\n
    #49 /vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(151): Illuminate\Pipeline\Pipeline->then(Object(Closure))\n
    #50 /vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(116): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))\n
    #51 /public/index.php(55): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))\n
    #52 {main}
    """
  -class: "ErrorException"
  -statusCode: 500
  -headers: []
  -file: "/app/Http/Controllers/MainController.php"
  -line: 529
}