Vapor: Custom Lambda Events

Mohamed Said
Mohamed Said
Share:
  • ...
  • ...
  • ...

Today we released laravel/vapor-core version v2.5.1 with the ability to handle custom Lambda events. To get started, implement a vapor:handle artisan command in your application with the following signature:

vapor:handle {payload}

To extract the event payload from the payload argument, you should base64_decode and json_decode the string:

$payload = json_decode(  base64_decode($this->argument('payload')));

Custom Lambda events allow to handle events from other AWS services, such as triggering your application each time an image is uploaded to an S3 bucket.

Latest Stories

Here’s what we've been up to recently.

Request a code sample

Certified Quality. Great Prices

We use cookies to improve your experience and to help us understand how you use our site. By using this site, you accept our use of cookies. Cookie Infox