belongsTo(Company::class); } public function documents() { return $this->morphMany(Document::class, 'documentable'); } public function assigned_user() { return $this->belongsTo(User::class, 'assigned_user_id', 'id')->withTrashed(); } public function user() { return $this->belongsTo(User::class); } public function client() { return $this->belongsTo(Client::class); } public function invoice() { return $this->belongsTo(Invoice::class); } public function project() { return $this->belongsTo(Project::class); } }