mirror of
https://github.com/ProxyPanel/ProxyPanel.git
synced 2026-04-11 15:10:54 +00:00
1. 框架更新至5.8,并且其涉及代码进行修改; 2. 对支付的alipay组件针对php7.2/3进行修改; 3. 重构了节点信息获取逻辑;现在为实时请求; 4. 代码小细节和命名规范
42 lines
1.2 KiB
PHP
42 lines
1.2 KiB
PHP
<?php
|
|
|
|
namespace App\Http\Models;
|
|
|
|
use Eloquent;
|
|
use Illuminate\Database\Eloquent\Builder;
|
|
use Illuminate\Database\Eloquent\Model;
|
|
use Illuminate\Support\Carbon;
|
|
|
|
/**
|
|
* 工单回复
|
|
* Class TicketReply
|
|
*
|
|
* @package App\Http\Models
|
|
* @mixin Eloquent
|
|
* @property int $id
|
|
* @property int $ticket_id 工单ID
|
|
* @property int $user_id 回复人ID
|
|
* @property string $content 回复内容
|
|
* @property Carbon|null $created_at 创建时间
|
|
* @property Carbon|null $updated_at 最后更新时间
|
|
* @property-read User $user
|
|
* @method static Builder|TicketReply newModelQuery()
|
|
* @method static Builder|TicketReply newQuery()
|
|
* @method static Builder|TicketReply query()
|
|
* @method static Builder|TicketReply whereContent($value)
|
|
* @method static Builder|TicketReply whereCreatedAt($value)
|
|
* @method static Builder|TicketReply whereId($value)
|
|
* @method static Builder|TicketReply whereTicketId($value)
|
|
* @method static Builder|TicketReply whereUpdatedAt($value)
|
|
* @method static Builder|TicketReply whereUserId($value)
|
|
*/
|
|
class TicketReply extends Model
|
|
{
|
|
protected $table = 'ticket_reply';
|
|
protected $primaryKey = 'id';
|
|
|
|
function user()
|
|
{
|
|
return $this->hasOne(User::class, 'id', 'user_id');
|
|
}
|
|
} |