In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-06 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/01 Report--
Most people don't understand the knowledge points of this article "How to open Laravel support for PHP8", so Xiaobian summarizes the following contents for everyone. The contents are detailed, the steps are clear, and they have certain reference value. I hope everyone can gain something after reading this article. Let's take a look at this article "How to open Laravel support for PHP8".
Laravel supports PHP8. Older versions of Laravel6, 7, or 8 support PHP 8, just make sure any first-party packages provided by Laravel (Dusk, etc.) are up to date and update the dependencies in the "composer.json" file.
This tutorial operates on Windows 7, Laravel7, Dell G3 computers.
HP 8.0 major release update officially opened for download on November 26, 2020, the new version introduces an optional JIT compiler, integrates existing JSON support into the core (no longer optional), and adds support for attributes, union types, static return types, and other additional languages, increasingly moving towards strongly typed languages. In order to adapt to the new environment, Laravel and ThinkPHP are also updated in time to support PHP8.
So how do I turn on Laravel support for PHP8?
First, make sure you are using the latest version of Laravel 6, 7 or 8 to get PHP 8 support. Then make sure you're using the latest version of any first-party packages Laravel offers, such as Passport, Cashier, Dusk, etc.
You also need to update several common dependencies in the composer.json file:
PHP updated to php:^8.0
Faker update to fakerphp/faker:^1.9.1
PHPUnit updated to phpunit/phpunit:^9.3
Finally, run composer update to update other packages. Be sure to test your application before updating production.
The above is about "how to open Laravel support for PHP8" the content of this article, I believe everyone has a certain understanding, I hope the content shared by Xiaobian is helpful to everyone, if you want to know more related knowledge content, please pay attention to the industry information channel.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.