Answer the question
In order to leave comments, you need to log in
How to link jsonb field to other tables?
The site has the ability to save the search,
when saving, the user id and json query string are written to the table, for example
{
"advert_status":1,
"filter_models":{
"type_id":1,
"adventure_state":1
},
"additionally_filter":{
"currency_id":1
}
}
Answer the question
In order to leave comments, you need to log in
Look towards https://github.com/staudenmeir/eloquent-json-relations . In one of the projects, we set up connections like this.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question