Andrew 3 месяцев назад
Родитель
Сommit
8fe9fd0398
2 измененных файлов: 2 добавлений и 4 удалений
  1. 1
    2
      app/Filament/Resources/AlbumResource.php
  2. 1
    2
      app/Filament/Resources/NewsResource.php

+ 1
- 2
app/Filament/Resources/AlbumResource.php Просмотреть файл

168
                 ]),
168
                 ]),
169
             ])
169
             ])
170
             ->reorderable('order')
170
             ->reorderable('order')
171
-            ->defaultSort('order')
172
-            ->defaultSort('created_at', 'desc');
171
+            ->defaultSort('order');
173
     }
172
     }
174
 
173
 
175
     public static function getRelations(): array
174
     public static function getRelations(): array

+ 1
- 2
app/Filament/Resources/NewsResource.php Просмотреть файл

268
                 ]),
268
                 ]),
269
             ])
269
             ])
270
             ->reorderable('order')
270
             ->reorderable('order')
271
-            ->defaultSort('order')
272
-            ->defaultSort('created_at', 'desc');
271
+            ->defaultSort('order');
273
     }
272
     }
274
 
273
 
275
     public static function getRelations(): array
274
     public static function getRelations(): array