Skip to content
This repository was archived by the owner on Jan 21, 2024. It is now read-only.

Change str_match and add str_extract

Choose a tag to compare

@calebporzio calebporzio released this 04 Mar 04:06
· 55 commits to master since this release

Breaking changes:

  • str_match no longer returns matches from capture groups, it only returns a boolean value if the regex pattern matches or not. str_extract was added to cover this need.

Changes:

  • str_extract returns either a matched capture group OR null if nothing is matched.
  • user() now accepts an optional parameter user($guard) for if an app uses multiple auth guards.