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
:
1environments:2 staging:3 memory: 10244 runtime: 'php-8.4:al2'5 build:6 - 'COMPOSER_MIRROR_PATH_REPOS=1 composer install'7 - 'php artisan event:cache'
If your application is using Docker runtimes, you may update the PHP version like so:
1FROM laravelphp/vapor:php842 3COPY . /var/task
Vapor’s Docker runtimes also support Arm architecture. To leverage this feature, update your base image to laravelphp/vapor:php84-arm
:
1FROM laravelphp/vapor:php84-arm2 3COPY . /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.