diff --git a/app/Models/Organization.php b/app/Models/Organization.php index b2f88683..49d4c43d 100644 --- a/app/Models/Organization.php +++ b/app/Models/Organization.php @@ -67,6 +67,8 @@ class Organization extends Model implements HasMedia 'deleted_at' => 'datetime', 'status_updated_at' => 'datetime', 'accepts_volunteers' => 'boolean', + 'eu_platesc_merchant_id' => 'encrypted', + 'eu_platesc_private_key' => 'encrypted', ]; public array $requiresApproval = [ diff --git a/database/migrations/2023_05_05_142228_create_organizations_table.php b/database/migrations/2023_05_05_142228_create_organizations_table.php index 734f9a11..c7ed5205 100644 --- a/database/migrations/2023_05_05_142228_create_organizations_table.php +++ b/database/migrations/2023_05_05_142228_create_organizations_table.php @@ -27,8 +27,8 @@ public function up(): void $table->boolean('accepts_volunteers')->default(true); $table->text('why_volunteer')->nullable(); $table->string('status')->default(OrganizationStatus::pending->value); - $table->string('eu_platesc_merchant_id')->nullable(); - $table->string('eu_platesc_private_key')->nullable(); + $table->text('eu_platesc_merchant_id')->nullable(); + $table->text('eu_platesc_private_key')->nullable(); $table->timestamps(); $table->softDeletes(); });