⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.142
Server IP:
217.76.53.76
Server:
Linux vmi1397931.contaboserver.net 5.4.0-105-generic #119-Ubuntu SMP Mon Mar 7 18:49:24 UTC 2022 x86_64
Server Software:
Apache
PHP Version:
8.2.27
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
www
/
wwwroot
/
biz.gsm.com.ng
/
app
/
Models
/
Edit File: Lead.php
labels) { return Label::whereIn('id', explode(',', $this->labels))->get(); } return false; } public function stage() { return $this->hasOne('App\Models\LeadStage', 'id', 'stage_id'); } public function files() { return $this->hasMany('App\Models\LeadFile', 'lead_id', 'id'); } public function pipeline() { return $this->hasOne('App\Models\Pipeline', 'id', 'pipeline_id'); } public function products() { if($this->products) { return ProductService::whereIn('id', explode(',', $this->products))->get(); } return []; } public function sources() { if($this->sources) { return Source::whereIn('id', explode(',', $this->sources))->get(); } return []; } public function users() { return $this->belongsToMany('App\Models\User', 'user_leads', 'lead_id', 'user_id'); } public function activities() { return $this->hasMany('App\Models\LeadActivityLog', 'lead_id', 'id')->orderBy('id', 'desc'); } public function discussions() { return $this->hasMany('App\Models\LeadDiscussion', 'lead_id', 'id')->orderBy('id', 'desc'); } public function calls() { return $this->hasMany('App\Models\LeadCall', 'lead_id', 'id'); } public function emails() { return $this->hasMany('App\Models\LeadEmail', 'lead_id', 'id')->orderByDesc('id'); } }
Simpan