hasTable('auth_attempts')) { Capsule::schema()->create('auth_attempts', function (Blueprint $table) { $table->id(); $table->string('email')->nullable(); $table->string('ip')->index(); $table->string('action')->index(); $table->boolean('success')->default(false); $table->timestamp('created_at')->nullable(); }); } } public function down(): void { Capsule::schema()->dropIfExists('auth_attempts'); } }