Closed andrey-helldar closed 6 years ago
Why? Seems more restrictive for no real gain in functionality?
Since the package runs inside the Laravel framework, I would use its methods. But this is only my personal opinion.
Under the hood str_is is probably using regex anyway, this doesn't really add much and just restricts people who want a lot of control over what route patterns are ignored.
The main difference with the user is setting up the excluded routes. Either they look like #^_debugbar#
, or as routes*
. It's all about perception.
Replaced the use of the
preg_match
method to thestr_is
helper.