Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Horizon Dashboard infinite load. Parse error: syntax error, unexpected '=' #26

Closed
jericopulvera opened this issue Jul 27, 2017 · 1 comment

Comments

@jericopulvera
Copy link
Contributor

http://laravel55.dev/horizon/api/stats

{
    "message": "Parse error: syntax error, unexpected '='",
    "file": "/home/laravel/Sites/laravel55/vendor/laravel/horizon/src/WaitTimeCalculator.php",
    "line": 75,
    "trace": [
        {
            "file": "/home/laravel/Sites/laravel55/vendor/composer/ClassLoader.php",
            "line": 301,
            "function": "Composer\\Autoload\\includeFile",
            "args": [
                "/home/laravel/Sites/laravel55/vendor/laravel/horizon/src/WaitTimeCalculator.php"
            ]
        },
        {
            "function": "loadClass",
            "class": "Composer\\Autoload\\ClassLoader",
            "type": "->",
            "args": [
                "Laravel\\Horizon\\WaitTimeCalculator"
            ]
        },
        {
            "function": "spl_autoload_call",
            "args": [
                "Laravel\\Horizon\\WaitTimeCalculator"
            ]
        },
        {
            "file": "/home/laravel/Sites/laravel55/vendor/laravel/framework/src/Illuminate/Container/Container.php",
            "line": 752,
            "function": "__construct",
            "class": "ReflectionClass",
            "type": "->",
            "args": [
                "Laravel\\Horizon\\WaitTimeCalculator"
            ]
        },
        {
            "file": "/home/laravel/Sites/laravel55/vendor/laravel/framework/src/Illuminate/Container/Container.php",
            "line": 631,
            "function": "build",
            "class": "Illuminate\\Container\\Container",
            "type": "->",
            "args": [
                "Laravel\\Horizon\\WaitTimeCalculator"
            ]
        },
        {
            "file": "/home/laravel/Sites/laravel55/vendor/laravel/framework/src/Illuminate/Container/Container.php",
            "line": 586,
            "function": "resolve",
            "class": "Illuminate\\Container\\Container",
            "type": "->",
            "args": [
                "Laravel\\Horizon\\WaitTimeCalculator",
                []
            ]
        },
        {
            "file": "/home/laravel/Sites/laravel55/vendor/laravel/framework/src/Illuminate/Foundation/Application.php",
            "line": 721,
            "function": "make",
            "class": "Illuminate\\Container\\Container",
            "type": "->",
            "args": [
                "Laravel\\Horizon\\WaitTimeCalculator",
                []
            ]
        },
        {
            "file": "/home/laravel/Sites/laravel55/vendor/laravel/framework/src/Illuminate/Foundation/helpers.php",
            "line": 107,
            "function": "make",
            "class": "Illuminate\\Foundation\\Application",
            "type": "->",
            "args": [
                "Laravel\\Horizon\\WaitTimeCalculator"
            ]
        },
        {
            "file": "/home/laravel/Sites/laravel55/vendor/laravel/framework/src/Illuminate/Foundation/helpers.php",
            "line": 677,
            "function": "app",
            "args": [
                "Laravel\\Horizon\\WaitTimeCalculator"
            ]
        },
        {
            "file": "/home/laravel/Sites/laravel55/vendor/laravel/horizon/src/Http/Controllers/DashboardStatsController.php",
            "line": 28,
            "function": "resolve",
            "args": [
                "Laravel\\Horizon\\WaitTimeCalculator"
            ]
        },
        {
            "function": "index",
            "class": "Laravel\\Horizon\\Http\\Controllers\\DashboardStatsController",
            "type": "->",
            "args": []
        },
        {
            "file": "/home/laravel/Sites/laravel55/vendor/laravel/framework/src/Illuminate/Routing/Controller.php",
            "line": 54,
            "function": "call_user_func_array",
            "args": [
                [
                    {},
                    "index"
                ],
                []
            ]
        },
        {
            "file": "/home/laravel/Sites/laravel55/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php",
            "line": 45,
            "function": "callAction",
            "class": "Illuminate\\Routing\\Controller",
            "type": "->",
            "args": [
                "index",
                []
            ]
        },
        {
            "file": "/home/laravel/Sites/laravel55/vendor/laravel/framework/src/Illuminate/Routing/Route.php",
            "line": 204,
            "function": "dispatch",
            "class": "Illuminate\\Routing\\ControllerDispatcher",
            "type": "->",
            "args": [
                {
                    "uri": "horizon/api/stats",
                    "methods": [
                        "GET",
                        "HEAD"
                    ],
                    "action": {
                        "uses": "Laravel\\Horizon\\Http\\Controllers\\DashboardStatsController@index",
                        "controller": "Laravel\\Horizon\\Http\\Controllers\\DashboardStatsController@index",
                        "namespace": "Laravel\\Horizon\\Http\\Controllers",
                        "prefix": "horizon",
                        "where": []
                    },
                    "controller": {},
                    "defaults": [],
                    "wheres": [],
                    "parameters": [],
                    "parameterNames": [],
                    "computedMiddleware": [
                        "Laravel\\Horizon\\Http\\Middleware\\Authenticate"
                    ],
                    "compiled": {}
                },
                {},
                "index"
            ]
        },
        {
            "file": "/home/laravel/Sites/laravel55/vendor/laravel/framework/src/Illuminate/Routing/Route.php",
            "line": 161,
            "function": "runController",
            "class": "Illuminate\\Routing\\Route",
            "type": "->",
            "args": []
        },
        {
            "file": "/home/laravel/Sites/laravel55/vendor/laravel/framework/src/Illuminate/Routing/Router.php",
            "line": 612,
            "function": "run",
            "class": "Illuminate\\Routing\\Route",
            "type": "->",
            "args": []
        },
        {
            "file": "/home/laravel/Sites/laravel55/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php",
            "line": 30,
            "function": "Illuminate\\Routing\\{closure}",
            "class": "Illuminate\\Routing\\Router",
            "type": "->",
            "args": [
                {
                    "attributes": {},
                    "request": {},
                    "query": {},
                    "server": {},
                    "files": {},
                    "cookies": {},
                    "headers": {}
                }
            ]
        },
        {
            "file": "/home/laravel/Sites/laravel55/vendor/laravel/horizon/src/Http/Middleware/Authenticate.php",
            "line": 18,
            "function": "Illuminate\\Routing\\{closure}",
            "class": "Illuminate\\Routing\\Pipeline",
            "type": "->",
            "args": [
                {
                    "attributes": {},
                    "request": {},
                    "query": {},
                    "server": {},
                    "files": {},
                    "cookies": {},
                    "headers": {}
                }
            ]
        },
        {
            "file": "/home/laravel/Sites/laravel55/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
            "line": 149,
            "function": "handle",
            "class": "Laravel\\Horizon\\Http\\Middleware\\Authenticate",
            "type": "->",
            "args": [
                {
                    "attributes": {},
                    "request": {},
                    "query": {},
                    "server": {},
                    "files": {},
                    "cookies": {},
                    "headers": {}
                },
                {}
            ]
        },
        {
            "file": "/home/laravel/Sites/laravel55/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php",
            "line": 53,
            "function": "Illuminate\\Pipeline\\{closure}",
            "class": "Illuminate\\Pipeline\\Pipeline",
            "type": "->",
            "args": [
                {
                    "attributes": {},
                    "request": {},
                    "query": {},
                    "server": {},
                    "files": {},
                    "cookies": {},
                    "headers": {}
                }
            ]
        },
        {
            "file": "/home/laravel/Sites/laravel55/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
            "line": 102,
            "function": "Illuminate\\Routing\\{closure}",
            "class": "Illuminate\\Routing\\Pipeline",
            "type": "->",
            "args": [
                {
                    "attributes": {},
                    "request": {},
                    "query": {},
                    "server": {},
                    "files": {},
                    "cookies": {},
                    "headers": {}
                }
            ]
        },
        {
            "file": "/home/laravel/Sites/laravel55/vendor/laravel/framework/src/Illuminate/Routing/Router.php",
            "line": 614,
            "function": "then",
            "class": "Illuminate\\Pipeline\\Pipeline",
            "type": "->",
            "args": [
                {}
            ]
        },
        {
            "file": "/home/laravel/Sites/laravel55/vendor/laravel/framework/src/Illuminate/Routing/Router.php",
            "line": 573,
            "function": "runRouteWithinStack",
            "class": "Illuminate\\Routing\\Router",
            "type": "->",
            "args": [
                {
                    "uri": "horizon/api/stats",
                    "methods": [
                        "GET",
                        "HEAD"
                    ],
                    "action": {
                        "uses": "Laravel\\Horizon\\Http\\Controllers\\DashboardStatsController@index",
                        "controller": "Laravel\\Horizon\\Http\\Controllers\\DashboardStatsController@index",
                        "namespace": "Laravel\\Horizon\\Http\\Controllers",
                        "prefix": "horizon",
                        "where": []
                    },
                    "controller": {},
                    "defaults": [],
                    "wheres": [],
                    "parameters": [],
                    "parameterNames": [],
                    "computedMiddleware": [
                        "Laravel\\Horizon\\Http\\Middleware\\Authenticate"
                    ],
                    "compiled": {}
                },
                {
                    "attributes": {},
                    "request": {},
                    "query": {},
                    "server": {},
                    "files": {},
                    "cookies": {},
                    "headers": {}
                }
            ]
        },
        {
            "file": "/home/laravel/Sites/laravel55/vendor/laravel/framework/src/Illuminate/Routing/Router.php",
            "line": 551,
            "function": "dispatchToRoute",
            "class": "Illuminate\\Routing\\Router",
            "type": "->",
            "args": [
                {
                    "attributes": {},
                    "request": {},
                    "query": {},
                    "server": {},
                    "files": {},
                    "cookies": {},
                    "headers": {}
                }
            ]
        },
        {
            "file": "/home/laravel/Sites/laravel55/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php",
            "line": 176,
            "function": "dispatch",
            "class": "Illuminate\\Routing\\Router",
            "type": "->",
            "args": [
                {
                    "attributes": {},
                    "request": {},
                    "query": {},
                    "server": {},
                    "files": {},
                    "cookies": {},
                    "headers": {}
                }
            ]
        },
        {
            "file": "/home/laravel/Sites/laravel55/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php",
            "line": 30,
            "function": "Illuminate\\Foundation\\Http\\{closure}",
            "class": "Illuminate\\Foundation\\Http\\Kernel",
            "type": "->",
            "args": [
                {
                    "attributes": {},
                    "request": {},
                    "query": {},
                    "server": {},
                    "files": {},
                    "cookies": {},
                    "headers": {}
                }
            ]
        },
        {
            "file": "/home/laravel/Sites/laravel55/vendor/fideloper/proxy/src/TrustProxies.php",
            "line": 56,
            "function": "Illuminate\\Routing\\{closure}",
            "class": "Illuminate\\Routing\\Pipeline",
            "type": "->",
            "args": [
                {
                    "attributes": {},
                    "request": {},
                    "query": {},
                    "server": {},
                    "files": {},
                    "cookies": {},
                    "headers": {}
                }
            ]
        },
        {
            "file": "/home/laravel/Sites/laravel55/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
            "line": 149,
            "function": "handle",
            "class": "Fideloper\\Proxy\\TrustProxies",
            "type": "->",
            "args": [
                {
                    "attributes": {},
                    "request": {},
                    "query": {},
                    "server": {},
                    "files": {},
                    "cookies": {},
                    "headers": {}
                },
                {}
            ]
        },
        {
            "file": "/home/laravel/Sites/laravel55/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php",
            "line": 53,
            "function": "Illuminate\\Pipeline\\{closure}",
            "class": "Illuminate\\Pipeline\\Pipeline",
            "type": "->",
            "args": [
                {
                    "attributes": {},
                    "request": {},
                    "query": {},
                    "server": {},
                    "files": {},
                    "cookies": {},
                    "headers": {}
                }
            ]
        },
        {
            "file": "/home/laravel/Sites/laravel55/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php",
            "line": 30,
            "function": "Illuminate\\Routing\\{closure}",
            "class": "Illuminate\\Routing\\Pipeline",
            "type": "->",
            "args": [
                {
                    "attributes": {},
                    "request": {},
                    "query": {},
                    "server": {},
                    "files": {},
                    "cookies": {},
                    "headers": {}
                }
            ]
        },
        {
            "file": "/home/laravel/Sites/laravel55/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
            "line": 149,
            "function": "handle",
            "class": "Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest",
            "type": "->",
            "args": [
                {
                    "attributes": {},
                    "request": {},
                    "query": {},
                    "server": {},
                    "files": {},
                    "cookies": {},
                    "headers": {}
                },
                {}
            ]
        },
        {
            "file": "/home/laravel/Sites/laravel55/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php",
            "line": 53,
            "function": "Illuminate\\Pipeline\\{closure}",
            "class": "Illuminate\\Pipeline\\Pipeline",
            "type": "->",
            "args": [
                {
                    "attributes": {},
                    "request": {},
                    "query": {},
                    "server": {},
                    "files": {},
                    "cookies": {},
                    "headers": {}
                }
            ]
        },
        {
            "file": "/home/laravel/Sites/laravel55/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php",
            "line": 30,
            "function": "Illuminate\\Routing\\{closure}",
            "class": "Illuminate\\Routing\\Pipeline",
            "type": "->",
            "args": [
                {
                    "attributes": {},
                    "request": {},
                    "query": {},
                    "server": {},
                    "files": {},
                    "cookies": {},
                    "headers": {}
                }
            ]
        },
        {
            "file": "/home/laravel/Sites/laravel55/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
            "line": 149,
            "function": "handle",
            "class": "Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest",
            "type": "->",
            "args": [
                {
                    "attributes": {},
                    "request": {},
                    "query": {},
                    "server": {},
                    "files": {},
                    "cookies": {},
                    "headers": {}
                },
                {}
            ]
        },
        {
            "file": "/home/laravel/Sites/laravel55/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php",
            "line": 53,
            "function": "Illuminate\\Pipeline\\{closure}",
            "class": "Illuminate\\Pipeline\\Pipeline",
            "type": "->",
            "args": [
                {
                    "attributes": {},
                    "request": {},
                    "query": {},
                    "server": {},
                    "files": {},
                    "cookies": {},
                    "headers": {}
                }
            ]
        },
        {
            "file": "/home/laravel/Sites/laravel55/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php",
            "line": 27,
            "function": "Illuminate\\Routing\\{closure}",
            "class": "Illuminate\\Routing\\Pipeline",
            "type": "->",
            "args": [
                {
                    "attributes": {},
                    "request": {},
                    "query": {},
                    "server": {},
                    "files": {},
                    "cookies": {},
                    "headers": {}
                }
            ]
        },
        {
            "file": "/home/laravel/Sites/laravel55/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
            "line": 149,
            "function": "handle",
            "class": "Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize",
            "type": "->",
            "args": [
                {
                    "attributes": {},
                    "request": {},
                    "query": {},
                    "server": {},
                    "files": {},
                    "cookies": {},
                    "headers": {}
                },
                {}
            ]
        },
        {
            "file": "/home/laravel/Sites/laravel55/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php",
            "line": 53,
            "function": "Illuminate\\Pipeline\\{closure}",
            "class": "Illuminate\\Pipeline\\Pipeline",
            "type": "->",
            "args": [
                {
                    "attributes": {},
                    "request": {},
                    "query": {},
                    "server": {},
                    "files": {},
                    "cookies": {},
                    "headers": {}
                }
            ]
        },
        {
            "file": "/home/laravel/Sites/laravel55/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/CheckForMaintenanceMode.php",
            "line": 46,
            "function": "Illuminate\\Routing\\{closure}",
            "class": "Illuminate\\Routing\\Pipeline",
            "type": "->",
            "args": [
                {
                    "attributes": {},
                    "request": {},
                    "query": {},
                    "server": {},
                    "files": {},
                    "cookies": {},
                    "headers": {}
                }
            ]
        },
        {
            "file": "/home/laravel/Sites/laravel55/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
            "line": 149,
            "function": "handle",
            "class": "Illuminate\\Foundation\\Http\\Middleware\\CheckForMaintenanceMode",
            "type": "->",
            "args": [
                {
                    "attributes": {},
                    "request": {},
                    "query": {},
                    "server": {},
                    "files": {},
                    "cookies": {},
                    "headers": {}
                },
                {}
            ]
        },
        {
            "file": "/home/laravel/Sites/laravel55/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php",
            "line": 53,
            "function": "Illuminate\\Pipeline\\{closure}",
            "class": "Illuminate\\Pipeline\\Pipeline",
            "type": "->",
            "args": [
                {
                    "attributes": {},
                    "request": {},
                    "query": {},
                    "server": {},
                    "files": {},
                    "cookies": {},
                    "headers": {}
                }
            ]
        },
        {
            "file": "/home/laravel/Sites/laravel55/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
            "line": 102,
            "function": "Illuminate\\Routing\\{closure}",
            "class": "Illuminate\\Routing\\Pipeline",
            "type": "->",
            "args": [
                {
                    "attributes": {},
                    "request": {},
                    "query": {},
                    "server": {},
                    "files": {},
                    "cookies": {},
                    "headers": {}
                }
            ]
        },
        {
            "file": "/home/laravel/Sites/laravel55/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php",
            "line": 151,
            "function": "then",
            "class": "Illuminate\\Pipeline\\Pipeline",
            "type": "->",
            "args": [
                {}
            ]
        },
        {
            "file": "/home/laravel/Sites/laravel55/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php",
            "line": 116,
            "function": "sendRequestThroughRouter",
            "class": "Illuminate\\Foundation\\Http\\Kernel",
            "type": "->",
            "args": [
                {
                    "attributes": {},
                    "request": {},
                    "query": {},
                    "server": {},
                    "files": {},
                    "cookies": {},
                    "headers": {}
                }
            ]
        },
        {
            "file": "/home/laravel/Sites/laravel55/public/index.php",
            "line": 55,
            "function": "handle",
            "class": "Illuminate\\Foundation\\Http\\Kernel",
            "type": "->",
            "args": [
                {
                    "attributes": {},
                    "request": {},
                    "query": {},
                    "server": {},
                    "files": {},
                    "cookies": {},
                    "headers": {}
                }
            ]
        },
        {
            "file": "/home/laravel/.composer/vendor/cpriego/valet-linux/server.php",
            "line": 197,
            "args": [
                "/home/laravel/Sites/laravel55/public/index.php"
            ],
            "function": "require"
        }
    ]
}

