follow these steps:
-
Download and Install virtual box in your computer
-
Create a project directory and open that via terminal
-
Clone and install Homestead by executing the following commands
-
git clone https://github.com/laravel/homestead.git ~/Homestead
-
git checkout v7.18.0
-
bash init.sh
-
Open Homestead.yaml and configure the project paths according to your current project paths.
-
After setting up the project paths, save and exit the file.
-
Create another direcoty inside the current directory and rename it according to your project name
-
clone this repository inside that created directory
-
Once allthe above steps complete, run vagrant up command.
-
Then run composer install and npm install to install all the dependencies
-
Run php artisan migrate to migrate the database
-
Compile js and css and visit your ip(Homestead.yaml) to view the project