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

add routeKeyName to README #5

Open
hanspagel opened this issue Sep 21, 2016 · 1 comment
Open

add routeKeyName to README #5

hanspagel opened this issue Sep 21, 2016 · 1 comment

Comments

@hanspagel
Copy link

thanks for this tiny little helper. maybe you could add this little snippet to your readme:

public function getRouteKeyName() {
    return 'uid';
}

this ensures implicit binding, find, first etc. work with uid instead of id. seems pretty useful for users of this package. :)

@joelcuevas
Copy link

joelcuevas commented Nov 1, 2016

I made another trait just to add this to all my models, but it would be great to have it by default.

Just made a PR. What do you think, @naabster?

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

No branches or pull requests

2 participants