title: Laravel - Array to string conversion error on Model::create or Model->save()
body: <p>I'm performing a simple insert which I've done many times without any issues and for some odd reason it's not working and I get this error message:</p>
  
  <pre><code>error: {type: "ErrorException", message: "Array to string conversion",…}
  file: "C:\wamp\www\studentreg2\vendor\laravel\framework\src\Illuminate\Database\Grammar.php"
    line: 33
    message: "Array to string conversion"
    type: "ErrorException"
  </code></pre>
  
  <p>Here's my code:</p>
  
  <pre><code>$advisorCheck = AdvisorCheck::create([
              'status'         =&gt; Input::get('status'),
              'application_id' =&gt; Input::get('id'),
              'user_id'        =&gt; Auth::id()
          ]);
  </code></pre>
  
  <p>The migration for the advisor_check table which AdvisorCheck model uses seems fine, all foreign keys are unsigned and show the relations correctly in phpmyadmin, all values from the Input::get are strings, the model has the correct fields set as fillable (status, application_id, user_id).</p>
  
  <p>I've even tried doing this in <code>php artisan tinker</code> like this: </p>
  
  <pre><code>AdvisorCheck::create([ 'status' =&gt; 'returned', 'application_id' =&gt; '3', 'user_id' =&gt; '4']);
  </code></pre>
  
  <p>and I get this response:
  Array to string conversion</p>
  
  <p>I've also tried this method and get the same error:</p>
  
  <pre><code>$advisorCheck                 = new AdvisorCheck;
  $advisorCheck-&gt;status         = Input::get('status');
  $advisorCheck-&gt;application_id = Input::get('id');
  $advisorCheck-&gt;user_id        = Auth::id();
  $advisorCheck-&gt;save();
  </code></pre>
  
  <p>Model code:</p>
  
  <pre><code>&lt;?php
  
  class AdvisorCheck extends \Eloquent {
  
      protected $fillable = ['status', 'application_id', 'user_id'];
  
      protected $table = ['advisor_check'];
  }
  </code></pre>
  
  <p>If you need to see more code please ask.</p>
  
  <p>Many thanks to anyone who can help!</p>