芝麻web文件管理V1.00
编辑当前文件:/home/qrafawbu/myvyralapp.com/bck/app/Models/UserSupportChat.php
where("user_support_ticket_id",$id); } public function supportTicket() { return $this->belongsTo(UserSupportTicket::class,"user_support_ticket_id"); } public function getSenderImageAttribute() { if($this->sender_type == "ADMIN") { $admin = Admin::find($this->sender); if($admin) { return get_image($admin->image,"admin-profile"); }else { return files_asset_path("default"); } }else if($this->sender_type == "USER"){ return $this->supportTicket->user->userImage; }else if($this->sender_type == "MERCHANT"){ return $this->supportTicket->merchant->userImage; }else if($this->sender_type == "AGENT"){ return $this->supportTicket->agent->agentImage; } return files_asset_path("default"); } }