Looking to hire Laravel developers? Try LaraJobs

serverless-function maintained by laravel-expansions

Description
Lambda Function
Author
Last update
2022/07/11 09:04 (dev-main)
License
Downloads
1 130

Comments
comments powered by Disqus

Serverless Function

Lambda Function Handler and Artisan Command

Setup

Please insttall in an existing Laravel project.

composer require laravel-expansions/serverless-function

Then let's create a handler file:

php artisan vendor:publish --tag=expantion-function

Create Function

Create function and check /app/Functions directory.

php artisan make:function {FunctionName}

Publish function stub file

Publish and check /stubs directory. Then modify function.stub template file.

php artisan vendor:publish --tag=expantion-function-stub