/**
  * Display the specified resource.
  *
  * @param  int $id
  * @return Response
  */
 public function show($id)
 {
     $user = User::find($id);
     $profile = Profile::find($user->id);
     $posts = Post::find($user);
     TrackerFunctions::log($user->name . " is viewing their own profile ");
     return view('profiles.default', compact('user', 'posts', 'profile'));
 }
 /**
  * Display the specified resource.
  *
  * @param  int  $id
  * @return Response
  */
 public function show($id)
 {
     $user = User::find($id);
     $data = Tracker::find($id);
     if ($user == $data) {
         TrackerFunctions::log('This user is viewing their own tracking profile');
     } else {
         TrackerFunctions::log("this user is viewing a single user " . $user->name . $user->id);
     }
     return view('tracker.show', compact('user', 'data'));
 }
 /**
  * Show the form for editing the specified resource.
  *
  * @param  int $id
  * @return Response
  */
 public function edit($id)
 {
     $user = Auth::user();
     $post = Post::find($id);
     TrackerFunctions::log($user->name . " is editing a post" . $post->id . " ");
     return view("wall.edit", compact("user", "post"));
 }