public function store(CreatePlayerRequest $request)
 {
     $formatName = $request->input('name') . '_' . $request->input('surname');
     $getSex = $request->input('sex');
     $getSkin = $request->input('skin');
     \Auth::user()->player()->create(['name' => $formatName, 'age' => $request->input('age'), 'sex' => $getSex, 'skin' => $getSkin, 'from' => $request->input('from'), 'history' => $request->input('history'), 'gid' => \Auth::id()]);
     flash()->success('Udało Ci się utworzyć postać!');
     return redirect('/profile/' . \Auth::id() . '');
 }
 public function playerSearch(Player $Player, CreatePlayerRequest $request)
 {
     $search_text = $request->input('search_text');
     $players = $player->postPlayerSearch($search_text);
     return view('pages.searchArticle', compact('players'));
 }