About This Episode

In previous versions of Laravel, you were presented with two database-specific traits for your test classes: DatabaseTransactions and DatabaseMigrations. While it doesn't take too much work to understand the difference between the two, nonetheless, it could be confusing to newcomers. "Wait, which one am I supposed to use to reset my database? Which is better?" In Laravel 5.5, all of this has been streamlined (though these traits are still available for backward compatibility). You'll now find a single RefreshDatabase trait that automatically figures out which DB reset strategy to use.

Published on Aug 14th, 2017.

Episodes

    1. Fresh Migrations

      EPISODE 3 1:04 Free
    2. Frontend Presets

      EPISODE 4 3:28 Free
    3. Automatic Package Discovery

      EPISODE 5 2:51 Free
    4. Faster Email Layout Testing

      EPISODE 6 3:20 Free
    5. Collection Dumping

      EPISODE 8 3:07 Free
    6. Model Factory Generation

      EPISODE 9 1:51 Free
    7. Custom Blade "If" Directives

      EPISODE 10 3:50 Free
    8. Higher Order Tap

      EPISODE 13 8:12 Free
    9. The RefreshDatabase Trait

      EPISODE 14 5:54 Free
    10. New Blade Directives

      EPISODE 15 2:31 Free
    11. Route Helpers

      EPISODE 16 2:08 Free
    12. Cleaner Exception Rendering

      EPISODE 18 5:03 Free
    13. Optional Objects

      EPISODE 19 4:33 Free
    14. API Resources

      EPISODE 20 11:24 Free
Back to Series Button