Skip to content

Instantly share code, notes, and snippets.

@codenathan
Created September 9, 2023 17:24
Show Gist options
  • Save codenathan/c4e9c83d60a5a7d0400405c6d1e22cec to your computer and use it in GitHub Desktop.
Save codenathan/c4e9c83d60a5a7d0400405c6d1e22cec to your computer and use it in GitHub Desktop.
Run Multiple Version of PHP using Laravel Valet on Mac

Note Laravel Valet is only for MacOS

  • Install the latest version of Laravel Valet by following the documentation
  • Go into your individual projects and run valet isolate php@<phpversion> i.e. valet isolate 7.4
  • To Run Artistan commands use valet php artisan
  • To Run Composer use valet composer
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment