Just signed up on Laracasts today and going through the tutorial on setting up vagrant/homestead.
When I create the application, i.e, laravel new example, I getting './laravel: No such file or directory'.
I obviously missed something like a path, but I'm sure where that 'laravel' command should have been installed on my Mac.
Any suggestions? I started, cleaned up and started this tutorial twice already.
Thanks.
I think the laravel command is an alias to the actual composer command to create a new project. Try using 'composer create-project laravel/laravel [insert_project_name]' instead.
Thanks for the reply. I've used 'composer create-project' on my LAMP set up. I'm trying to get this vagrant/homestead env set up to run some of these tutorials.
Funny but this 'laravel' command in the tutorial is run outside of the vagrant VM. PHP and composer are not in the Mac env.
I finally got on track with the tutorial by starting up vagrant and running composer create inside the VM.
Thanks again for the heads up!
@jdperdue, Yes, you install composer in the mac's env, and then install "laravel/installer" globally. As you also guessed, you will need to add "~/.composer/vendor/bin" to your path on the mac's env too.
@5pArxz Not sure if you saw it, but Taylor put the installer out as a composer package about 7 days ago & updated the install docs (referenced by @JefferyWay above) to use the composer method. He said in the laravel.io podcast that he was going to go away from the .phar file as the global composer package would be easier to maintain.