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

Fixes issue with Laravel's new strict mode on models #56

Merged
merged 2 commits into from
Nov 22, 2022

Conversation

totov
Copy link
Contributor

@totov totov commented Nov 2, 2022

Laravel's new strict mode throws an exception when an attribute is attempted to be accessed which has not been set or loaded on a modal.

When assessing whether the pivot attribute is set or not, this package currently directly accesses it, which throws the above exception.

This PR simply swaps out that direct call to the pivot attribute to use isset() instead, which avoids throwing the above exception.

@michaeldyrynda michaeldyrynda merged commit 6869954 into michaeldyrynda:main Nov 22, 2022
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.

None yet

2 participants