Expand Link app with analytics, settings, and custom domains.
Deploy Ladill Link / deploy (push) Successful in 37s
Deploy Ladill Link / deploy (push) Successful in 37s
Add Bitly-style branded domain support via Ladill Domains SSL API, account analytics dashboard, settings page with default domain picker, and fix SSO/dashboard issues from QR Plus template leftovers. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -38,9 +38,12 @@ class ShortLink extends Model
|
||||
return $this->hasMany(LinkClick::class);
|
||||
}
|
||||
|
||||
public function publicUrl(): string
|
||||
public function publicUrl(?User $owner = null): string
|
||||
{
|
||||
return self::publicBaseUrl().'/'.$this->slug;
|
||||
$owner ??= $this->user;
|
||||
$base = $owner ? $owner->publicLinkBaseUrl() : self::publicBaseUrl();
|
||||
|
||||
return rtrim($base, '/').'/'.$this->slug;
|
||||
}
|
||||
|
||||
public static function publicBaseUrl(): string
|
||||
|
||||
Reference in New Issue
Block a user