spatie/laravel-schemaless-attributes

Can you query values? - Question

woodgates opened this issue · 1 comments

Hi.
Is it possible to search data with values? Example:

$yourModel->extra_attributes->get('person.height', '>', 12);

Yes, take a look at the Laravel docs to learn how to search json values: https://laravel.com/docs/5.6/queries#json-where-clauses