Where are you installing it?
You should create a folder in your home directory for it something like
/Users/<user>/Code
And in it create your project.
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
Hi,
I am not able to install a new project on my mac. I enter the command laravel new blog and it always throughs an error (failed to open stream: permission denied) when installing phpoption. Someone knows what to do ?
Since you are on a mac use Laravel Valet instead of mamp.
https://laravel.com/docs/7.x/valet#introduction
Then you can use a path like the one above.
Please or to participate in this conversation.