What to expect in the next generation of Laravel Forge. Read the blog post

Vapor: PHP 8.4 Is Now Supported

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: 1024
4 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:php84
2 
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-arm
2 
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.

Keep reading

Stay connected with the latest Laravel news