lundi 5 octobre 2015

Laravel migration array type

I want to store an array of integers in my table and i cant find any type that support array in Documentation, any suggestion.

Migration :

public function up()
{
    Schema::create('pickups', function (Blueprint $table) {
        $table->increment('id');
        $table->boolean('default');
        $table->integer('shifts');  <<--------- HERE i want to store an array of integers
        $table->integer('status_id');

        $table->timestamps();
    });
}



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire