huangdijia/laravel-blueprint-extend-set

Extend Laravel Blueprint Mysql Set

1.1.0 2020-09-02 01:47 UTC

This package is auto-updated.

Last update: 2024-11-29 05:44:49 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']]);
    // ...
});