Initialer Laravel Commit für BetiX
Some checks failed
linter / quality (push) Has been cancelled
tests / ci (8.4) (push) Has been cancelled
tests / ci (8.5) (push) Has been cancelled

This commit is contained in:
2026-04-04 18:01:50 +02:00
commit 0280278978
374 changed files with 65210 additions and 0 deletions

34
app/Models/PromoUsage.php Normal file
View File

@@ -0,0 +1,34 @@
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Relations\BelongsTo;
class PromoUsage extends Model
{
use HasFactory;
protected $fillable = [
'promo_id',
'user_id',
'used_at',
'ip',
'user_agent',
];
protected $casts = [
'used_at' => 'datetime',
];
public function promo(): BelongsTo
{
return $this->belongsTo(Promo::class);
}
public function user(): BelongsTo
{
return $this->belongsTo(User::class);
}
}