Laravel devs, did you know? In scoped relationships, using withAttributes instead of a where condition applies the filter and includes those attributes when creating records. πͺ
Isn't it Handy? π€―
#readLaravelDocs
Back