orderBy does not exist laravel code example
Example: Method orderBy does not exist.
You're trying to use orderBy() method on Eloquent collection.
Try to use sortByDesc() instead.
You're trying to use orderBy() method on Eloquent collection.
Try to use sortByDesc() instead.