From a recent query I am getting this as the result.
[{"BeneficiaryID":"2"},{"BeneficiaryID":"3"},{"BeneficiaryID":"4"},{"BeneficiaryID":"6"}]
I want to use these ID values for another mysql query using Laravel.
How can I just get only those numbers.
Final result should be like [2,3,4,6]