Create New Item
Item Type
File
Folder
Item Name
Search file in folder and subfolders...
Are you sure want to rename?
forbidals
/
gambling
/
app
/
Models
:
SupportAttachment.php
Advanced Search
Upload
New Item
Settings
Back
Back Up
Advanced Editor
Save
<?php 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']), ); } }