- Which version of PHP is valet using?
- How to check the PHP version in Laravel?
- What is the latest version of PHP?
- How to upgrade Laravel valet?
Which version of PHP is valet using?
Laravel Valet currently support PHP 8 and higher versions (8.1, 8.2), but if you try to switch from PHP 8.1 to PHP 7.4 for a legacy project (as an example) it would be a headache.
How to check the PHP version in Laravel?
Every Laravel release has the version of the framework as constant in the Application. php file. You can access this constant via the app() helper. If you don't want to create a /test route to get the version, you can use php artisan tinker to get into the tinker REPL and run it from there.
What is the latest version of PHP?
A: PHP's latest version is 8.2, released on November 24, 2022.
How to upgrade Laravel valet?
Upgrading Valet
You may update your Valet installation by executing the composer global require laravel/valet command in your terminal. After upgrading, it is good practice to run the valet install command so Valet can make additional upgrades to your configuration files if necessary.