inertiajs / inertia-laravel

The Laravel adapter for Inertia.js.
https://inertiajs.com
MIT License
2.08k stars 234 forks source link

Counting items passing a where assertion #502

Closed k3kornel closed 1 year ago

k3kornel commented 1 year ago

Hello, is it possible to count the items passing a where assertion? For example I would like to assert that the response has 3 elements and there are two elements with active property = 1 products { "data": [ { "id": 1, "plu": "2808", "name": "aut earum voluptates", "active": 1 }, { "id": 2, "plu": "5249", "name": "fugit et ex", "active": 1 }, { "id": 3, "plu": "6856", "name": "et error dolorem", "active": 0 } ] }

Thank you

jessarcher commented 1 year ago

Hi there,

Thanks for reporting the problem you are encountering, but it looks like this is a question that may be better suited for a support channel. We only use this issue tracker for reporting bugs with the library itself. If you have a question on how to use the functionality provided by this repository, you can try one of the following channels:

However, this issue will not be locked, and everyone is free to discuss solutions to your problem!