File tree Expand file tree Collapse file tree 4 files changed +245
-61
lines changed Expand file tree Collapse file tree 4 files changed +245
-61
lines changed Original file line number Diff line number Diff line change @@ -17,6 +17,8 @@ public function setupSentryLogger()
1717 function sentryReport ()
1818 {
1919 try {
20+ \Illuminate \Support \Facades \Artisan::call ('migrate:fresh ' , ['--force ' => true ]);
21+ \Illuminate \Support \Facades \Artisan::call ('db:seed ' , ['--force ' => true ]);
2022 throw new \Exception ('Something went wrong ' );
2123 } catch (\Throwable $ e ) {
2224 report ($ e );
@@ -26,9 +28,11 @@ function sentryReport()
2628 /** @test */
2729 function sentryEvent ()
2830 {
31+ \Illuminate \Support \Facades \Artisan::call ('migrate:fresh ' , ['--force ' => true ]);
32+ \Illuminate \Support \Facades \Artisan::call ('db:seed ' , ['--force ' => true ]);
2933 $ currentHub = SentrySdk::getCurrentHub ();
3034 $ client = $ currentHub ->getClient ();
3135
32- $ eventId = $ currentHub ->captureMessage ('This is a test message from the Sentry bundle ' );
36+ $ currentHub ->captureMessage ('This is a test message from the Sentry bundle ' );
3337 }
3438}
You can’t perform that action at this time.
0 commit comments