diff --git a/app/Models/SentEmail.php b/app/Models/SentEmail.php new file mode 100644 index 0000000..ee7ccbd --- /dev/null +++ b/app/Models/SentEmail.php @@ -0,0 +1,30 @@ +{$model->getKeyName()}) === true) { + $model->{$model->getKeyName()} = strtolower(Str::random(15)); + } + }); + } +} diff --git a/database/migrations/2024_09_27_212523_create_sent_emails_table.php b/database/migrations/2024_09_27_212523_create_sent_emails_table.php new file mode 100644 index 0000000..1547686 --- /dev/null +++ b/database/migrations/2024_09_27_212523_create_sent_emails_table.php @@ -0,0 +1,29 @@ +string('id', 15)->primary(); + $table->string('recipient'); + $table->string('mailable_class'); + $table->timestamps(); + }); + } + + /** + * Reverse the migrations. + */ + public function down(): void + { + Schema::dropIfExists('sent_emails'); + } +};