You can now deploy applications using PHP 8.4 to your Vapor environments. To get started, update your application's vapor.yml
configuration file and set the runtime to either php-8.4:al2
or php-8.4:al2-arm
:
environments:
staging:
memory: 1024
runtime: 'php-8.4:al2'
build:
- 'COMPOSER_MIRROR_PATH_REPOS=1 composer install'
- 'php artisan event:cache'
If your application is using Docker runtimes, you may update the PHP version like so:
FROM laravelphp/vapor:php84
COPY . /var/task
Vapor’s Docker runtimes also support Arm architecture. To leverage this feature, update your base image to laravelphp/vapor:php84-arm
:
FROM laravelphp/vapor:php84-arm
COPY . /var/task
We hope you enjoy using PHP 8.4 on your Vapor projects. At Laravel, we're committed to providing you with the most robust and developer-friendly PHP experience in the world. If you haven't checked out Vapor, now is a great time to start! You can create your account today at: vapor.laravel.com.