Laravel Schema has a command for ENUM equivalent to the table. What is the SET equivalent to the table?
Extending laravel database schema methods is not too hard. Like Roman wrote, instead of extending, you can as well update your
/**
* Create the column definition for an set type.
*
* @param \Illuminate\Support\Fluent $column
* @return string
*/
protected function typeSet(Fluent $column){
return "set('".implode("', '", $column->allowed)."')";
}
/**
* Create a new set column on the table.
*
* @param string $column
* @param array $allowed
* @return \Illuminate\Support\Fluent
*/
public function set($column, array $allowed){
return $this->addColumn('set', $column, compact('allowed'));
}
After this, terminate your server by pressing Ctrl + C. Then type php artisan serve to start the laravel.