*/ protected $dontFlash = [ 'current_password', 'password', 'password_confirmation', ]; /** * Register the exception handling callbacks for the application. */ public function register(): void { $this->renderable(function (NotFoundHttpException $e, Request $request) { return ReplyService::error( 'record not find'); }); $this->renderable(function (AppException $e, Request $request) { Log::error($e->getTraceAsString()); return ReplyService::error( $e->getMessage()); }); $this->reportable(function (Throwable $e) { }); } }