id()->index(); $table->foreignIdFor(User::class)->index(); $table->foreignIdFor(Inbox::class)->index(); $table->text('message'); $table->time('read_at')->nullable(); $table->time('delivered_at')->nullable(); $table->time('deleted_at')->nullable(); $table->time('failed_at')->nullable(); $table->time('created_at')->useCurrent()->index(); }); } /** * Reverse the migrations. */ public function down(): void { Schema::dropIfExists('messages'); } };