Add QR-specific settings for notifications and new-code defaults.
Deploy Ladill QR Plus / deploy (push) Successful in 1m15s

Store per-account preferences in qr_settings and pre-fill the create flow with saved type and brand styling.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
isaacclad
2026-06-07 09:14:16 +00:00
co-authored by Cursor
parent 9ddda21ea3
commit a7090e9c30
11 changed files with 435 additions and 7 deletions
@@ -0,0 +1,27 @@
<?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('qr_settings', function (Blueprint $table) {
$table->id();
$table->foreignId('user_id')->unique()->constrained()->cascadeOnDelete();
$table->string('notify_email')->nullable();
$table->boolean('product_updates')->default(true);
$table->boolean('low_balance_alerts')->default(true);
$table->string('default_type', 32)->nullable();
$table->json('default_style')->nullable();
$table->timestamps();
});
}
public function down(): void
{
Schema::dropIfExists('qr_settings');
}
};