title: ErrorException - Array to String Conversion [Laravel]
body: <p>For some reason I'm getting the Array to String Conversion when processing a Request through the controller. </p>
  
  <p>My script creates multiple entries in the database, and I can't seem to figure out where my errors are.</p>
  
  <pre><code>public function storeMappool(MappoolFormRequest $request)
  {
      $this-&gt;validate($request, [
          'tournament_id',
          'game_id',
          'name',
          'content',
      ]);
  
      $inputForm = $request-&gt;all();
  
      if (!TournamentMappool::where('name', $inputForm['name'])-&gt;where('tournament_id', $inputForm['tournament_id'])-&gt;exists())
      {
          print("Creating new TournamentMappool entry.&lt;br&gt;");
          $inputM = array();
          $inputM['tournament_id'] = $inputForm['tournament_id'];
          $inputM['name'] = $inputForm['name'];
          $mappool = TournamentMappool::create($inputM);
      }
      else
      {
          return "Mappool Name already exists.";
      }
  
  
      $maps_arr = explode("\r\n", $inputForm['content']);
      foreach ($maps_arr as $map) {
          $map_arr = explode("||", $map);
          $map_bmid = str_replace("https://osu.ppy.sh/b/", "", $map_arr[0]);
  
          $bmi = json_decode ( file_get_contents ( 'http://osu.ppy.sh/api/get_beatmaps?k=&lt;api_key&gt;&amp;b='.$map_bmid), true )[0];
  
          if (!GameMap::where('external_id', $bmi['beatmapset_id'])-&gt;exists())
          {
              print("Creating new GameMap entry.&lt;br&gt;");
              $input = array();
              $input['game_id'] = $request-&gt;input('game_id');
              $input['external_id'] = $bmi['beatmapset_id'];
              $input['mapname'] = $bmi['artist'] . " - " . $bmi['title'];
              $gameMap = GameMap::create($input);
  
              $bmsi = json_decode ( file_get_contents ( 'http://osu.ppy.sh/api/get_beatmaps?k=&lt;api_key&gt;&amp;s='.$bmi['beatmapset_id']), true );
              foreach ($bmsi as $mapset) {
                  print("Creating new GameMapVersion entry.&lt;br&gt;");
                  $inputV = array();
                  $inputV['map_id'] = $gameMap-&gt;id;
                  $inputV['version'] = $mapset['version'];
                  $inputV['external_id'] = $mapset['beatmap_id'];
                  $inputV['external_data'] = $mapset;
                  $gameMapVersion = GameMapVersion::create($inputV);
  
                  if ($gameMapVersion-&gt;external_id == $bmi['beatmap_id'])
                  {
                      $inputMm = array();
                      $inputMm['mappool_id'] = $mappool-&gt;id;
                      $inputMm['version_id'] = $gameMapVersion-&gt;id;
                      $inputMm['modifier'] = $map_arr[1];
                      TournamentMappoolMap::create($inputMm);
                  }
              }
          }
          else
          {
              $gameMap = GameMap::where('external_id', $bmi['beatmapset_id'])
                                -&gt;where('game_id', $inputForm['game_id'])
                                -&gt;first();
              $gameMapVersion = GameMapVersion::where('map_id', $gameMap-&gt;id)
                                              -&gt;where('external_id', $bmi['beatmap_id'])
                                              -&gt;first();
              $inputMm = array();
              $inputMm['mappool_id'] = $mappool-&gt;id;
              $inputMm['version_id'] = $gameMapVersion-&gt;id;
              $inputMm['modifier'] = $map_arr[1];
              TournamentMappoolMap::create($inputMm);
          }
      }
  }
  </code></pre>
  
  <p>I hope someone is able to help me figure out where my errors are and how to fix this issue.</p>
  
  <p>The results returned from the API are as follow:</p>
  
  <pre><code>[{"beatmapset_id":"210346","beatmap_id":"495633","approved":"1","total_length":"244","hit_length":"232","version":"captin's Legend","file_md5":"afc04f1f8dcd0dfac51bae4459f052e1","diff_size":"4.3","diff_overall":"9","diff_approach":"9.3","diff_drain":"7","mode":"0","approved_date":"2015-07-03 00:20:14","last_update":"2015-06-26 00:01:19","artist":"Nanahoshi Kangengakudan","title":"IMAGINARY LIKE THE JUSTICE","creator":"pkk","bpm":"190","source":"","tags":"pkmnyab kibbleru frostings captin1 vocaloid megpoid gumi vocarock orchestra illicit sexual relations monaka \u30e2\u30ca\u30ab exit tunes presents storytellers rpg fujuniseikouyuup \u4e0d\u7d14\u7570\u6027\u4ea4\u904ap iwami takashi \u5ca9\u898b\u9678","genre_id":"7","language_id":"3","favourite_count":"887","playcount":"570073","passcount":"26473","max_combo":"1697","difficultyrating":"6.111269474029541"}]
  </code></pre>
  
  <p>Hopefully there is enough information to help me figure out the error.</p>
  
  <p>If any other classes like models are needed feel free to ask.</p>