DockerでLaravelの環境を整える方法

curl -s “https://laravel.build/test-app” | bash

./vendor/bin/sail up -d

phpmyadmin:
    image: phpmyadmin/phpmyadmin
    links:
        - mysql:mysql
    ports:
        - 8081:80
    environment:
        MYSQL_USERNAME: "${DB_USERNAME}"
        MYSQL_ROOT_PASSWORD: "${DB_PASSWORD}"
        PMA_HOST: mysql
    networks:
        - sail

return view(‘hello’, [‘name’ => “Hello World.”]);