My idea was just to create a new Middleware that would initiate Sentry but it doesn’t work (and was probably just a - too - naive way to do this).
If I could just initiate Sentry, I would already be more than happy but I think it would be even better if Sentry was only enable in “producation mode” (when $config['debug'] = false;) and have only Whoops enabled in “development mode” (when $config['debug'] = true;).
Does anyone have a idea on how to do this properly or could give me some tips ?
Thanks a lot