Valet switch PHP version with these commands
Install PHP 5.6 and switch Valet to PHP 5.6
valet stop
brew unlink php71
brew install php56
brew install php56-mcrypt
const sleep = ms => new Promise(resolve => setTimeout(resolve, ms)); | |
async function doSomething() { | |
console.log("this might take some time...."); | |
await sleep(5000); | |
console.log("done!") | |
} | |
doSomething(); |
Descargar los siguientes paquetes: