Skip to content

2.3.0

Choose a tag to compare

@BJNSTNKVC BJNSTNKVC released this 27 Sep 16:06
· 11 commits to master since this release

Added

  • Query inside json() columns with -> paths, as in where('settings->theme', 'dark'). A path works in every constraint and in orderBy, including table-qualified paths in joined queries. A missing path reads as null.
  • whereJsonContains, whereJsonDoesntContain and whereJsonLength, with or forms: orWhereJsonContains, orWhereJsonDoesntContain and orWhereJsonLength.
  • select, pluck and value read JSON paths. An unaliased path is named after its last step, so select('settings->theme') returns theme, and as names it anything else.

Changed

  • A column is read only from a record's own keys. A column named after a built-in object property, such as constructor, now reads as missing instead of reaching the prototype.