/**
  * Store a newly created resource in storage.
  *
  * @param RatingListRequest $request
  * @return Response
  */
 public function store(RatingListRequest $request)
 {
     $input = $request->all();
     RatingList::create($input);
     session()->flash('status', 'Rating list has been generated!');
     return redirect('rating-list');
 }
 /**
  * Bootstrap the application services.
  *
  * @return void
  */
 public function boot()
 {
     view()->composer('tournament._form', function ($view) {
         $view->with('ratingListArrayIdKeyed', RatingList::lists('date_of_list', 'id'));
     });
     view()->composer('tournament.game._form', function ($view) {
         $view->with('playersArrayIdKeyed', Player::lists('name', 'id'));
     });
     view()->composer('tournament.game._form', function ($view) {
         $view->with('gameResultsArrayIdKeyed', GameResult::lists('title', 'id'));
     });
 }