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

Reorder soft-deleted records #32

Merged
merged 2 commits into from
Nov 20, 2016
Merged

Reorder soft-deleted records #32

merged 2 commits into from
Nov 20, 2016

Conversation

sebdesign
Copy link
Contributor

Adds the ability to reorder models that use the SoftDeletes trait.

Fixes #31

Adds the ability to reorder models that use the `SoftDeletes` trait.

Fixes #31
*
* @return \Illuminate\Database\Query\Builder
*/
public function scopeAbove(Builder $query, int $position)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't like scopes being added that solely exist for internal working and will not be used publicly. Could you remove these?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sure, I thought these could be handy for public use, but I'll remove them right way.

@freekmurze freekmurze merged commit b5cf0fa into spatie:master Nov 20, 2016
@freekmurze
Copy link
Member

Thanks!

@sebdesign
Copy link
Contributor Author

You're welcome! I owe you a postcard. 📮

@sebdesign sebdesign deleted the soft-deletes-fix branch November 20, 2016 15:18
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