Laravel collection filter to return data based on condition
I wonder if it's possible to filter a laravel collection based on a specific attribute value. [ { "id": 2, "perm_id": 1, }, { "id": 3, "perm_id": 1, }, { "id": 10, "perm_id": 2, }, { "id": 9, "perm_id": 1…