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

Adds the ability to specify an auth guard, and uses route name resolution for models #41

Merged
merged 4 commits into from
Sep 1, 2020

Conversation

lnpbk
Copy link
Contributor

@lnpbk lnpbk commented Aug 26, 2020

This PR adds 2 things, both relating to the Authorized rule:

  • The ability to specify the auth guard to fetch the user
  • When attempting to find the model, it now uses the resolveRouteBinding method. This was implemented because I was using a UUID as my attribute name.

@freekmurze
Copy link
Member

Thanks, could you also document the changes in the readme?

@lnpbk
Copy link
Contributor Author

lnpbk commented Aug 27, 2020

Sure, I'll get that sorted tomorrow

@freekmurze freekmurze merged commit de65daa into spatie:master Sep 1, 2020
@freekmurze
Copy link
Member

Thanks!

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