Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //laravel 5.5 below
- $roles = $this->role->whereRaw('JSON_CONTAINS(role_group, \'["MSC_POSTAPP"]\' )')->get();
- //laravel 5.6
- $roles = $this->role->whereJsonContains('role_group', 'MSC_POSTAPP')->get();
Add Comment
Please, Sign In to add comment