Download core/app/Models/SupportAttachment.php from pnacorp/codeplus: direct link, hf CLI and curl.
- Browser
- Download file 492 Bytes
-
https://huggingface.co/pnacorp/codeplus/resolve/main/core/app/Models/SupportAttachment.php
- Command line
-
hf download hf://pnacorp/codeplus/core/app/Models/SupportAttachment.php
-
curl -L -o SupportAttachment.php https://huggingface.co/pnacorp/codeplus/resolve/main/core/app/Models/SupportAttachment.php
492 Bytes
| namespace App\Models; | |
| use Illuminate\Database\Eloquent\Casts\Attribute; | |
| use Illuminate\Database\Eloquent\Model; | |
| class SupportAttachment extends Model | |
| { | |
| protected $appends = ['encrypted_id']; | |
| public function supportMessage() | |
| { | |
| return $this->belongsTo(SupportMessage::class,'support_message_id'); | |
| } | |
| public function encryptedId(): Attribute | |
| { | |
| return new Attribute( | |
| get: fn () => encrypt($this->attributes['id']), | |
| ); | |
| } | |
| } | |