コード例 #1
0
 /**
  * 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']]);
 }