- add to
docker-compose.yml
db:
container_name: db
- copy
.env.example
to.env
and change
APP_NAME=Laravel
APP_ENV=local
APP_KEY=base64:zzlO1zURj6B/A3F/kC2JW9Ft1RkfcMW+6ctnxK8H5Uw=
APP_DEBUG=true
APP_URL=http://localhost
APP_PORT=8081
DB_CONNECTION=mysql
DB_HOST=db
DB_PORT=3306
DB_DATABASE=homestead
DB_USERNAME=homestead
DB_PASSWORD=secret
-
sudo nano /etc/hosts
and add127.0.0.1 db
-
then run
composer install
andphp artisan migrate --seed
then restart docker and it will be on http://localhost:8081docker compose down && docker compose up -d
-
to get into admin, register a new user and changed his role to 1 in
model_has_roles
Clone Project
Run the following commands
./develop start
./develop composer install
./develop art migrate --seed
127.0.0.1:8080 will load up the project