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
.
You can install the package via composer as a dev dependency:
composer require davidgrzyb/deploy-laravel-on-vercel --dev
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
Please see CONTRIBUTING for details.
If you discover any security related issues, please email grzybdavid@gmail.com instead of using the issue tracker.
The MIT License (MIT). Please see License File for more information.
This package was generated using the Laravel Package Boilerplate.