belongsTo(Company::class); } /** * @return mixed */ public function client() { return $this->belongsTo(Client::class)->withTrashed(); } public function documents() { return $this->morphMany(Document::class, 'documentable'); } public function user() { return $this->belongsTo(User::class)->withTrashed(); } public function tasks() { return $this->hasMany(Task::class); } public function translate_entity() { return ctrans('texts.project'); } }