mirror of
https://github.com/ProxyPanel/ProxyPanel.git
synced 2026-04-03 11:09:27 +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 :)
24 lines
435 B
PHP
24 lines
435 B
PHP
<?php
|
|
|
|
namespace App\Models;
|
|
|
|
use Illuminate\Database\Eloquent\Model;
|
|
|
|
/**
|
|
* 推送通知日志.
|
|
*/
|
|
class NotificationLog extends Model
|
|
{
|
|
protected $table = 'notification_log';
|
|
|
|
protected $guarded = [];
|
|
|
|
// 通知类型
|
|
public function getTypeLabelAttribute(): string
|
|
{
|
|
$type = config('common.notification.labels')[$this->type];
|
|
|
|
return trans("admin.system.notification.channel.{$type}");
|
|
}
|
|
}
|