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-06-29 04:21:46 UTC


README

laravel-blueprint-extend-set

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']]);
    // ...
});