Commented routes
The final approach offered by Deadbolt for controller restrictions is to define them directly in the routes
file.
This has pros and cons. On the plus side, it takes the least amount of effort, is not intrusive into your controller code and means your route definitions and constraints are together for reference. On the down side, comments are strings - any errors resulting from misconfiguration will appear at runtime.
// in progress
Updated less than a minute ago