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

[5.3] Support custom primary keys on User model #16438

Merged
merged 1 commit into from
Nov 16, 2016
Merged

[5.3] Support custom primary keys on User model #16438

merged 1 commit into from
Nov 16, 2016

Conversation

amochohan
Copy link
Contributor

@amochohan amochohan commented Nov 16, 2016

Currently the PusherBroadcaster has hardcoded $request()->user()->id which meant I had to add a dynamic accessor on my User model (legacy app shudder) so it had an id attribute.

This looks like an oversight as getKey() is used everywhere else when referring to primary keys on models. This PR fixes brings back that consistency.

@amochohan amochohan changed the title Support custom primary keys on User model [5.3] Support custom primary keys on User model Nov 16, 2016
@taylorotwell taylorotwell merged commit d190a63 into laravel:5.3 Nov 16, 2016
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