Files
ladill-link/app/Models/LinkClick.php
T
isaaccladandCursor d9c91ad7d8 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>
2026-06-27 10:58:41 +00:00

30 lines
551 B
PHP

<?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);
}
}