text datatype to specify while creating a table in laravel migrations code example Example: laravel remove foreign key $table->dropForeign('posts_user_id_foreign');