Are you running PHP in the CLI as php -v? To run the isolated PHP version in the CLI, cd into your project and run valet php. You should get 7.1 if you run valet php -v.
Dec 6, 2022
3
Level 2
changing php version in valet or brew
Hi folks
please assist with the change of php version for a laravel app. The steps i have taken so far is to 'cd' to the relevant application folder and then run the command valet isolate [email protected]
and i do get the following response:
The site [bookingproject.test] is now using [email protected].
However when i check the version i still get :
PHP 8.1.13 (cli) (built: Nov 24 2022 15:58:42) (NTS)
Is there anything i am missing?
Level 26
Please or to participate in this conversation.