Skip to content

Conversation

@cosmastech
Copy link
Contributor

When I'm using the DB helper functions, if it's been a while, I usually have to check if it accepts a table name, a model instance, or a class-string of the Model. I thought I may help others by making the docblocks more explicit.

Technically class-string is a subtype of string, but I think being a bit more explicit is helpful.

Furthermore, I have made the mistake more than once where I thought I could pass a list of associative arrays to see if they all exist. 😅

@taylorotwell taylorotwell merged commit 344c37f into laravel:11.x Feb 23, 2025
46 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants