Hi Everyone!
I’ve followed this tutorial and everything went perfect. However, I was wondering how to change the attribute label for the related model (Author in the example).
I tried adding this to PostSearch with no success:
public function attributeLabels()
{
return array_merge(parent::attributeLabels(), ['area.name' => 'Area Name']);
}
Thanks!