Note
It must:
- be on the latest version of Laravel
- be lightweight to run with Docker
- use modern technologies such as PHP 8.3, Go 1.21, Python 3.12, etc.
- Docker 25.x
- Task 3.x
- Bun 1.x
# Build dev image
task build
# Remove builds
task build-prune
# Up containers
task up
# Copy Laravel environment variables file
cp -n dev-frontend.env apps/frontend/.env
# Install dependencies, generate key, run migrations
task install
# Run queue worker
task queue
# Enter the apps container
task consoleFix permissions:
task fix-permsUse Vite:
# Start dev server
task bun-dev
# Build for production
task bun-buildUpdate locales:
task lang-updateApply fixes by phpcs:
task fix-phpcsAnalyse the code by Larastan:
task phpstanCheck security vulnerabilities in dependencies:
task check-security- Access
http://localhost:8081to enter the adminer;
- Access
http://localhost/?SPX_KEY=dev&SPX_UI_URI=/to enable PHP-SPX and see the profiling results. taskis a command of Taskfile utility.