I have Laravel Homestead running on my computer just fine where projects are run locally using 'localhost:8000' in my web browser. Now I want to run projects using my computer's IP Address but I'm having issues accomplishing this task. I've tried a couple of different methods such as using XAMPP but I'm having trouble using that as well.
Here is what I have up and running along with the applications that are being used:
- Laravel Homestead which uses VirtualBox, Vagrant and Composer.
- I use 'cmd' to start the VirtualBox using 'Vagrant Status' & 'Vagrant Up' respectively.
- PuTTY for connecting to my VirtualBox using 'vagrant' as the login and my password.
- After successfully logging in using PuTTY, I use the 'composer' commands for creating projects and the respective Laravel PHP commands for performing migrations 'php artisan migrate', 'php artisan dump-autoload' etc.
Here is my Homestead.yaml configuration:
---
ip: "192.168.10.10"
memory: 2048
cpus: 1
authorize: C:/Users/Jeff/.ssh/id_rsa.pub
keys:
- C:/Users/Jeff/.ssh/id_rsa
folders:
- map: C:/Users/Jeff/Desktop/Code
to: /home/vagrant/Code
sites:
- map: homestead.app
to: /home/vagrant/Code/laravel-photo-gallery-build3/public
variables:
- key: APP_ENV
value: local
Is there an easy way to map my Laravel Homestead projects using my computer's IP address? Any help will be greatly appreciated!
myprojectname.app
? – Chris Schmitz