Add newsletter subscription endpoint (email/mobile) plus admin CSV export
Deploy Backend / deploy (push) Successful in 2m50s

This commit is contained in:
Parsa Aghayi committed 2026-10-03 08:31:17 -04:00
1 parent e98807da05
commit eacd0d73f1
6 files changed
+214

No files matched your search

@@ -0,0 +1,23 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
return new class extends Migration
{
public function up(): void
{
Schema::create('newsletter_subscriptions', function (Blueprint $table) {
$table->id();
$table->string('email', 255)->nullable()->index();
$table->string('mobile', 30)->nullable();
$table->timestamps();
});
}
public function down(): void
{
Schema::dropIfExists('newsletter_subscriptions');
}
};