Rivisto il sorting di categorie e tag nel form di modifica di un movimento.

This commit is contained in:
2024-07-23 10:14:01 +00:00
parent 1bdc1b76c6
commit fafb02488e
2 changed files with 3 additions and 2 deletions

View File

@@ -22,7 +22,7 @@ class Categorie extends Model
public static function listCategorieAPI()
{
// return self::select('cat_name')->pluck('cat_name');
return self::all()->sortBy('cat_name');
return Categorie::orderBy('cat_name')->get();
}
public static function listSpesa()
{