自定义laravel中migrate的字段
https://coderwall.com/p/mo1gew/custom-datatype-in-laravel-schema-builder 扩展GRAMMAR和Blueprint类 use Illuminate\Support\Fluent; use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Grammars\MySqlGrammar; /** * Extended version of MySqlGrammar with * support of 'set' data type */ class ExtendedMySqlGrammar extends MySqlGrammar { /** * Create the column definition for an 'set' type. * * @param \Illuminate\Support\Fluent $column * @return string */ protected function typeSet(Fluent...