Laravel ORM Array to String Conversion
<p>Laravel 5.3, PHP 5.6
Fresh <code>laravel new</code> project, minimal configuration.</p>

<p>I have made a simple migration and model, and am trying to seed data into it via <code>php artisan tinker</code>.</p>

<p>My migration looks like this:</p>

<pre><code>&lt;?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreatesFooTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('foo', function (Blueprint $table) {
            $table-&gt;increments('id');
            $table-&gt;string('foo', 20);
            $table-&gt;timestamps();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('foo');
    }
} 
</code></pre>

<p>When I run <code>php artisan migrate</code> the database populates just fine.</p>

<p>The corresponding model is simple:</p>

<pre><code>&lt;?php

namespace App;

use Illuminate\Database\Eloquent\Model;

class Foo extends Model
{
    protected $table = 'foo';

    protected $fillable = ['foo'];

}
</code></pre>

<p>I have a ModelFactory as well:</p>

<pre><code>$factory-&gt;define(App\Foo::class, function (Faker\Generator $faker) {

    return [
        'foo' =&gt; $faker-&gt;email,
    ];
});
</code></pre>

<p>Tinker does what I think it should do when I try to <code>make</code> a flyer from the factory:</p>

<pre><code>&gt;&gt;&gt; factory('App\Foo')-&gt;make();
=&gt; App\Foo {#696
     foo: "morgan39@gmail.com",
</code></pre>

<p>But when I try to hit the database, Eloquent fails to wrap the query values in a string:</p>

<pre><code>&gt;&gt;&gt; $foo = factory('App\Foo')-&gt;create();
Illuminate\Database\QueryException with message 'SQLSTATE[22001]: String data, right truncated: 1406 Data too long for column 'foo' at row 1 (SQL: insert into `foo` (`foo`, `updated_at`, `created_at`) values (jakayla62@streich.org, 2016-09-06 23:59:03, 2016-09-06 23:59:03))'
</code></pre>

<p>Nothing like this on Google.  Any ideas?</p>

<p>(Edited to show the same problem with a much simpler example)</p>