Changeset View
Changeset View
Standalone View
Standalone View
src/app/Exceptions/Handler.php
Show All 19 Lines | protected $dontFlash = [ | ||||
'password', | 'password', | ||||
'password_confirmation', | 'password_confirmation', | ||||
]; | ]; | ||||
/** | /** | ||||
* Register the exception handling callbacks for the application. | * Register the exception handling callbacks for the application. | ||||
*/ | */ | ||||
public function register() | public function register(): void | ||||
{ | { | ||||
$this->reportable(function (\Throwable $e) { | $this->reportable(function (\Throwable $e) { | ||||
// Rollback uncommitted transactions | // Rollback uncommitted transactions | ||||
while (DB::transactionLevel() > 0) { | while (DB::transactionLevel() > 0) { | ||||
DB::rollBack(); | DB::rollBack(); | ||||
} | } | ||||
}); | }); | ||||
} | } | ||||
Show All 18 Lines |