Wire seller push notifications with FCM, inbox API, and payment milestones.
Deploy Ladill Mini / deploy (push) Successful in 52s

Sellers get instant payment alerts on Android; withdrawals respect payout prefs.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
isaacclad
2026-06-11 19:04:44 +00:00
co-authored by Cursor
parent ad96754099
commit 136bfbea47
15 changed files with 626 additions and 5 deletions
@@ -0,0 +1,36 @@
<?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('user_push_tokens', function (Blueprint $table) {
$table->id();
$table->foreignId('user_id')->constrained()->cascadeOnDelete();
$table->string('token', 512)->unique();
$table->string('platform', 32)->default('android');
$table->string('device_name')->nullable();
$table->timestamp('last_seen_at')->nullable();
$table->timestamps();
$table->index(['user_id', 'updated_at']);
});
Schema::table('users', function (Blueprint $table) {
$table->timestamp('last_app_active_at')->nullable()->after('remember_token');
});
}
public function down(): void
{
Schema::table('users', function (Blueprint $table) {
$table->dropColumn('last_app_active_at');
});
Schema::dropIfExists('user_push_tokens');
}
};