New in Laravel: The withAttributes relationship method
Codecourse · 4:21
Laravel added a withAttributes() method for Eloquent relationships. It filters a relationship by the attributes you give it, the way where() does, and it also fills in those same attributes when you create a record th...