When exporting the models of a polymorphic association the property name is wrong. The skipper internal EntityAlias is correct
abstract class AbstractCompany extends Model
//the relation
public function documents()
{
return $this->morphMany('\App\Models\Document', 'documentable', 'documentabletype', 'documentableid');
}
//the wrong type hint
* @property \Illuminate\Database\Eloquent\Collection $company
//the right type hint should be
* @property \Illuminate\Database\Eloquent\Collection $documents