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>
30 lines
551 B
PHP
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);
|
|
}
|
|
}
|