diff --git a/database/migrations/create_logs_table.php.stub b/database/migrations/create_logs_table.php.stub index 0ac4e40..a3aa367 100644 --- a/database/migrations/create_logs_table.php.stub +++ b/database/migrations/create_logs_table.php.stub @@ -11,7 +11,8 @@ return new class extends Migration Schema::create('logs', function (Blueprint $table) { $table->id(); - $table->morphs('loggable'); + $table->morphs('loggable')->nullable(); + $table->string('type')->nullable(); $table->longText('log')->nullable(); $table->timestamps();