Change path grep syntax to match Laravel
mattstauffer opened this issue Β· comments
Taylor just informed me that Laravel recently got except-path and has had only-path for a while, so it would probably be worth deprecating the old syntax and changing this package's flags to match Laravel's:
https://twitter.com/stauffermatt/status/1389245939106390019
Would you accept a PR to change the syntax and either drop the old syntax, or offer it as a deprecated fallback?
Should we change the "name" flags as well in that case? π€
--name
and --except-name
@Gummibeer sure. For consistency.
@mattstauffer of course. If you canβt make it in the next few days I could also do it myself.
The only fear I have with these namings is conflicts. But would also match my idea of --group-by
and --group
options.
group
and group-by
would mean two really different things. If I understand your proposal correctly, you'd like to have a group
option for the type of the route, e.g. web or api. I'm wary to have two so similar options. π€
No, the --group
would be like --name=user/*
.
So it would filter by group name. A filter name matches every route containing "user". But --group
would match only routes starting with given string.
Will upgrade it when Laravel 9 is released.
@Wulfheart what happens are they using your package or do they write it again from scratch and added it to Laravel 9
As far as I can see did they write it from scratch but stated in the PR that it is inspired by this package (which is inspired by many other packages itself) but they enhanced it quite a lot and I'm really happy about it as it relieves me of the maintenance burden. π
Yeah, it's pretty cool that they did it, but you also did a great job here too ππͺπͺπͺ
Thanks!