Download core/app/Models/SupportMessage.php from pnacorp/promptlab: direct link, hf CLI and curl.
- Browser
- Download file 460 Bytes
-
https://huggingface.co/pnacorp/promptlab/resolve/main/core/app/Models/SupportMessage.php
- Command line
-
hf download hf://pnacorp/promptlab/core/app/Models/SupportMessage.php
-
curl -L -o SupportMessage.php https://huggingface.co/pnacorp/promptlab/resolve/main/core/app/Models/SupportMessage.php
460 Bytes
| namespace App\Models; | |
| use Illuminate\Database\Eloquent\Model; | |
| class SupportMessage extends Model | |
| { | |
| public function ticket(){ | |
| return $this->belongsTo(SupportTicket::class, 'support_ticket_id', 'id'); | |
| } | |
| public function admin(){ | |
| return $this->belongsTo(Admin::class, 'admin_id', 'id'); | |
| } | |
| public function attachments() | |
| { | |
| return $this->hasMany(SupportAttachment::class,'support_message_id','id'); | |
| } | |
| } | |