Add Ladill Link URL shortener on ladl.link.
Management UI at link.ladill.com with GHS 0.05 per link wallet billing, click analytics, and legacy fallback to ladill.com/q for QR ecosystem codes. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -0,0 +1,29 @@
|
||||
<?php
|
||||
|
||||
namespace App\Models;
|
||||
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
use Illuminate\Database\Eloquent\Relations\BelongsTo;
|
||||
|
||||
class LinkClick extends Model
|
||||
{
|
||||
protected $fillable = [
|
||||
'short_link_id',
|
||||
'ip_hash',
|
||||
'user_agent',
|
||||
'referer',
|
||||
'country',
|
||||
'is_unique',
|
||||
'clicked_at',
|
||||
];
|
||||
|
||||
protected $casts = [
|
||||
'is_unique' => 'boolean',
|
||||
'clicked_at' => 'datetime',
|
||||
];
|
||||
|
||||
public function shortLink(): BelongsTo
|
||||
{
|
||||
return $this->belongsTo(ShortLink::class);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user