Home >PHP Framework >Laravel >Laravel Valet version 2.0: built-in server replaced with Nginx
Laravel Valet, the minimalist Laravel development environment on the Mac platform, has already released version 2.0. This version mainly includes some bug fixes and replaces the built-in server from Caddy to Nginx.
Upgrading to Valet 2.0
Upgrading to the new version is easy and can be completed in just a few steps. First, back up your ~/.valet
directory, then stop the running Valet and uninstall it:
valet stop valet uninstall
Finally, upgrade to the latest version of Valet. You can upgrade through Git or Composer, depending on how you installed Valet. For example, I installed it globally through Composer, so first I need to modify the version of valet in ~/.composer/composer.json
Number:
"laravel/valet": "^2.0"
Then run the Composer global update command to update Valet dependencies:
composer global update
Finally we use the Valet installer to execute the installation and restart commands:
valet install valet restart
View Valet at this time The version will be found to have been upgraded to version 2.0:
Valet driver
The current drivers supported by Valet are as follows:
● Basic
● Bedrock
● Cake
● Concrete5
● Contao
● CraftCMS
● Drupal
● Jigsaw
● Joomla
● Katana
● Kirby
● Laravel
● Sculpin
● Statamic
● Symfony
Of course, if necessary, you can also refer to the official documentation to create a custom driver.
Original address: https://xueyuanjun.com/post/5792.html#ipt_kb_toc_5792_9
The above is the detailed content of Laravel Valet version 2.0: built-in server replaced with Nginx. For more information, please follow other related articles on the PHP Chinese website!