Last active
June 25, 2019 13:57
-
-
Save webbash/5c4e194a47a82f873b106e7de5a1bf76 to your computer and use it in GitHub Desktop.
Laravel Eloquent JSON fields where query
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| return $query->whereJsonContains('fields', ['sub-field' => 'value']) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment