App\Exceptions\Handler::report PHP Method

report() public method

This is a great spot to send exceptions to Sentry, Bugsnag, etc.
public report ( Exception $e )
$e Exception
    public function report(Exception $e)
    {
        return parent::report($e);
    }

Usage Example

コード例 #1
0
 public function testReport()
 {
     $path = base_path('tests/storage/logs/report.log');
     \Log::useFiles($path);
     $this->handler->report(new \ErrorException('testing error'));
     $this->assertFileExists($path);
     $content = file_get_contents($path);
     $this->assertNotFalse(strpos($content, 'testing error'));
     $this->beforeApplicationDestroyed(function () use($path) {
         \File::delete($path);
     });
 }
All Usage Examples Of App\Exceptions\Handler::report