I have a new Laravel Nova installation with a Property model. Properties have an attribute of 'country' and I want to show a partition metric on the 'country' col.
public function calculate(Request $request)
{
return $this->count($request, Property::class, 'country','country');
}
All works, but it only sorts alphabetically by the country which rather than descending on the count which would make more sense.
Is there any way to sort the output?
from Newest questions tagged laravel-5 - Stack Overflow https://ift.tt/2BRP8AF
via IFTTT
Aucun commentaire:
Enregistrer un commentaire