2.1.0
What's Changed
Fixed Enum Type Support in Migration Files
In previous versions, there was an issue with using the enum type in migration files. We've now successfully resolved this limitation. With version 2.1.1, you can use the enum type in migration files as demonstrated below:
$table->enum('status', ['Draft', 'Published']);
To take advantage of the improved enum support, use the following command when generating migrations:
php artisan api:generate Model "status:enum(Draft,Published)"