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

Added fallback on getKey method. #98

Merged
merged 2 commits into from
Nov 2, 2021
Merged

Added fallback on getKey method. #98

merged 2 commits into from
Nov 2, 2021

Conversation

GertjanRoke
Copy link

Hello,

I just implemented this package into my project and my primary key is not id, so this means the person_fn key in the config will not work for me because it looks at the id attribute.
So I added a fallback on the function of Laravel: getKey(), this will look at if the $primaryKey name is changed inside the modal else will send the value from the id attribute.

If you have any question feel free to ask.

@bxsx bxsx self-assigned this Nov 2, 2021
@bxsx bxsx closed this Nov 2, 2021
@bxsx bxsx reopened this Nov 2, 2021
Copy link

@bxsx bxsx left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @GertjanRoke

This is a nice feature. Thanks for the PR 👌

@bxsx bxsx merged commit 8026655 into rollbar:master Nov 2, 2021
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.

2 participants