mirror of
https://github.com/ProxyPanel/ProxyPanel.git
synced 2026-04-04 03:28:58 +00:00
- 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 :)
34 lines
594 B
PHP
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);
|
|
}
|
|
}
|