Laravel 5 : Use different database for testing and local

后端 未结 6 1472
栀梦
栀梦 2020-12-24 12:21

How does one change database for development and testing on local system without editing the .env file each time?

I have found it quite inconvenient to

6条回答
  •  臣服心动
    2020-12-24 12:23

    If your testing database uses the same configuration but only its name is different, it would be enough to only change the selected database name by adding

    
    

    to the file phpunit.xml in the node

提交回复
热议问题