Santosh Achari
Santosh Achari

Reputation: 3006

Laravel homestead is setup and works. But can't find files created

I've just got my new Macbook Pro, and installed Homestead on it. Followed this link: https://laravel.com/docs/master/homestead

I can view the site after installing Laravel on Homestead, but can't find where the files created are on my computer.

Here's homestead.yaml file enter image description here

My browser enter image description here

Code Folder enter image description here

To check for any hidden files I've tried the same on Terminal enter image description here

When I ssh into the Vagrant instance, I can see the file.

enter image description here

Where could the files be stored? Or am I looking at the wrong place? Thanks

Upvotes: 1

Views: 2487

Answers (3)

Yijun Wang
Yijun Wang

Reputation: 1

Check your command by which you create the project. It looks like: $composer create-project laravel/laravel --prefer-dist your_project_name If no error occurs, a directory named your_project_name would be created under your Code path. Good luck!

Upvotes: 0

Jeff
Jeff

Reputation: 25221

I think by default it is in your User folder. Mac HD/Users/yourname/Code

Upvotes: 0

Santosh Achari
Santosh Achari

Reputation: 3006

I was able to fix it using the following steps.

I ran vagrant provision from the Homestead directory.

I was able to access the mac Code folder from ssh:

ssh [email protected]
cd /home/Code

Just had to install Laravel again in this directory.

Upvotes: 1

Related Questions