.env
file.
.env
file and adjust environment variables.
Set application URL to be:
- http://localhost or http://larastore.test (You will need to update
hosts
file) If you are setting the project up with docker. - http://localhost:8000 (Port might change if port 8000 is occupied) if you are setting the project up without docker.
DB_*
variables.
- Setup with docker (using laravel sail)
- Or setup manually
You don’t need to have
php
, composer
or npm
commands available in your machine. You only need docker.vendor
folder appearing in your file system.-d
flag will run the containers in detached mode.-d
flag you can simply hit ctrl + c
(cmd + c
on Mac) to stop running containers. However if you started the project with -d
you need to execute the following commands to stop running containers.Before executing the command bellow make sure docker containers are up and running (By command
./vendor/bin/sail up
-d
you probably need to open a new terminal and execute the following command there.If you are setting up the project with docker you need to execute every command from inside the container.
- http://localhost or http://larastore.test If you set up the project with docker.
- http://localhost:8000 (Port might be different if port 8000 was occupied) if you are set up the project without docker.