{
    "message": "Serialization of 'Closure' is not allowed",
    "exception": "Exception",
    "file": "/srv/deploy/envycrm/releases/first/vendor/laravel/framework/src/Illuminate/Cache/MemcachedStore.php",
    "line": 106,
    "trace": [
        {
            "file": "/srv/deploy/envycrm/releases/first/vendor/laravel/framework/src/Illuminate/Cache/MemcachedStore.php",
            "line": 106,
            "function": "set",
            "class": "Memcached",
            "type": "->"
        },
        {
            "file": "/srv/deploy/envycrm/releases/first/vendor/laravel/framework/src/Illuminate/Cache/Repository.php",
            "line": 213,
            "function": "put",
            "class": "Illuminate\\Cache\\MemcachedStore",
            "type": "->"
        },
        {
            "file": "/srv/deploy/envycrm/releases/first/vendor/laravel/framework/src/Illuminate/Cache/Repository.php",
            "line": 391,
            "function": "put",
            "class": "Illuminate\\Cache\\Repository",
            "type": "->"
        },
        {
            "file": "/srv/deploy/envycrm/releases/first/app/Domain/CrmService/Gateways/CrmServiceInstanceGateway.php",
            "line": 44,
            "function": "remember",
            "class": "Illuminate\\Cache\\Repository",
            "type": "->"
        },
        {
            "file": "/srv/deploy/envycrm/releases/first/app/Domain/CrmService/Subscribers/CrmServiceSubscriber.php",
            "line": 54,
            "function": "getActiveCrmServicesWithInvoiceUpdate",
            "class": "App\\Domain\\CrmService\\Gateways\\CrmServiceInstanceGateway",
            "type": "->"
        },
        {
            "file": "/srv/deploy/envycrm/releases/first/vendor/laravel/framework/src/Illuminate/Events/Dispatcher.php",
            "line": 424,
            "function": "dealEvent",
            "class": "App\\Domain\\CrmService\\Subscribers\\CrmServiceSubscriber",
            "type": "->"
        },
        {
            "file": "/srv/deploy/envycrm/releases/first/vendor/laravel/framework/src/Illuminate/Events/Dispatcher.php",
            "line": 249,
            "function": "Illuminate\\Events\\{closure}",
            "class": "Illuminate\\Events\\Dispatcher",
            "type": "->"
        },
        {
            "file": "/srv/deploy/envycrm/releases/first/vendor/laravel/framework/src/Illuminate/Foundation/helpers.php",
            "line": 450,
            "function": "dispatch",
            "class": "Illuminate\\Events\\Dispatcher",
            "type": "->"
        },
        {
            "file": "/srv/deploy/envycrm/releases/first/app/Domain/CrmDeal/Actions/CrmDealActions.php",
            "line": 556,
            "function": "event"
        },
        {
            "file": "/srv/deploy/envycrm/releases/first/app/Domain/CrmDeal/Actions/CrmDealActions.php",
            "line": 703,
            "function": "create",
            "class": "App\\Domain\\CrmDeal\\Actions\\CrmDealActions",
            "type": "->"
        },
        {
            "file": "/srv/deploy/envycrm/releases/first/app/Domain/CrmLead/Actions/CrmLeadActions.php",
            "line": 200,
            "function": "createFromLead",
            "class": "App\\Domain\\CrmDeal\\Actions\\CrmDealActions",
            "type": "->"
        },
        {
            "file": "/srv/deploy/envycrm/releases/first/app/Http/Controllers/Api/V2/Lead/LeadController.php",
            "line": 78,
            "function": "startWorkToClient",
            "class": "App\\Domain\\CrmLead\\Actions\\CrmLeadActions",
            "type": "->"
        },
        {
            "file": "/srv/deploy/envycrm/releases/first/vendor/laravel/framework/src/Illuminate/Routing/Controller.php",
            "line": 54,
            "function": "startWorkToClient",
            "class": "App\\Http\\Controllers\\Api\\V2\\Lead\\LeadController",
            "type": "->"
        },
        {
            "file": "/srv/deploy/envycrm/releases/first/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php",
            "line": 45,
            "function": "callAction",
            "class": "Illuminate\\Routing\\Controller",
            "type": "->"
        },
        {
            "file": "/srv/deploy/envycrm/releases/first/vendor/laravel/framework/src/Illuminate/Routing/Route.php",
            "line": 262,
            "function": "dispatch",
            "class": "Illuminate\\Routing\\ControllerDispatcher",
            "type": "->"
        },
        {
            "file": "/srv/deploy/envycrm/releases/first/vendor/laravel/framework/src/Illuminate/Routing/Route.php",
            "line": 205,
            "function": "runController",
            "class": "Illuminate\\Routing\\Route",
            "type": "->"
        },
        {
            "file": "/srv/deploy/envycrm/releases/first/vendor/laravel/framework/src/Illuminate/Routing/Router.php",
            "line": 721,
            "function": "run",
            "class": "Illuminate\\Routing\\Route",
            "type": "->"
        },
        {
            "file": "/srv/deploy/envycrm/releases/first/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
            "line": 128,
            "function": "Illuminate\\Routing\\{closure}",
            "class": "Illuminate\\Routing\\Router",
            "type": "->"
        },
        {
            "file": "/srv/deploy/envycrm/releases/first/app/Http/Middleware/LoadData.php",
            "line": 96,
            "function": "Illuminate\\Pipeline\\{closure}",
            "class": "Illuminate\\Pipeline\\Pipeline",
            "type": "->"
        },
        {
            "file": "/srv/deploy/envycrm/releases/first/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
            "line": 167,
            "function": "handle",
            "class": "App\\Http\\Middleware\\LoadData",
            "type": "->"
        },
        {
            "file": "/srv/deploy/envycrm/releases/first/app/Http/Middleware/APIVersion.php",
            "line": 26,
            "function": "Illuminate\\Pipeline\\{closure}",
            "class": "Illuminate\\Pipeline\\Pipeline",
            "type": "->"
        },
        {
            "file": "/srv/deploy/envycrm/releases/first/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
            "line": 167,
            "function": "handle",
            "class": "App\\Http\\Middleware\\APIVersion",
            "type": "->"
        },
        {
            "file": "/srv/deploy/envycrm/releases/first/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php",
            "line": 50,
            "function": "Illuminate\\Pipeline\\{closure}",
            "class": "Illuminate\\Pipeline\\Pipeline",
            "type": "->"
        },
        {
            "file": "/srv/deploy/envycrm/releases/first/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
            "line": 167,
            "function": "handle",
            "class": "Illuminate\\Routing\\Middleware\\SubstituteBindings",
            "type": "->"
        },
        {
            "file": "/srv/deploy/envycrm/releases/first/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php",
            "line": 44,
            "function": "Illuminate\\Pipeline\\{closure}",
            "class": "Illuminate\\Pipeline\\Pipeline",
            "type": "->"
        },
        {
            "file": "/srv/deploy/envycrm/releases/first/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
            "line": 167,
            "function": "handle",
            "class": "Illuminate\\Auth\\Middleware\\Authenticate",
            "type": "->"
        },
        {
            "file": "/srv/deploy/envycrm/releases/first/app/Http/Middleware/AddBearerTokenToHeader.php",
            "line": 27,
            "function": "Illuminate\\Pipeline\\{closure}",
            "class": "Illuminate\\Pipeline\\Pipeline",
            "type": "->"
        },
        {
            "file": "/srv/deploy/envycrm/releases/first/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
            "line": 167,
            "function": "handle",
            "class": "App\\Http\\Middleware\\AddBearerTokenToHeader",
            "type": "->"
        },
        {
            "file": "/srv/deploy/envycrm/releases/first/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
            "line": 103,
            "function": "Illuminate\\Pipeline\\{closure}",
            "class": "Illuminate\\Pipeline\\Pipeline",
            "type": "->"
        },
        {
            "file": "/srv/deploy/envycrm/releases/first/vendor/laravel/framework/src/Illuminate/Routing/Router.php",
            "line": 723,
            "function": "then",
            "class": "Illuminate\\Pipeline\\Pipeline",
            "type": "->"
        },
        {
            "file": "/srv/deploy/envycrm/releases/first/vendor/laravel/framework/src/Illuminate/Routing/Router.php",
            "line": 698,
            "function": "runRouteWithinStack",
            "class": "Illuminate\\Routing\\Router",
            "type": "->"
        },
        {
            "file": "/srv/deploy/envycrm/releases/first/vendor/laravel/framework/src/Illuminate/Routing/Router.php",
            "line": 662,
            "function": "runRoute",
            "class": "Illuminate\\Routing\\Router",
            "type": "->"
        },
        {
            "file": "/srv/deploy/envycrm/releases/first/vendor/laravel/framework/src/Illuminate/Routing/Router.php",
            "line": 651,
            "function": "dispatchToRoute",
            "class": "Illuminate\\Routing\\Router",
            "type": "->"
        },
        {
            "file": "/srv/deploy/envycrm/releases/first/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php",
            "line": 167,
            "function": "dispatch",
            "class": "Illuminate\\Routing\\Router",
            "type": "->"
        },
        {
            "file": "/srv/deploy/envycrm/releases/first/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
            "line": 128,
            "function": "Illuminate\\Foundation\\Http\\{closure}",
            "class": "Illuminate\\Foundation\\Http\\Kernel",
            "type": "->"
        },
        {
            "file": "/srv/deploy/envycrm/releases/first/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php",
            "line": 21,
            "function": "Illuminate\\Pipeline\\{closure}",
            "class": "Illuminate\\Pipeline\\Pipeline",
            "type": "->"
        },
        {
            "file": "/srv/deploy/envycrm/releases/first/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php",
            "line": 31,
            "function": "handle",
            "class": "Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest",
            "type": "->"
        },
        {
            "file": "/srv/deploy/envycrm/releases/first/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
            "line": 167,
            "function": "handle",
            "class": "Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull",
            "type": "->"
        },
        {
            "file": "/srv/deploy/envycrm/releases/first/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php",
            "line": 21,
            "function": "Illuminate\\Pipeline\\{closure}",
            "class": "Illuminate\\Pipeline\\Pipeline",
            "type": "->"
        },
        {
            "file": "/srv/deploy/envycrm/releases/first/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php",
            "line": 40,
            "function": "handle",
            "class": "Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest",
            "type": "->"
        },
        {
            "file": "/srv/deploy/envycrm/releases/first/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
            "line": 167,
            "function": "handle",
            "class": "Illuminate\\Foundation\\Http\\Middleware\\TrimStrings",
            "type": "->"
        },
        {
            "file": "/srv/deploy/envycrm/releases/first/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php",
            "line": 27,
            "function": "Illuminate\\Pipeline\\{closure}",
            "class": "Illuminate\\Pipeline\\Pipeline",
            "type": "->"
        },
        {
            "file": "/srv/deploy/envycrm/releases/first/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
            "line": 167,
            "function": "handle",
            "class": "Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize",
            "type": "->"
        },
        {
            "file": "/srv/deploy/envycrm/releases/first/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php",
            "line": 86,
            "function": "Illuminate\\Pipeline\\{closure}",
            "class": "Illuminate\\Pipeline\\Pipeline",
            "type": "->"
        },
        {
            "file": "/srv/deploy/envycrm/releases/first/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
            "line": 167,
            "function": "handle",
            "class": "Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance",
            "type": "->"
        },
        {
            "file": "/srv/deploy/envycrm/releases/first/vendor/fruitcake/laravel-cors/src/HandleCors.php",
            "line": 52,
            "function": "Illuminate\\Pipeline\\{closure}",
            "class": "Illuminate\\Pipeline\\Pipeline",
            "type": "->"
        },
        {
            "file": "/srv/deploy/envycrm/releases/first/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
            "line": 167,
            "function": "handle",
            "class": "Fruitcake\\Cors\\HandleCors",
            "type": "->"
        },
        {
            "file": "/srv/deploy/envycrm/releases/first/vendor/fideloper/proxy/src/TrustProxies.php",
            "line": 57,
            "function": "Illuminate\\Pipeline\\{closure}",
            "class": "Illuminate\\Pipeline\\Pipeline",
            "type": "->"
        },
        {
            "file": "/srv/deploy/envycrm/releases/first/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
            "line": 167,
            "function": "handle",
            "class": "Fideloper\\Proxy\\TrustProxies",
            "type": "->"
        },
        {
            "file": "/srv/deploy/envycrm/releases/first/vendor/itsgoingd/clockwork/Clockwork/Support/Laravel/ClockworkMiddleware.php",
            "line": 24,
            "function": "Illuminate\\Pipeline\\{closure}",
            "class": "Illuminate\\Pipeline\\Pipeline",
            "type": "->"
        },
        {
            "file": "/srv/deploy/envycrm/releases/first/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
            "line": 167,
            "function": "handle",
            "class": "Clockwork\\Support\\Laravel\\ClockworkMiddleware",
            "type": "->"
        },
        {
            "file": "/srv/deploy/envycrm/releases/first/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
            "line": 103,
            "function": "Illuminate\\Pipeline\\{closure}",
            "class": "Illuminate\\Pipeline\\Pipeline",
            "type": "->"
        },
        {
            "file": "/srv/deploy/envycrm/releases/first/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php",
            "line": 142,
            "function": "then",
            "class": "Illuminate\\Pipeline\\Pipeline",
            "type": "->"
        },
        {
            "file": "/srv/deploy/envycrm/releases/first/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php",
            "line": 111,
            "function": "sendRequestThroughRouter",
            "class": "Illuminate\\Foundation\\Http\\Kernel",
            "type": "->"
        },
        {
            "file": "/srv/deploy/envycrm/releases/first/public/index.php",
            "line": 52,
            "function": "handle",
            "class": "Illuminate\\Foundation\\Http\\Kernel",
            "type": "->"
        }
    ]
}