- Lumen Version: 5.6
- PHP Version: 7.2
- Database Driver & Version: SQLite 3
Steps To Reproduce:
- cp .env .env.testing
- Set
APP_ENV=testing
- Run php artisan migrate --env=testing
Problem
Old env file configuration is executing.
First:
php artisan cache:clear
php artisan config:cache
You need to specify the environment before the migrate command.
php artisan --env=testing migrate
I found the solution myself. This feature is not there in this lumen version.