How to start using SQLite for testing with laravel
phpunit.xml you create 2 new environments after the
MAIL_DIVER like this:
<env name="DB_CONNECTION" value="sqlite"/> <env name="DB_DATABASE" value=":memory:"/>
Now to go to your test and add
use RefreshDatabase; and importing
Now you should run your test and it should work like before.