This adds support for toroute() this is the same as doing redirect(route()) or redirect()->route(), the current code when trying to use cmp would remove `toso you'd only haveroute('something')instead ofto_route('something')`
I also updated the errors to use int since it was complaining and updated cmp to use the utils helper to reduce code duplication.
This adds support for toroute() this is the same as doing
redirect(route())
orredirect()->route()
, the current code when trying to use cmp would remove `toso you'd only have
route('something')instead of
to_route('something')`I also updated the errors to use int since it was complaining and updated cmp to use the utils helper to reduce code duplication.