We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Hi there, thanks for maintaining this great package!
I'm wondering how can I get all tags sorted by count, I'm currently getting the tags like this:
count
$tags = Song::allTags()->get();
It works, but I'd like to sort the tags by the counter.
The text was updated successfully, but these errors were encountered:
Hello @crysfel
You can use the orderBy() method from Eloquent.
orderBy()
Example:
Song::allTags()->orderBy('count', 'DESC')->get();
Hope it helps.
Sorry, something went wrong.
Thanks for the help! It worked!
No branches or pull requests
Hi there, thanks for maintaining this great package!
I'm wondering how can I get all tags sorted by
count
, I'm currently getting the tags like this:It works, but I'd like to sort the tags by the counter.
The text was updated successfully, but these errors were encountered: