Files
ProxyPanel/app/Models/NotificationLog.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

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}");
}
}