Files
account/app/Models/System/Log.php
2026-01-18 09:52:48 +08:00

23 lines
867 B
PHP

<?php
// +----------------------------------------------------------------------
// | SentCMS [ WE CAN DO IT JUST THINK IT ]
// +----------------------------------------------------------------------
// | Copyright (c) 2024 http://www.tensent.cn All rights reserved.
// +----------------------------------------------------------------------
// | Author: molong <molong@tensent.cn> <http://www.tensent.cn>
// +----------------------------------------------------------------------
namespace App\Models\System;
use App\Models\Auth\Admin;
class Log extends \App\Models\BaseModel {
protected $table = 'system_logs';
protected $fillable = ['title', 'name', 'url', 'method', 'client_ip', 'browser', 'user_id', 'data', 'remark', 'status'];
protected $hidden = ['deleted_at'];
public function user() {
return $this->belongsTo(Admin::class, 'user_id', 'uid');
}
}