You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
✨ Feat: Add firstOrInsert method to Query Builder with tests
This commit introduces a new `firstOrInsert` method to the Laravel Query Builder.
This method efficiently retrieves the first record matching the given attributes,
or inserts a new record with the provided attributes and values if no record is found.
It includes comprehensive unit tests to ensure its functionality and reliability.
This enhancement provides a convenient way to perform "first or insert" operations
directly within the query builder, improving developer workflow and code conciseness.
0 commit comments