Creating a project

Time to create a Laravel project!

First cd into your projects folder (the folder where your Laravel projects will live).

Open your terminal and run the following command:

composer create-project --prefer-dist laravel/laravel project-name

cd into created project folder

cd project-name

Download the homestead package

composer require laravel/homestead --dev

Install homestead.


vendor\\bin\\homestead make

Unix-based machie:

php vendor/bin/homestead make

Start up vagrant box

vagrant up

If "missing private key" error run the following command:

ssh-keygen -t rsa -f ~/.ssh/id_rsa

SSH into vagrant box

vagrant ssh

You should see something like this:

Open your browser and go to

If "No Application Encryption Key Has Been Specified" error run the following command:

php artisan key:generate

If the previous command throws an ".env file missing" error, copy the .env.example file into a .env file.

To link your ip to homestead.test you need to modify your host file. On Mac and Linux, this file is located at /etc/hosts. On Windows, it is located at C:\Windows\System32\drivers\etc\hosts. The line you add to this file is the following: homestead.test

Test your project by going to homestead.test instead of the ip!

Comments (0)

Search Here