Skip to content

Instantly share code, notes, and snippets.

@ricventu
Created September 23, 2024 14:40
Show Gist options
  • Save ricventu/2f9060f1469403511a44ca2ee514fb3d to your computer and use it in GitHub Desktop.
Save ricventu/2f9060f1469403511a44ca2ee514fb3d to your computer and use it in GitHub Desktop.
Create new Laravel project using Docker

Create new Laravel project using Docker

init project

docker run --rm --interactive --tty \
        --volume "$(pwd)":/app \
        -w /app \
        laravelsail/php83-composer:latest laravel new example-app

init sail

docker run --rm --interactive --tty \
        --volume "$(pwd)":/app \
        -w /app \
        laravelsail/php83-composer:latest php artisan sail:install
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment