I know that you can set a specific PHP version to a directory by using the valet isolate php@7.2
but I'm not sure how to then install (for example) a Laravel 5.1 project using that specific PHP version.
I know the first reaction will be "just upgrade to a newer version of Laravel", but I've got an old legacy project that I need to get working on the Valet platform. My old MacBook died and the Laravel Homestead platform won't run on my new M1 MacBook.