title: Array to string conversion laravel 5.6
body: <pre><code>    $data = $request-&gt;all();
  
      if (!empty($data))
      {
          foreach ($data as $key =&gt; $value)
          {
              if($key === "_token")
              {
                  continue;
              }
  
              $val = [
                  'questionnaire_id' =&gt; $questionnaire_id,
                  'question_id' =&gt; $key,
                  'answer' =&gt; $value
              ];
  
              $answer = Answer::create($val);
          }
      }
  </code></pre>
  
  <p>This is my array</p>
  
  <pre><code>    {
  "_token": "URP1tlRfoD0RFMYIgVIyBX1AYaobDsQU2wnvxC1r",
  "questionnaires_id": "5",
  "questions": {
  "2": "a",
  "10": "3",
  "11": "b",
  "44": "2018-08-01"
  }
  }
  </code></pre>
  
  <p>this is my model class</p>
  
  <pre><code>class Answer extends Model
      {
          protected $fillable = [
              'questionnaire_id', 'question_id', 'answer'
          ];
      }
  </code></pre>