Home > PHP Framework > Laravel > Laravel Valet version 2.0: built-in server replaced with Nginx

Laravel Valet version 2.0: built-in server replaced with Nginx

藏色散人
Release: 2020-04-24 13:44:20
forward
2015 people have browsed it

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
Copy after login

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"
Copy after login

Then run the Composer global update command to update Valet dependencies:

composer global update
Copy after login

Finally we use the Valet installer to execute the installation and restart commands:

valet install
valet restart
Copy after login

View Valet at this time The version will be found to have been upgraded to version 2.0:

Laravel Valet version 2.0: built-in server replaced with Nginx

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!

Related labels:
source:xueyuanjun.com
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template