File tree 2 files changed +22
-0
lines changed
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 6
6
use Rollbar \Laravel \MonologHandler ;
7
7
use Rollbar \RollbarLogger ;
8
8
use Rollbar \Rollbar ;
9
+ use Illuminate \Contracts \Debug \ExceptionHandler as LaravelExceptionHandlerContract ;
10
+ use Rollbar \Laravel \ExceptionHandler ;
9
11
10
12
class RollbarServiceProvider extends ServiceProvider
11
13
{
@@ -55,6 +57,11 @@ public function register()
55
57
56
58
return $ handler ;
57
59
});
60
+
61
+ $ this ->app ->bind (
62
+ LaravelExceptionHandlerContract::class,
63
+ ExceptionHandler::class
64
+ );
58
65
}
59
66
60
67
/**
You can’t perform that action at this time.
0 commit comments