curl -s https://laravel.build/example-app | bashInstead of "example-app" it can be any site name.
After using "git clone", use this commands in the terminal:
APP_URL=http://example-app.test
DB_CONNECTION=mysql
DB_HOST=mysql
DB_PORT=3306
DB_DATABASE=example_app
DB_USERNAME=sail
DB_PASSWORD=password
MEMCACHED_HOST=memcached
REDIS_HOST=redis
REDIS_PASSWORD=null
REDIS_PORT=6379
$ docker run --rm \
-u "$(id -u):$(id -g)" \
-v $(pwd):/opt \
-w /opt \
laravelsail/php80-composer:latest \
composer install --ignore-platform-reqs
$ sail up -d$ sail down
$ sail build --no-cache
$ sail up -d