/** * Get the user to be displayed on the user profile screen. * * @param Request $request * @param string $id * @return Response */ public function show(Request $request, $id) { $user = Spark::call(UserRepository::class . '@find', [$id]); return response()->json(['user' => $user, 'revenue' => $this->indicators->totalRevenueForUser($user)]); }