Donation checkout via Ladill Pay (9% fee), church/giving QR pages, SSO, and platform scan forwarding. Co-authored-by: Cursor <cursoragent@cursor.com>
33 lines
606 B
PHP
33 lines
606 B
PHP
<?php
|
|
|
|
namespace App\Models;
|
|
|
|
use Illuminate\Database\Eloquent\Model;
|
|
use Illuminate\Database\Eloquent\Relations\BelongsTo;
|
|
|
|
class QrScanEvent extends Model
|
|
{
|
|
protected $fillable = [
|
|
'qr_code_id',
|
|
'scanned_at',
|
|
'ip_hash',
|
|
'user_agent',
|
|
'device_type',
|
|
'browser',
|
|
'os',
|
|
'country_code',
|
|
'referrer',
|
|
'is_unique',
|
|
];
|
|
|
|
protected $casts = [
|
|
'scanned_at' => 'datetime',
|
|
'is_unique' => 'boolean',
|
|
];
|
|
|
|
public function qrCode(): BelongsTo
|
|
{
|
|
return $this->belongsTo(QrCode::class);
|
|
}
|
|
}
|