Configuration / User Model
Getting Started
Tickets & Conversations
Automation & Workflows
Email & Notifications
ユーザーモデル
ユーザーモデルはTicketableコントラクトを実装する必要があります。これにより、Escalatedがチケットをユーザーに関連付けることができます。
use Escalated\Laravel\Contracts\HasTickets;
use Escalated\Laravel\Contracts\Ticketable;
class User extends Authenticatable implements Ticketable
{
use HasFactory, HasTickets, Notifiable;
}
HasTicketsトレイトはユーザーモデルにtickets()リレーションとヘルパーメソッドを提供します。