Skip to content
This repository has been archived by the owner on Dec 10, 2018. It is now read-only.

Allow for Route Model Binding #36

Merged
merged 8 commits into from
Feb 12, 2018
Merged

Allow for Route Model Binding #36

merged 8 commits into from
Feb 12, 2018

Conversation

slashequip
Copy link
Contributor

Provides a fix for #32 and allows for Laravel to automagically bind the model using the binary uuid.

@slashequip
Copy link
Contributor Author

Style CI appears to have lost it's mind over a curly brace and I cannot fix the issue!

@brendt
Copy link
Contributor

brendt commented Feb 5, 2018

Thanks! It's a busy week so I'll probably review this next week, I'll keep you posted!

@slashequip
Copy link
Contributor Author

Awesome, thanks @brendt

@brendt
Copy link
Contributor

brendt commented Feb 12, 2018

@slashequip looks very nice! StyleCI does something strange indeed.. No worries, it won't be a blocker for merging this PR, if the problem keeps happening when merged, I'll let StyleCI submit a PR to master to fix it automatically.

There's one thing I'm still worrying about, namely that we're still using two traits, one to add the binary uuid functionality, and one the allow you to override the key name/route binding. @freekmurze what do you think? I know we decided to split this functionality in the beginning of the package, but I don't really see the need to keep these two traits separate.

@brendt brendt self-requested a review February 12, 2018 07:59
@brendt
Copy link
Contributor

brendt commented Feb 12, 2018

We're going to merge this one and handle the trait stuff in another PR.

Thanks @slashequip for the very clean PR!

@brendt brendt merged commit 70a8d93 into spatie:master Feb 12, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants