Skip to content

Commit

Permalink
Updated Laravel Valet with instructions on how to use the new `.valet…
Browse files Browse the repository at this point in the history
…phprc` file with `valet use` (laravel#7231)

* Added instructions about using a `.valetphprc` file in the project root for the new feature released in Laravel Valet v2.16.0

* Modified description on how to use `valet use` command

* Update valet.md

Co-authored-by: Taylor Otwell <[email protected]>
  • Loading branch information
MeMattStone and taylorotwell authored Aug 13, 2021
1 parent 97d70be commit a458cbf
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions valet.md
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,12 @@ Valet allows you to switch PHP versions using the `valet use php@version` comman

valet use php

You may also create a `.valetphprc` file in the root of your project. The `.valetphprc` file should contain the PHP version the site should use:

[email protected]

Once this file has been created, you may simply execute the `valet use` command and the command will determine the site's preferred PHP version by reading the file.

> {note} Valet only serves one PHP version at a time, even if you have multiple PHP versions installed.
<a name="database"></a>
Expand Down

0 comments on commit a458cbf

Please sign in to comment.