Пример #1
0
 /**
  * Show the given user profile.
  *
  * @param  Request  $request
  * @param  string $userId
  * @return Response
  */
 public function show(Request $request, $userId)
 {
     return view('users.show', ['user' => $this->users->userInfo($userId), 'posts' => $this->users->userPosts($userId)]);
 }