Skip to content

Conversation

MajidMohammadian
Copy link

No description provided.

@taylorotwell
Copy link
Member

You could just just call orderByPivot within this method.

@taylorotwell taylorotwell marked this pull request as draft August 20, 2025 18:53
*/
public function orderByPivotDesc($column)
{
return $this->orderBy($this->qualifyPivotColumn($column), 'desc');
Copy link
Contributor

Choose a reason for hiding this comment

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

you can replace it with

return $this->orderByPivot($column, 'desc');

Copy link
Author

Choose a reason for hiding this comment

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

This is also logical.

@MajidMohammadian
Copy link
Author

I think since we have a method called orderByDesc, we can also have a method called orderByPivotDesc, what do you think is the problem?

I was exactly trying to use this as desc somewhere in my code.

@MajidMohammadian
Copy link
Author

I think it makes sense to have such a method.
@taylorotwell

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.

3 participants