hello all so i have a question,
i have a sql database that have object array inside it, it will be like this
id_data | array | created_at |
---|---|---|
1 | {"id":1032,"prc":77},{"id":1033,"prc":97} |
2021-09-28 12:30:04 |
2 | {"id":1032,"prc":85},{"id":1034,"prc":97} |
2021-09-28 12:30:04 |
3 | {"id":1030,"prc":85},{"id":1031,"prc":97} |
2021-09-28 12:30:04 |
4 | {"id":1032,"prc":90},{"id":1033,"prc":97},{"id":1035,"prc":97} |
2021-09-28 12:30:04 |
and what i want to do is take every data with id 1032 that has prc greater than 80 with its
so in this table it would take id number 2, and 4
i need take the data using eloquent laravel, can somebody help me?, i'm still new to laravel
Data::where("something here")->get()