How to change a varchar (string) column to a text column
EloquentFirst add a new migration:
php artisan make:migration change_summary_to_projects_table lang-php
By using the words `change` and `to_projects` in the migration name, the correct table will already be populated!
Then do this:
public function up(): void
{
Schema::table('projects', function (Blueprint $table) {
$table->text('summary')->change();
});
}
lang-php