Files
ProxyPanel/app/Models/CouponLog.php
BrettonYe ad3662cda0 🚀 Refactor Blade
- Optimize Blade JavaScript code.
- Refactored multiple admin controllers for improved validation, error handling, and query efficiency.
- Added ProxyConfig trait to centralize proxy configuration options.
- Updated NodeStatusDetection to use model relationships for heartbeat checks.
- Improved category, label, and country management logic and error logging.
- Added new Blade components for admin UI and updated language files and assets for better localization and frontend support.
- Bug fixed & introduced more bug :)
2026-01-30 20:04:17 +08:00

34 lines
594 B
PHP

<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Relations\BelongsTo;
/**
* 优惠券使用日志.
*/
class CouponLog extends Model
{
public const UPDATED_AT = null;
protected $table = 'coupon_log';
protected $guarded = [];
public function coupon(): BelongsTo
{
return $this->belongsTo(User::class);
}
public function goods(): BelongsTo
{
return $this->belongsTo(Goods::class);
}
public function order(): BelongsTo
{
return $this->belongsTo(Order::class);
}
}