芝麻web文件管理V1.00
编辑当前文件:/home/pulsehostuk9/public_html/design.pulsehost.co.uk/application/app/Models/TicketReply.php
belongsTo('App\Models\User', 'ticketreply_creatorid', 'id'); } /** * relatioship business rules: * - the Ticket can have many Replies * - the Reply belongs to one Ticket */ public function ticket() { return $this->belongsTo('App\Models\Ticket', 'ticketreply_ticketid', 'ticket_id'); } /** * relatioship business rules: * - the Ticket reply can have many Attachments * - the Attachment belongs to one Ticket reply * - other Attachments can belong to other tables */ public function attachments() { return $this->morphMany('App\Models\Attachment', 'attachmentresource'); } }