diff --git a/app/Models/Subscriber.php b/app/Models/Subscriber.php new file mode 100644 index 0000000..e889ddc --- /dev/null +++ b/app/Models/Subscriber.php @@ -0,0 +1,15 @@ + $this->faker->unique()->safeEmail, + ]; + } +} diff --git a/database/migrations/2024_06_16_053149_create_subscribers_table.php b/database/migrations/2024_06_16_053149_create_subscribers_table.php new file mode 100644 index 0000000..a23c66e --- /dev/null +++ b/database/migrations/2024_06_16_053149_create_subscribers_table.php @@ -0,0 +1,28 @@ +id(); + $table->string('email')->unique(); + $table->timestamps(); + }); + } + + /** + * Reverse the migrations. + */ + public function down(): void + { + Schema::dropIfExists('subscribers'); + } +};