Database transactions when testing


I have my tests configured to run my migrations prior and reset after running my tests but I really need to use transactions else a way to reset the database after each individual test.

Can anybody advise?


Ignore me, I just deleted records using a query()


There is a Database testing trait that does this. See the docs in the testing section.


@moltar thankyou!