I created a project of AWS lambda in laravel using bref package and i am getting the following
error
{
"errorType": "Bref\\Event\\InvalidLambdaEvent",
"errorMessage": "This handler expected to be invoked with a API Gateway or ALB event. Instead, the handler was invoked with invalid event data: Array\n(\n [code] => 12345\n)\n",
"stack": [
"#0 /var/task/vendor/bref/bref/src/Event/Http/HttpHandler.php(20): Bref\\Event\\Http\\HttpRequestEvent->__construct()",
"#1 /var/task/vendor/bref/bref/src/Runtime/LambdaRuntime.php(106): Bref\\Event\\Http\\HttpHandler->handle()",
"#2 /opt/bootstrap(35): Bref\\Runtime\\LambdaRuntime->processNextEvent()",
"#3 {main}"
]
}