mirror of
https://github.com/ProxyPanel/ProxyPanel.git
synced 2026-04-03 11:09:27 +00:00
35 lines
690 B
PHP
35 lines
690 B
PHP
<?php
|
|
|
|
namespace App\Models;
|
|
|
|
use App\Observers\TicketReplyObserver;
|
|
use Illuminate\Database\Eloquent\Attributes\ObservedBy;
|
|
use Illuminate\Database\Eloquent\Model;
|
|
use Illuminate\Database\Eloquent\Relations\BelongsTo;
|
|
|
|
/**
|
|
* 工单回复.
|
|
*/
|
|
#[ObservedBy([TicketReplyObserver::class])]
|
|
class TicketReply extends Model
|
|
{
|
|
protected $table = 'ticket_reply';
|
|
|
|
protected $guarded = [];
|
|
|
|
public function ticket(): BelongsTo
|
|
{
|
|
return $this->belongsTo(Ticket::class);
|
|
}
|
|
|
|
public function user(): BelongsTo
|
|
{
|
|
return $this->belongsTo(User::class);
|
|
}
|
|
|
|
public function admin(): BelongsTo
|
|
{
|
|
return $this->belongsTo(User::class);
|
|
}
|
|
}
|