getMessage() && strlen($this->getMessage()) > 1) { $msg = $this->getMessage(); } return response()->json([ 'message' => $msg, ], 401); } }