id(); $table->text('content')->nullable(); $table->morphs('commentable'); $table->foreignId('user_id')->nullable()->constrained()->nullOnDelete(); $table->boolean('is_banned')->default(false); $table->timestamps(); $table->softDeletes(); }); } /** * Reverse the migrations. */ public function down(): void { Schema::dropIfExists('comments'); } };