type varchar in migration laravel code example
Example 1: laravel migration change column type
public function up()
{
Schema::table('sometable', function (Blueprint $table) {
$table->text('text')->change();
});
}
Example 2: laravel remove foreign key
$table->dropForeign('posts_user_id_foreign');