/**
  * Show the profile for the given user.
  *
  * @param  int  $id
  * @return Response
  */
 public function showProfile()
 {
     $user = Profile::all();
     return view('profile')->with('user', $user);
 }
示例#2
0
 protected function create(array $data)
 {
     return Profile::create(['name' => $data['name'], 'description' => $data['description'], 'game' => $data['game']]);
 }