assertDatabaseHas should allow multidimensional array #38922
Unanswered
zsoltjanes
asked this question in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I would like to validate multiple database records, and now I have to make it separately.
It would be elegant if I can use multidimensional array like:
For solution first I would suggest make a new Arr helper which validate that the given array is multidimensional. I already make a pull request but its closed. #38916
For second step we should improve the
assertDatabaseHas
function withArr::isMultidimensional
. It should check that the given data is a multidimensional and if its true we should foreach throught the given data array.Beta Was this translation helpful? Give feedback.
All reactions