# Laravel 11 Project Setup This directory will contain the Laravel 11 application for WAGW SaaS. ## Project Structure ``` wagw-saas/ ├── app/ # Laravel application code ├── bootstrap/ # Framework bootstrap files ├── config/ # Configuration files ├── database/ # Migrations, seeds, factories ├── public/ # Public assets (entry point) ├── resources/ # Views, lang, assets ├── routes/ # Application routes ├── storage/ # Generated files (gitignored) ├── tests/ # Automated tests ├── docker-compose.yml # Docker orchestration ├── docker/ # Docker build files ├── scripts/ # Development scripts └── docs/ # Documentation ``` ## Setup Commands ```bash # Create Laravel project composer create-project laravel/laravel . # Copy environment file cp .env.example .env # Generate app key php artisan key:generate # Run migrations php artisan migrate # Start queue worker php artisan queue:work redis # Start scheduler php artisan schedule:work ``` ## Docker Commands ```bash # Build and start services docker compose up -d --build # Run migrations in container docker compose exec app php artisan migrate # Run queue worker docker compose exec worker php artisan queue:work redis ``` ## Environment Variables See `.env.example` for all available variables. Key variables to configure: - `APP_URL` - Application URL - `DB_*` - PostgreSQL connection - `REDIS_*` - Redis connection - `MINIO_*` - MinIO S3 storage - `GOWA_*` - WhatsApp gateway configuration