Lukaslukasnotes.dk·Mar 3, 2024Accidentally deleting Laravel database when running tests? Here is what to do insteadLaravel 11 Since Laravel 11 removed `tests/CreatesApplication.php` file I had to dig up a new solution. Sadly, there isn't the perfect pretty one. I had to overwrite the refreshApplication method which comes from the BaseTestCase class. protected fu...What have I learned today...LaravelAdd a thoughtful commentNo comments yetBe the first to start the conversation.