how to give text datatype in laravel migration code example Example: laravel remove foreign key $table->dropForeign('posts_user_id_foreign');