http://laravel55.dev/horizon/api/workload

{
    "message": "Parse error: syntax error, unexpected '='",
    "file": "/home/laravel/Sites/laravel55/vendor/laravel/horizon/src/Repositories/RedisWorkloadRepository.php",
    "line": 70,
    "trace": [
        {
            "file": "/home/laravel/Sites/laravel55/vendor/composer/ClassLoader.php",
            "line": 301,
            "function": "Composer\\Autoload\\includeFile",
            "args": [
                "/home/laravel/Sites/laravel55/vendor/laravel/horizon/src/Repositories/RedisWorkloadRepository.php"
            ]
        },
        {
            "function": "loadClass",
            "class": "Composer\\Autoload\\ClassLoader",
            "type": "->",
            "args": [
                "Laravel\\Horizon\\Repositories\\RedisWorkloadRepository"
            ]
        },
        {
            "function": "spl_autoload_call",
            "args": [
                "Laravel\\Horizon\\Repositories\\RedisWorkloadRepository"
            ]
        },
        {
            "file": "/home/laravel/Sites/laravel55/vendor/laravel/framework/src/Illuminate/Container/Container.php",
            "line": 752,
            "function": "__construct",
            "class": "ReflectionClass",
            "type": "->",
            "args": [
                "Laravel\\Horizon\\Repositories\\RedisWorkloadRepository"
            ]
        },
        {
            "file": "/home/laravel/Sites/laravel55/vendor/laravel/framework/src/Illuminate/Container/Container.php",
            "line": 631,
            "function": "build",
            "class": "Illuminate\\Container\\Container",
            "type": "->",
            "args": [
                "Laravel\\Horizon\\Repositories\\RedisWorkloadRepository"
            ]
        },
        {
            "file": "/home/laravel/Sites/laravel55/vendor/laravel/framework/src/Illuminate/Container/Container.php",
            "line": 586,
            "function": "resolve",
            "class": "Illuminate\\Container\\Container",
            "type": "->",
            "args": [
                "Laravel\\Horizon\\Repositories\\RedisWorkloadRepository",
                []
            ]
        },
        {
            "file": "/home/laravel/Sites/laravel55/vendor/laravel/framework/src/Illuminate/Foundation/Application.php",
            "line": 721,
            "function": "make",
            "class": "Illuminate\\Container\\Container",
            "type": "->",
            "args": [
                "Laravel\\Horizon\\Repositories\\RedisWorkloadRepository",
                []
            ]
        },
        {
            "file": "/home/laravel/Sites/laravel55/vendor/laravel/framework/src/Illuminate/Container/Container.php",
            "line": 256,
            "function": "make",
            "class": "Illuminate\\Foundation\\Application",
            "type": "->",
            "args": [
                "Laravel\\Horizon\\Repositories\\RedisWorkloadRepository",
                []
            ]
        },
        {
            "file": "/home/laravel/Sites/laravel55/vendor/laravel/framework/src/Illuminate/Container/Container.php",
            "line": 749,
            "function": "Illuminate\\Container\\{closure}",
            "class": "Illuminate\\Container\\Container",
            "type": "->",
            "args": [
                {
                    "contextual": []
                },
                []
            ]
        },
        {
            "file": "/home/laravel/Sites/laravel55/vendor/laravel/framework/src/Illuminate/Container/Container.php",
            "line": 631,
            "function": "build",
            "class": "Illuminate\\Container\\Container",
            "type": "->",
            "args": [
                {}
            ]
        },
        {
            "file": "/home/laravel/Sites/laravel55/vendor/laravel/framework/src/Illuminate/Container/Container.php",
            "line": 586,
            "function": "resolve",
            "class": "Illuminate\\Container\\Container",
            "type": "->",
            "args": [
                "Laravel\\Horizon\\Contracts\\WorkloadRepository",
                []
            ]
        },
        {
            "file": "/home/laravel/Sites/laravel55/vendor/laravel/framework/src/Illuminate/Foundation/Application.php",
            "line": 721,
            "function": "make",
            "class": "Illuminate\\Container\\Container",
            "type": "->",
            "args": [
                "Laravel\\Horizon\\Contracts\\WorkloadRepository",
                []
            ]
        },
        {
            "file": "/home/laravel/Sites/laravel55/vendor/laravel/framework/src/Illuminate/Routing/RouteDependencyResolverTrait.php",
            "line": 79,
            "function": "make",
            "class": "Illuminate\\Foundation\\Application",
            "type": "->",
            "args": [
                "Laravel\\Horizon\\Contracts\\WorkloadRepository"
            ]
        },
        {
            "file": "/home/laravel/Sites/laravel55/vendor/laravel/framework/src/Illuminate/Routing/RouteDependencyResolverTrait.php",
            "line": 45,
            "function": "transformDependency",
            "class": "Illuminate\\Routing\\ControllerDispatcher",
            "type": "->",
            "args": [
                {
                    "name": "workload"
                },
                []
            ]
        },
        {
            "file": "/home/laravel/Sites/laravel55/vendor/laravel/framework/src/Illuminate/Routing/RouteDependencyResolverTrait.php",
            "line": 27,
            "function": "resolveMethodDependencies",
            "class": "Illuminate\\Routing\\ControllerDispatcher",
            "type": "->",
            "args": [
                [],
                {
                    "name": "index",
                    "class": "Laravel\\Horizon\\Http\\Controllers\\WorkloadController"
                }
            ]
        },
        {
            "file": "/home/laravel/Sites/laravel55/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php",
            "line": 41,
            "function": "resolveClassMethodDependencies",
            "class": "Illuminate\\Routing\\ControllerDispatcher",
            "type": "->",
            "args": [
                [],
                {},
                "index"
            ]
        },
        {
            "file": "/home/laravel/Sites/laravel55/vendor/laravel/framework/src/Illuminate/Routing/Route.php",
            "line": 204,
            "function": "dispatch",
            "class": "Illuminate\\Routing\\ControllerDispatcher",
            "type": "->",
            "args": [
                {
                    "uri": "horizon/api/workload",
                    "methods": [
                        "GET",
                        "HEAD"
                    ],
                    "action": {
                        "uses": "Laravel\\Horizon\\Http\\Controllers\\WorkloadController@index",
                        "controller": "Laravel\\Horizon\\Http\\Controllers\\WorkloadController@index",
                        "namespace": "Laravel\\Horizon\\Http\\Controllers",
                        "prefix": "horizon",
                        "where": []
                    },
                    "controller": {},
                    "defaults": [],
                    "wheres": [],
                    "parameters": [],
                    "parameterNames": [],
                    "computedMiddleware": [
                        "Laravel\\Horizon\\Http\\Middleware\\Authenticate"
                    ],
                    "compiled": {}
                },
                {},
                "index"
            ]
        },
        {
            "file": "/home/laravel/Sites/laravel55/vendor/laravel/framework/src/Illuminate/Routing/Route.php",
            "line": 161,
            "function": "runController",
            "class": "Illuminate\\Routing\\Route",
            "type": "->",
            "args": []
        },
        {
            "file": "/home/laravel/Sites/laravel55/vendor/laravel/framework/src/Illuminate/Routing/Router.php",
            "line": 612,
            "function": "run",
            "class": "Illuminate\\Routing\\Route",
            "type": "->",
            "args": []
        },
        {
            "file": "/home/laravel/Sites/laravel55/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php",
            "line": 30,
            "function": "Illuminate\\Routing\\{closure}",
            "class": "Illuminate\\Routing\\Router",
            "type": "->",
            "args": [
                {
                    "attributes": {},
                    "request": {},
                    "query": {},
                    "server": {},
                    "files": {},
                    "cookies": {},
                    "headers": {}
                }
            ]
        },
        {
            "file": "/home/laravel/Sites/laravel55/vendor/laravel/horizon/src/Http/Middleware/Authenticate.php",
            "line": 18,
            "function": "Illuminate\\Routing\\{closure}",
            "class": "Illuminate\\Routing\\Pipeline",
            "type": "->",
            "args": [
                {
                    "attributes": {},
                    "request": {},
                    "query": {},
                    "server": {},
                    "files": {},
                    "cookies": {},
                    "headers": {}
                }
            ]
        },
        {
            "file": "/home/laravel/Sites/laravel55/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
            "line": 149,
            "function": "handle",
            "class": "Laravel\\Horizon\\Http\\Middleware\\Authenticate",
            "type": "->",
            "args": [
                {
                    "attributes": {},
                    "request": {},
                    "query": {},
                    "server": {},
                    "files": {},
                    "cookies": {},
                    "headers": {}
                },
                {}
            ]
        },
        {
            "file": "/home/laravel/Sites/laravel55/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php",
            "line": 53,
            "function": "Illuminate\\Pipeline\\{closure}",
            "class": "Illuminate\\Pipeline\\Pipeline",
            "type": "->",
            "args": [
                {
                    "attributes": {},
                    "request": {},
                    "query": {},
                    "server": {},
                    "files": {},
                    "cookies": {},
                    "headers": {}
                }
            ]
        },
        {
            "file": "/home/laravel/Sites/laravel55/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
            "line": 102,
            "function": "Illuminate\\Routing\\{closure}",
            "class": "Illuminate\\Routing\\Pipeline",
            "type": "->",
            "args": [
                {
                    "attributes": {},
                    "request": {},
                    "query": {},
                    "server": {},
                    "files": {},
                    "cookies": {},
                    "headers": {}
                }
            ]
        },
        {
            "file": "/home/laravel/Sites/laravel55/vendor/laravel/framework/src/Illuminate/Routing/Router.php",
            "line": 614,
            "function": "then",
            "class": "Illuminate\\Pipeline\\Pipeline",
            "type": "->",
            "args": [
                {}
            ]
        },
        {
            "file": "/home/laravel/Sites/laravel55/vendor/laravel/framework/src/Illuminate/Routing/Router.php",
            "line": 573,
            "function": "runRouteWithinStack",
            "class": "Illuminate\\Routing\\Router",
            "type": "->",
            "args": [
                {
                    "uri": "horizon/api/workload",
                    "methods": [
                        "GET",
                        "HEAD"
                    ],
                    "action": {
                        "uses": "Laravel\\Horizon\\Http\\Controllers\\WorkloadController@index",
                        "controller": "Laravel\\Horizon\\Http\\Controllers\\WorkloadController@index",
                        "namespace": "Laravel\\Horizon\\Http\\Controllers",
                        "prefix": "horizon",
                        "where": []
                    },
                    "controller": {},
                    "defaults": [],
                    "wheres": [],
                    "parameters": [],
                    "parameterNames": [],
                    "computedMiddleware": [
                        "Laravel\\Horizon\\Http\\Middleware\\Authenticate"
                    ],
                    "compiled": {}
                },
                {
                    "attributes": {},
                    "request": {},
                    "query": {},
                    "server": {},
                    "files": {},
                    "cookies": {},
                    "headers": {}
                }
            ]
        },
        {
            "file": "/home/laravel/Sites/laravel55/vendor/laravel/framework/src/Illuminate/Routing/Router.php",
            "line": 551,
            "function": "dispatchToRoute",
            "class": "Illuminate\\Routing\\Router",
            "type": "->",
            "args": [
                {
                    "attributes": {},
                    "request": {},
                    "query": {},
                    "server": {},
                    "files": {},
                    "cookies": {},
                    "headers": {}
                }
            ]
        },
        {
            "file": "/home/laravel/Sites/laravel55/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php",
            "line": 176,
            "function": "dispatch",
            "class": "Illuminate\\Routing\\Router",
            "type": "->",
            "args": [
                {
                    "attributes": {},
                    "request": {},
                    "query": {},
                    "server": {},
                    "files": {},
                    "cookies": {},
                    "headers": {}
                }
            ]
        },
        {
            "file": "/home/laravel/Sites/laravel55/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php",
            "line": 30,
            "function": "Illuminate\\Foundation\\Http\\{closure}",
            "class": "Illuminate\\Foundation\\Http\\Kernel",
            "type": "->",
            "args": [
                {
                    "attributes": {},
                    "request": {},
                    "query": {},
                    "server": {},
                    "files": {},
                    "cookies": {},
                    "headers": {}
                }
            ]
        },
        {
            "file": "/home/laravel/Sites/laravel55/vendor/fideloper/proxy/src/TrustProxies.php",
            "line": 56,
            "function": "Illuminate\\Routing\\{closure}",
            "class": "Illuminate\\Routing\\Pipeline",
            "type": "->",
            "args": [
                {
                    "attributes": {},
                    "request": {},
                    "query": {},
                    "server": {},
                    "files": {},
                    "cookies": {},
                    "headers": {}
                }
            ]
        },
        {
            "file": "/home/laravel/Sites/laravel55/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
            "line": 149,
            "function": "handle",
            "class": "Fideloper\\Proxy\\TrustProxies",
            "type": "->",
            "args": [
                {
                    "attributes": {},
                    "request": {},
                    "query": {},
                    "server": {},
                    "files": {},
                    "cookies": {},
                    "headers": {}
                },
                {}
            ]
        },
        {
            "file": "/home/laravel/Sites/laravel55/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php",
            "line": 53,
            "function": "Illuminate\\Pipeline\\{closure}",
            "class": "Illuminate\\Pipeline\\Pipeline",
            "type": "->",
            "args": [
                {
                    "attributes": {},
                    "request": {},
                    "query": {},
                    "server": {},
                    "files": {},
                    "cookies": {},
                    "headers": {}
                }
            ]
        },
        {
            "file": "/home/laravel/Sites/laravel55/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php",
            "line": 30,
            "function": "Illuminate\\Routing\\{closure}",
            "class": "Illuminate\\Routing\\Pipeline",
            "type": "->",
            "args": [
                {
                    "attributes": {},
                    "request": {},
                    "query": {},
                    "server": {},
                    "files": {},
                    "cookies": {},
                    "headers": {}
                }
            ]
        },
        {
            "file": "/home/laravel/Sites/laravel55/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
            "line": 149,
            "function": "handle",
            "class": "Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest",
            "type": "->",
            "args": [
                {
                    "attributes": {},
                    "request": {},
                    "query": {},
                    "server": {},
                    "files": {},
                    "cookies": {},
                    "headers": {}
                },
                {}
            ]
        },
        {
            "file": "/home/laravel/Sites/laravel55/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php",
            "line": 53,
            "function": "Illuminate\\Pipeline\\{closure}",
            "class": "Illuminate\\Pipeline\\Pipeline",
            "type": "->",
            "args": [
                {
                    "attributes": {},
                    "request": {},
                    "query": {},
                    "server": {},
                    "files": {},
                    "cookies": {},
                    "headers": {}
                }
            ]
        },
        {
            "file": "/home/laravel/Sites/laravel55/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php",
            "line": 30,
            "function": "Illuminate\\Routing\\{closure}",
            "class": "Illuminate\\Routing\\Pipeline",
            "type": "->",
            "args": [
                {
                    "attributes": {},
                    "request": {},
                    "query": {},
                    "server": {},
                    "files": {},
                    "cookies": {},
                    "headers": {}
                }
            ]
        },
        {
            "file": "/home/laravel/Sites/laravel55/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
            "line": 149,
            "function": "handle",
            "class": "Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest",
            "type": "->",
            "args": [
                {
                    "attributes": {},
                    "request": {},
                    "query": {},
                    "server": {},
                    "files": {},
                    "cookies": {},
                    "headers": {}
                },
                {}
            ]
        },
        {
            "file": "/home/laravel/Sites/laravel55/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php",
            "line": 53,
            "function": "Illuminate\\Pipeline\\{closure}",
            "class": "Illuminate\\Pipeline\\Pipeline",
            "type": "->",
            "args": [
                {
                    "attributes": {},
                    "request": {},
                    "query": {},
                    "server": {},
                    "files": {},
                    "cookies": {},
                    "headers": {}
                }
            ]
        },
        {
            "file": "/home/laravel/Sites/laravel55/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php",
            "line": 27,
            "function": "Illuminate\\Routing\\{closure}",
            "class": "Illuminate\\Routing\\Pipeline",
            "type": "->",
            "args": [
                {
                    "attributes": {},
                    "request": {},
                    "query": {},
                    "server": {},
                    "files": {},
                    "cookies": {},
                    "headers": {}
                }
            ]
        },
        {
            "file": "/home/laravel/Sites/laravel55/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
            "line": 149,
            "function": "handle",
            "class": "Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize",
            "type": "->",
            "args": [
                {
                    "attributes": {},
                    "request": {},
                    "query": {},
                    "server": {},
                    "files": {},
                    "cookies": {},
                    "headers": {}
                },
                {}
            ]
        },
        {
            "file": "/home/laravel/Sites/laravel55/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php",
            "line": 53,
            "function": "Illuminate\\Pipeline\\{closure}",
            "class": "Illuminate\\Pipeline\\Pipeline",
            "type": "->",
            "args": [
                {
                    "attributes": {},
                    "request": {},
                    "query": {},
                    "server": {},
                    "files": {},
                    "cookies": {},
                    "headers": {}
                }
            ]
        },
        {
            "file": "/home/laravel/Sites/laravel55/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/CheckForMaintenanceMode.php",
            "line": 46,
            "function": "Illuminate\\Routing\\{closure}",
            "class": "Illuminate\\Routing\\Pipeline",
            "type": "->",
            "args": [
                {
                    "attributes": {},
                    "request": {},
                    "query": {},
                    "server": {},
                    "files": {},
                    "cookies": {},
                    "headers": {}
                }
            ]
        },
        {
            "file": "/home/laravel/Sites/laravel55/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
            "line": 149,
            "function": "handle",
            "class": "Illuminate\\Foundation\\Http\\Middleware\\CheckForMaintenanceMode",
            "type": "->",
            "args": [
                {
                    "attributes": {},
                    "request": {},
                    "query": {},
                    "server": {},
                    "files": {},
                    "cookies": {},
                    "headers": {}
                },
                {}
            ]
        },
        {
            "file": "/home/laravel/Sites/laravel55/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php",
            "line": 53,
            "function": "Illuminate\\Pipeline\\{closure}",
            "class": "Illuminate\\Pipeline\\Pipeline",
            "type": "->",
            "args": [
                {
                    "attributes": {},
                    "request": {},
                    "query": {},
                    "server": {},
                    "files": {},
                    "cookies": {},
                    "headers": {}
                }
            ]
        },
        {
            "file": "/home/laravel/Sites/laravel55/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
            "line": 102,
            "function": "Illuminate\\Routing\\{closure}",
            "class": "Illuminate\\Routing\\Pipeline",
            "type": "->",
            "args": [
                {
                    "attributes": {},
                    "request": {},
                    "query": {},
                    "server": {},
                    "files": {},
                    "cookies": {},
                    "headers": {}
                }
            ]
        },
        {
            "file": "/home/laravel/Sites/laravel55/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php",
            "line": 151,
            "function": "then",
            "class": "Illuminate\\Pipeline\\Pipeline",
            "type": "->",
            "args": [
                {}
            ]
        },
        {
            "file": "/home/laravel/Sites/laravel55/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php",
            "line": 116,
            "function": "sendRequestThroughRouter",
            "class": "Illuminate\\Foundation\\Http\\Kernel",
            "type": "->",
            "args": [
                {
                    "attributes": {},
                    "request": {},
                    "query": {},
                    "server": {},
                    "files": {},
                    "cookies": {},
                    "headers": {}
                }
            ]
        },
        {
            "file": "/home/laravel/Sites/laravel55/public/index.php",
            "line": 55,
            "function": "handle",
            "class": "Illuminate\\Foundation\\Http\\Kernel",
            "type": "->",
            "args": [
                {
                    "attributes": {},
                    "request": {},
                    "query": {},
                    "server": {},
                    "files": {},
                    "cookies": {},
                    "headers": {}
                }
            ]
        },
        {
            "file": "/home/laravel/.composer/vendor/cpriego/valet-linux/server.php",
            "line": 197,
            "args": [
                "/home/laravel/Sites/laravel55/public/index.php"
            ],
            "function": "require"
        }
    ]
}
@jericopulvera
Copy link
Contributor Author

Turns out this is a problem with my php installation.

Followed this https://serversforhackers.com/c/lemp-nginx-php-laravel

and now it works.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant