*/ protected $dontFlash = [ 'current_password', 'password', 'password_confirmation', ]; /** * Register the exception handling callbacks for the application. */ public function register(): void { $this->renderable(function (\Illuminate\Auth\AuthenticationException $e, $request) { return JSONResponse::Unauthorized(); }); $this->reportable(function (Throwable $e) { // }); } }