_stefanzweifel’s avatar_stefanzweifel’s Twitter Archive—№ 781

    1. 💡Factory Callbacks in Laravel are dope! Makes it super easy to add default relationships to a Model when using factories in your tests. → laravel.com/docs/master/database-testing#factory-callbacks
  1. …in reply to @_stefanzweifel
    Must have saved me at least an hour today, after adding new default relationships to a core model in our app. Would have had to update a lot of tests with the same boilerplate code.