davidgrzyb / deploy-laravel-on-vercel
A package for generating files required for deployment to serverless Vercel.
Installs: 1 237
Dependents: 0
Suggesters: 0
Security: 0
Stars: 35
Watchers: 1
Forks: 11
Open Issues: 1
Requires
- php: ^7.4|^8.0
- illuminate/support: ^8.0
Requires (Dev)
- orchestra/testbench: ^6.0
- phpunit/phpunit: ^9.0
README
This is a packaged version of Caleb Porzio's blog post detailing the process of deploying Laravel to serverless Vercel.
This package publishes the api/index.php
, vercel.json
& .vercelignore
files required for deploying Laravel to Vercel. The PHP version can be changed by vercel-php
runtime within the vercel.json
file. The default version is 0.4.0
.
Installation
You can install the package via composer as a dev dependency:
composer require davidgrzyb/deploy-laravel-on-vercel --dev
Publishing Assets
The installation command can be run to publish and republish the required files.
php artisan deploy-laravel-on-vercel:install
Once the assets have been published, the package can be removed.
composer remove davidgrzyb/deploy-laravel-on-vercel --dev
Contributing
Please see CONTRIBUTING for details.
Security
If you discover any security related issues, please email grzybdavid@gmail.com instead of using the issue tracker.
Credits
License
The MIT License (MIT). Please see License File for more information.
Laravel Package Boilerplate
This package was generated using the Laravel Package Boilerplate.