Ejemplo n.º 1
0
 /**
  * Display the specified resource.
  *
  * @param  int  $id
  * @return \Illuminate\Http\Response
  */
 public function show($id)
 {
     $profile = Profile::findOrFail($id);
     $projects = $profile->user->projects;
     return view("profile.show", compact('profile', 'projects'));
 }