Two critical fixes: 1. DB_PORT was being appended to Laravel .env file - Setup script was writing DB_PORT=3307 (external port) - Laravel needs internal Docker port (3306) - Now ports are commented out in .env (reference only) - Docker-compose uses env vars, Laravel uses fixed internal ports 2. DatabaseSeeder.php had UTF-8 BOM (Byte Order Mark) - Caused 'Namespace declaration must be first statement' error - Removed invisible BOM bytes from file These fixes ensure: - MySQL connections work from within Docker network - Database seeding completes successfully - Fresh setup works end-to-end
8.1 KiB
8.1 KiB