Connor Leech
1 min readJan 20, 2019

--

For me I fixed this error in my tests by running php artisan config:clear. When config was cached even with the line in phpunit.xml my test env was local so it nuked my local database. Here is the relevant Laracasts thread.

--

--

Connor Leech
Connor Leech

Written by Connor Leech

Girl Dad x 2. Cofounder @Employbl. Software Engineer @CommentSold.

Responses (1)