ERROR SERVER EXCEPTION

GET Request URL: "https://cnycalendars.com/api/v1/calendarEventInstance?calendarEvent:calendars:approved=1&calendarEvent:calendars:id=2&calendarEvent:slug=yoga-with-heart&calendar_active=1&page=1&per_page=100&sort[1]=start_date,asc&sort[2]=title,asc&start_date[0]=(ge)2019-08-19&with[1]=calendarEvent&with[2]=calendarEvent.calendars&with[3]=calendarEvent.venue&with[4]=calendarEvent.owner&with[5]=calendarEvent.categories" (0.235916 sec)

Form data:

array (
)

Response:

{
    "message": "Package allows only SoftDeletingScope global scope.",
    "exception": "Fico7489\\Laravel\\EloquentJoin\\Exceptions\\InvalidRelationGlobalScope",
    "file": "/home/eventslogin/calendar/vendor/fico7489/laravel-eloquent-join/src/EloquentJoinBuilder.php",
    "line": 252,
    "trace": [
        {
            "file": "/home/eventslogin/calendar/vendor/fico7489/laravel-eloquent-join/src/EloquentJoinBuilder.php",
            "line": 200,
            "function": "joinQuery",
            "class": "Fico7489\\Laravel\\EloquentJoin\\EloquentJoinBuilder",
            "type": "->"
        },
        {
            "function": "Fico7489\\Laravel\\EloquentJoin\\{closure}",
            "class": "Fico7489\\Laravel\\EloquentJoin\\EloquentJoinBuilder",
            "type": "->"
        },
        {
            "file": "/home/eventslogin/calendar/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php",
            "line": 391,
            "function": "call_user_func"
        },
        {
            "file": "/home/eventslogin/calendar/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php",
            "line": 463,
            "function": "join",
            "class": "Illuminate\\Database\\Query\\Builder",
            "type": "->"
        },
        {
            "file": "/home/eventslogin/calendar/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php",
            "line": 23,
            "function": "leftJoin",
            "class": "Illuminate\\Database\\Query\\Builder",
            "type": "->"
        },
        {
            "file": "/home/eventslogin/calendar/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php",
            "line": 1350,
            "function": "forwardCallTo",
            "class": "Illuminate\\Database\\Eloquent\\Builder",
            "type": "->"
        },
        {
            "file": "/home/eventslogin/calendar/vendor/fico7489/laravel-eloquent-join/src/EloquentJoinBuilder.php",
            "line": 201,
            "function": "__call",
            "class": "Illuminate\\Database\\Eloquent\\Builder",
            "type": "->"
        },
        {
            "file": "/home/eventslogin/calendar/vendor/fico7489/laravel-eloquent-join/src/EloquentJoinBuilder.php",
            "line": 122,
            "function": "performJoin",
            "class": "Fico7489\\Laravel\\EloquentJoin\\EloquentJoinBuilder",
            "type": "->"
        },
        {
            "file": "/home/eventslogin/calendar/app/Models/CalendarEventInstance.php",
            "line": 81,
            "function": "orderByJoin",
            "class": "Fico7489\\Laravel\\EloquentJoin\\EloquentJoinBuilder",
            "type": "->"
        },
        {
            "function": "sortTitle",
            "class": "App\\Models\\CalendarEventInstance",
            "type": "->"
        },
        {
            "file": "/home/eventslogin/calendar/vendor/jedrzej/sortable/src/Jedrzej/Sortable/Criterion.php",
            "line": 59,
            "function": "call_user_func_array"
        },
        {
            "file": "/home/eventslogin/calendar/vendor/jedrzej/sortable/src/Jedrzej/Sortable/SortableTrait.php",
            "line": 79,
            "function": "apply",
            "class": "Jedrzej\\Sortable\\Criterion",
            "type": "->"
        },
        {
            "file": "/home/eventslogin/calendar/vendor/jedrzej/sortable/src/Jedrzej/Sortable/SortableTrait.php",
            "line": 31,
            "function": "applyCriteria",
            "class": "App\\Models\\PimpableModel",
            "type": "->"
        },
        {
            "file": "/home/eventslogin/calendar/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php",
            "line": 1002,
            "function": "scopeSorted",
            "class": "App\\Models\\PimpableModel",
            "type": "->"
        },
        {
            "file": "/home/eventslogin/calendar/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php",
            "line": 1343,
            "function": "callScope",
            "class": "Illuminate\\Database\\Eloquent\\Builder",
            "type": "->"
        },
        {
            "file": "/home/eventslogin/calendar/vendor/jedrzej/pimpable/src/Jedrzej/Pimpable/PimpableTrait.php",
            "line": 38,
            "function": "__call",
            "class": "Illuminate\\Database\\Eloquent\\Builder",
            "type": "->"
        },
        {
            "file": "/home/eventslogin/calendar/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php",
            "line": 1002,
            "function": "scopePimp",
            "class": "App\\Models\\PimpableModel",
            "type": "->"
        },
        {
            "file": "/home/eventslogin/calendar/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php",
            "line": 1343,
            "function": "callScope",
            "class": "Illuminate\\Database\\Eloquent\\Builder",
            "type": "->"
        },
        {
            "file": "/home/eventslogin/calendar/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php",
            "line": 23,
            "function": "__call",
            "class": "Illuminate\\Database\\Eloquent\\Builder",
            "type": "->"
        },
        {
            "file": "/home/eventslogin/calendar/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php",
            "line": 1614,
            "function": "forwardCallTo",
            "class": "Illuminate\\Database\\Eloquent\\Model",
            "type": "->"
        },
        {
            "file": "/home/eventslogin/calendar/app/Http/Controllers/BaseController.php",
            "line": 164,
            "function": "__call",
            "class": "Illuminate\\Database\\Eloquent\\Model",
            "type": "->"
        },
        {
            "file": "/home/eventslogin/calendar/app/Http/Controllers/BaseController.php",
            "line": 116,
            "function": "handleIndexData",
            "class": "App\\Http\\Controllers\\BaseController",
            "type": "->"
        },
        {
            "file": "/home/eventslogin/calendar/app/Http/Controllers/BaseController.php",
            "line": 89,
            "function": "handleIndexJson",
            "class": "App\\Http\\Controllers\\BaseController",
            "type": "->"
        },
        {
            "file": "/home/eventslogin/calendar/app/Http/Controllers/BaseController.php",
            "line": 72,
            "function": "handleIndex",
            "class": "App\\Http\\Controllers\\BaseController",
            "type": "->"
        },
        {
            "function": "index",
            "class": "App\\Http\\Controllers\\BaseController",
            "type": "->"
        },
        {
            "file": "/home/eventslogin/calendar/vendor/laravel/framework/src/Illuminate/Routing/Controller.php",
            "line": 54,
            "function": "call_user_func_array"
        },
        {
            "file": "/home/eventslogin/calendar/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php",
            "line": 45,
            "function": "callAction",
            "class": "Illuminate\\Routing\\Controller",
            "type": "->"
        },
        {
            "file": "/home/eventslogin/calendar/vendor/laravel/framework/src/Illuminate/Routing/Route.php",
            "line": 219,
            "function": "dispatch",
            "class": "Illuminate\\Routing\\ControllerDispatcher",
            "type": "->"
        },
        {
            "file": "/home/eventslogin/calendar/vendor/laravel/framework/src/Illuminate/Routing/Route.php",
            "line": 176,
            "function": "runController",
            "class": "Illuminate\\Routing\\Route",
            "type": "->"
        },
        {
            "file": "/home/eventslogin/calendar/vendor/laravel/framework/src/Illuminate/Routing/Router.php",
            "line": 680,
            "function": "run",
            "class": "Illuminate\\Routing\\Route",
            "type": "->"
        },
        {
            "file": "/home/eventslogin/calendar/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php",
            "line": 30,
            "function": "Illuminate\\Routing\\{closure}",
            "class": "Illuminate\\Routing\\Router",
            "type": "->"
        },
        {
            "file": "/home/eventslogin/calendar/vendor/spatie/laravel-permission/src/Middlewares/RoleMiddleware.php",
            "line": 25,
            "function": "Illuminate\\Routing\\{closure}",
            "class": "Illuminate\\Routing\\Pipeline",
            "type": "->"
        },
        {
            "file": "/home/eventslogin/calendar/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
            "line": 163,
            "function": "handle",
            "class": "Spatie\\Permission\\Middlewares\\RoleMiddleware",
            "type": "->"
        },
        {
            "file": "/home/eventslogin/calendar/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php",
            "line": 53,
            "function": "Illuminate\\Pipeline\\{closure}",
            "class": "Illuminate\\Pipeline\\Pipeline",
            "type": "->"
        },
        {
            "file": "/home/eventslogin/calendar/vendor/spatie/laravel-responsecache/src/Middlewares/CacheResponse.php",
            "line": 32,
            "function": "Illuminate\\Routing\\{closure}",
            "class": "Illuminate\\Routing\\Pipeline",
            "type": "->"
        },
        {
            "file": "/home/eventslogin/calendar/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
            "line": 163,
            "function": "handle",
            "class": "Spatie\\ResponseCache\\Middlewares\\CacheResponse",
            "type": "->"
        },
        {
            "file": "/home/eventslogin/calendar/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php",
            "line": 53,
            "function": "Illuminate\\Pipeline\\{closure}",
            "class": "Illuminate\\Pipeline\\Pipeline",
            "type": "->"
        },
        {
            "file": "/home/eventslogin/calendar/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php",
            "line": 41,
            "function": "Illuminate\\Routing\\{closure}",
            "class": "Illuminate\\Routing\\Pipeline",
            "type": "->"
        },
        {
            "file": "/home/eventslogin/calendar/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
            "line": 163,
            "function": "handle",
            "class": "Illuminate\\Routing\\Middleware\\SubstituteBindings",
            "type": "->"
        },
        {
            "file": "/home/eventslogin/calendar/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php",
            "line": 53,
            "function": "Illuminate\\Pipeline\\{closure}",
            "class": "Illuminate\\Pipeline\\Pipeline",
            "type": "->"
        },
        {
            "file": "/home/eventslogin/calendar/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php",
            "line": 43,
            "function": "Illuminate\\Routing\\{closure}",
            "class": "Illuminate\\Routing\\Pipeline",
            "type": "->"
        },
        {
            "file": "/home/eventslogin/calendar/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
            "line": 163,
            "function": "handle",
            "class": "Illuminate\\Auth\\Middleware\\Authenticate",
            "type": "->"
        },
        {
            "file": "/home/eventslogin/calendar/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php",
            "line": 53,
            "function": "Illuminate\\Pipeline\\{closure}",
            "class": "Illuminate\\Pipeline\\Pipeline",
            "type": "->"
        },
        {
            "file": "/home/eventslogin/calendar/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php",
            "line": 60,
            "function": "Illuminate\\Routing\\{closure}",
            "class": "Illuminate\\Routing\\Pipeline",
            "type": "->"
        },
        {
            "file": "/home/eventslogin/calendar/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
            "line": 163,
            "function": "handle",
            "class": "Illuminate\\Routing\\Middleware\\ThrottleRequests",
            "type": "->"
        },
        {
            "file": "/home/eventslogin/calendar/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php",
            "line": 53,
            "function": "Illuminate\\Pipeline\\{closure}",
            "class": "Illuminate\\Pipeline\\Pipeline",
            "type": "->"
        },
        {
            "file": "/home/eventslogin/calendar/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
            "line": 104,
            "function": "Illuminate\\Routing\\{closure}",
            "class": "Illuminate\\Routing\\Pipeline",
            "type": "->"
        },
        {
            "file": "/home/eventslogin/calendar/vendor/laravel/framework/src/Illuminate/Routing/Router.php",
            "line": 682,
            "function": "then",
            "class": "Illuminate\\Pipeline\\Pipeline",
            "type": "->"
        },
        {
            "file": "/home/eventslogin/calendar/vendor/laravel/framework/src/Illuminate/Routing/Router.php",
            "line": 657,
            "function": "runRouteWithinStack",
            "class": "Illuminate\\Routing\\Router",
            "type": "->"
        },
        {
            "file": "/home/eventslogin/calendar/vendor/laravel/framework/src/Illuminate/Routing/Router.php",
            "line": 623,
            "function": "runRoute",
            "class": "Illuminate\\Routing\\Router",
            "type": "->"
        },
        {
            "file": "/home/eventslogin/calendar/vendor/laravel/framework/src/Illuminate/Routing/Router.php",
            "line": 612,
            "function": "dispatchToRoute",
            "class": "Illuminate\\Routing\\Router",
            "type": "->"
        },
        {
            "file": "/home/eventslogin/calendar/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php",
            "line": 176,
            "function": "dispatch",
            "class": "Illuminate\\Routing\\Router",
            "type": "->"
        },
        {
            "file": "/home/eventslogin/calendar/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php",
            "line": 30,
            "function": "Illuminate\\Foundation\\Http\\{closure}",
            "class": "Illuminate\\Foundation\\Http\\Kernel",
            "type": "->"
        },
        {
            "file": "/home/eventslogin/calendar/vendor/barryvdh/laravel-debugbar/src/Middleware/InjectDebugbar.php",
            "line": 58,
            "function": "Illuminate\\Routing\\{closure}",
            "class": "Illuminate\\Routing\\Pipeline",
            "type": "->"
        },
        {
            "file": "/home/eventslogin/calendar/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
            "line": 163,
            "function": "handle",
            "class": "Barryvdh\\Debugbar\\Middleware\\InjectDebugbar",
            "type": "->"
        },
        {
            "file": "/home/eventslogin/calendar/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php",
            "line": 53,
            "function": "Illuminate\\Pipeline\\{closure}",
            "class": "Illuminate\\Pipeline\\Pipeline",
            "type": "->"
        },
        {
            "file": "/home/eventslogin/calendar/vendor/fideloper/proxy/src/TrustProxies.php",
            "line": 57,
            "function": "Illuminate\\Routing\\{closure}",
            "class": "Illuminate\\Routing\\Pipeline",
            "type": "->"
        },
        {
            "file": "/home/eventslogin/calendar/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
            "line": 163,
            "function": "handle",
            "class": "Fideloper\\Proxy\\TrustProxies",
            "type": "->"
        },
        {
            "file": "/home/eventslogin/calendar/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php",
            "line": 53,
            "function": "Illuminate\\Pipeline\\{closure}",
            "class": "Illuminate\\Pipeline\\Pipeline",
            "type": "->"
        },
        {
            "file": "/home/eventslogin/calendar/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php",
            "line": 21,
            "function": "Illuminate\\Routing\\{closure}",
            "class": "Illuminate\\Routing\\Pipeline",
            "type": "->"
        },
        {
            "file": "/home/eventslogin/calendar/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
            "line": 163,
            "function": "handle",
            "class": "Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest",
            "type": "->"
        },
        {
            "file": "/home/eventslogin/calendar/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php",
            "line": 53,
            "function": "Illuminate\\Pipeline\\{closure}",
            "class": "Illuminate\\Pipeline\\Pipeline",
            "type": "->"
        },
        {
            "file": "/home/eventslogin/calendar/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php",
            "line": 21,
            "function": "Illuminate\\Routing\\{closure}",
            "class": "Illuminate\\Routing\\Pipeline",
            "type": "->"
        },
        {
            "file": "/home/eventslogin/calendar/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
            "line": 163,
            "function": "handle",
            "class": "Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest",
            "type": "->"
        },
        {
            "file": "/home/eventslogin/calendar/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php",
            "line": 53,
            "function": "Illuminate\\Pipeline\\{closure}",
            "class": "Illuminate\\Pipeline\\Pipeline",
            "type": "->"
        },
        {
            "file": "/home/eventslogin/calendar/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php",
            "line": 27,
            "function": "Illuminate\\Routing\\{closure}",
            "class": "Illuminate\\Routing\\Pipeline",
            "type": "->"
        },
        {
            "file": "/home/eventslogin/calendar/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
            "line": 163,
            "function": "handle",
            "class": "Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize",
            "type": "->"
        },
        {
            "file": "/home/eventslogin/calendar/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php",
            "line": 53,
            "function": "Illuminate\\Pipeline\\{closure}",
            "class": "Illuminate\\Pipeline\\Pipeline",
            "type": "->"
        },
        {
            "file": "/home/eventslogin/calendar/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/CheckForMaintenanceMode.php",
            "line": 62,
            "function": "Illuminate\\Routing\\{closure}",
            "class": "Illuminate\\Routing\\Pipeline",
            "type": "->"
        },
        {
            "file": "/home/eventslogin/calendar/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
            "line": 163,
            "function": "handle",
            "class": "Illuminate\\Foundation\\Http\\Middleware\\CheckForMaintenanceMode",
            "type": "->"
        },
        {
            "file": "/home/eventslogin/calendar/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php",
            "line": 53,
            "function": "Illuminate\\Pipeline\\{closure}",
            "class": "Illuminate\\Pipeline\\Pipeline",
            "type": "->"
        },
        {
            "file": "/home/eventslogin/calendar/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
            "line": 104,
            "function": "Illuminate\\Routing\\{closure}",
            "class": "Illuminate\\Routing\\Pipeline",
            "type": "->"
        },
        {
            "file": "/home/eventslogin/calendar/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php",
            "line": 151,
            "function": "then",
            "class": "Illuminate\\Pipeline\\Pipeline",
            "type": "->"
        },
        {
            "file": "/home/eventslogin/calendar/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php",
            "line": 116,
            "function": "sendRequestThroughRouter",
            "class": "Illuminate\\Foundation\\Http\\Kernel",
            "type": "->"
        },
        {
            "file": "/home/eventslogin/public_html/index.php",
            "line": 56,
            "function": "handle",
            "class": "Illuminate\\Foundation\\Http\\Kernel",
            "type": "->"
        }
    ]
}