title: How do I block certain routes when not in Debug Mode in Laravel?
body: <p>Is there a way to make a route <code>APP_DEBUG</code> exclusive in Laravel 8?</p>
  <p>I can set routes in the <code>PreventRequestsDuringMaintenance</code> middleware exception list.
  But that is only for when maintenance mode is on.</p>
  <p>I know I can simply do an abort(403) on a Route if Debug mode is on but I'm using <a href="https://github.com/alkhachatryan/laravel-web-console" rel="nofollow noreferrer">Laravel Web Console</a> library which communicates with it's own route when executing commands. So I need to strictly block any requests to that route when in Debug mode.</p>
  <p>I want to block certain routes when not in Debug mode. Does Laravel come with such option or do I need a third party library?</p>