skip to Main Content

  • Lumen Version: 5.6
  • PHP Version: 7.2
  • Database Driver & Version: SQLite 3

Steps To Reproduce:

  • cp .env .env.testing
  • SetAPP_ENV=testing
  • Run php artisan migrate –env=testing

Problem

Old env file configuration is executing.

2

Answers


  1. Chosen as BEST ANSWER

    I found the solution myself. This feature is not there in this lumen version.

    PR LINK FIX


  2. First:

    php artisan cache:clear
    php artisan config:cache
    

    You need to specify the environment before the migrate command.

    php artisan --env=testing migrate
    
    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search