Laravel Migration Add Comment to Column Tutorial code example
Example: laravel migration add comment to table while creating table
in migration file add DB::statement("ALTER TABLE foo comment 'comment'") to up method
Schema::create("foo", function (Blueprint $table)
{
.
.
.
});
DB::statement("ALTER TABLE `foo` comment 'comment'");