$token = $request->input('token'); if (empty($token)) { throw new ApiException('token is null',403); }