'boolean' ]; public function company() { return $this->belongsTo(Company::class); } public function commentable() { return $this->morphTo(); } public function commented() { return $this->morphTo(); } /** * @return $this */ public function approve() { $this->approved = true; $this->save(); return $this; } }