File tree Expand file tree Collapse file tree 2 files changed +22
-0
lines changed Expand file tree Collapse file tree 2 files changed +22
-0
lines changed Original file line number Diff line number Diff line change 1+ <?php
2+
3+ namespace Rollbar \Laravel ;
4+
5+ use App \Exceptions \Handler as AppHandler ;
6+
7+ class ExceptionHandler extends AppHandler
8+ {
9+ public function report (\Exception $ exception )
10+ {
11+ \Rollbar \Rollbar::log (\Rollbar \Payload \Level::ERROR , $ exception );
12+
13+ parent ::report ($ exception );
14+ }
15+ }
Original file line number Diff line number Diff line change 66use Rollbar \Laravel \MonologHandler ;
77use Rollbar \RollbarLogger ;
88use Rollbar \Rollbar ;
9+ use Illuminate \Contracts \Debug \ExceptionHandler as LaravelExceptionHandlerContract ;
10+ use Rollbar \Laravel \ExceptionHandler ;
911
1012class RollbarServiceProvider extends ServiceProvider
1113{
@@ -55,6 +57,11 @@ public function register()
5557
5658 return $ handler ;
5759 });
60+
61+ $ this ->app ->bind (
62+ LaravelExceptionHandlerContract::class,
63+ ExceptionHandler::class
64+ );
5865 }
5966
6067 /**
You can’t perform that action at this time.
0 commit comments