Once you deploy, your environment will automatically start using PHP 8.1 with zero downtime.Īt Laravel, we're committed to providing you with the most robust, modern, and developer-friendly PHP experience in the world. However, this image is still using PHP 8.1 RC6, as Alpine images do not use PHP 8.1's stable version at the time of this writing. ![]() If you are using Docker-based deployments, you may use our laravelphp/vapor:php81 docker image. If you are running a serverless Laravel application using Vapor, simply specify php-8.1:al2 as your preferred runtime in your application's vapor.yml configuration file: Next, if you use Envoyer for your application's deployments, you may now select PHP 8.1 from your server's settings. ![]() If you use Forge to provision and deploy your application, you may now choose PHP 8.1 when creating a new server.Īnd, of course, you may install PHP 8.1 on your existing servers via the "PHP Versions" tab on the server's management dashboard. In addition, make sure you're on the latest version of any first-party package from Laravel such as Passport, Cashier, Dusk, etc. If you plan to use PHP 8.1 on Laravel, ensure you're at the latest version of Laravel. So, let's take a look at what you need to do in order to start using PHP 8.1. Now, as you may have noticed in the past few weeks, we ensured that Laravel, first-party libraries, Forge, Envoyer, Nova, and Vapor can support PHP 8.1 on day one. ![]() You can find out more about the most exciting features in our YouTube video. PHP 8.1 was released yesterday and includes many new features and improvements, including Enums, new in initializers, readonly properties, and much more.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |