Loading player...

Here's a small, but very useful new addition to Laravel. The default TestCase class now includes a new LazilyRefreshDatabase trait, which will only refresh your database if the current test touches the database.

LazilyRefreshDatabase TraitPost Slugs

Would you like to hear from Laracasts by email occasionally?