huangdijia/laravel-blueprint-extend-set

Extend Laravel Blueprint Mysql Set

1.0.7 2019-05-06 00:25 UTC

README

Latest Stable Version Total Downloads

⚠️⚠️⚠️

Official support in 5.8.12

Installation

composer require huangdijia/laravel-blueprint-extend-set

Usage

Schema::create('table', function (Blueprint $table) {
    // ...
    $table->set('set1', ['', 'a', 'b']);
    // or
    $table->addColumn('set', 'set2',  ['allowed'=>['', 'a', 'b']]);
    // ...
});