Aggregate ladl.link slugs from all platform apps in the link list.
Deploy Ladill Link / deploy (push) Successful in 29s

Sync QR and storefront short codes from sibling apps via a platform catalog API so My Links shows every ladl.link URL in one place.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
isaacclad
2026-06-27 13:26:16 +00:00
co-authored by Cursor
parent b4ad797c38
commit f1fe749934
9 changed files with 245 additions and 27 deletions
@@ -0,0 +1,35 @@
<?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::table('short_links', function (Blueprint $table) {
$table->string('source_app', 32)->default('link')->after('user_id');
$table->string('source_kind', 16)->default('redirect')->after('source_app');
$table->string('source_ref', 64)->nullable()->after('source_kind');
$table->string('manage_url', 512)->nullable()->after('destination_url');
$table->boolean('is_managed_here')->default(true)->after('manage_url');
$table->index(['user_id', 'source_app']);
});
}
public function down(): void
{
Schema::table('short_links', function (Blueprint $table) {
$table->dropIndex(['user_id', 'source_app']);
$table->dropColumn([
'source_app',
'source_kind',
'source_ref',
'manage_url',
'is_managed_here',
]);
});
}
};