Custom route filter [solved]


Hello. What if i want to create my own route fiilter? Is there any non-hacking way to do it? Like ajaxOnly() or something like this. I know that middleware functional is quite similar, but they are not that fancy. Thank you.
P.S. Is that a thing?

Should be more attentive, sorry. Maybe this section should be mentioned in filtering resources section?