Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow overwriting of getRelatedModel() method #393

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

lukasleitsch
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant