If the relationship of a model don't follow the default Laravel naming the package can't identify the correct relationship. Therefore, the method identifiableName() is not working:
Issue: #270
The package allow in the config to define an own revision model. My idea is to define a custom revision model and extend the package model. In the custom model I would overwrite the getRelatedModel() to adjust the logic to find the correct relationship.
The PR changes the visibility of the method to allow an overwriting.
If the relationship of a model don't follow the default Laravel naming the package can't identify the correct relationship. Therefore, the method
identifiableName()
is not working:Issue: #270
The package allow in the config to define an own revision model. My idea is to define a custom revision model and extend the package model. In the custom model I would overwrite the
getRelatedModel()
to adjust the logic to find the correct relationship.The PR changes the visibility of the method to allow an overwriting.