title: Laravel: preg_replace(): Parameter mismatch, pattern is a string while replacement is an array
body: <p>I want to save my results in the database but im getting an error exception.</p>
  
  <p>In my view I have a radio button(array) that gets the result of each student which is <strong>present,late,absent,others</strong></p>
  
  <p><strong>Here's my view</strong></p>
  
  <pre><code>  &lt;td&gt;{{ $users-&gt;student_id  }} &lt;/td&gt;
    &lt;td&gt;{{ $users-&gt;student_firstname }} {{ $users-&gt;student_lastname }}&lt;/td&gt; 
    &lt;td&gt;{{ Form::radio('result['.$users-&gt;student_id.']', 'present' , true) }}&lt;/td&gt;
    &lt;td&gt;{{ Form::radio('result['.$users-&gt;student_id.']', 'late' ) }}&lt;/td&gt;
    &lt;td&gt;{{ Form::radio('result['.$users-&gt;student_id.']', 'absent') }}&lt;/td&gt;
    &lt;td&gt;{{ Form::radio('result['.$users-&gt;student_id.']', 'others') }}&lt;/td&gt;
  </code></pre>
  
  <p><strong>Here's my controller</strong></p>
  
  <pre><code>  $attendance = new Attendances();
    $attendance-&gt;status = Input::get('result');
    $attendance-&gt;comment = Input::get('comment');
    $attendance-&gt;save();
  </code></pre>