add default sorting

This commit is contained in:
2023-01-25 12:43:09 +10:00
parent 28e07ec4bc
commit 371edb7ba6

View File

@@ -14,6 +14,13 @@ class PostFilter extends FilterAbstract
*/
protected $class = '\App\Models\Post';
/**
* Default column sorting (prefix with - for descending)
*
* @var string|array
*/
protected $defaultSort = '-publish_at';
/**
* Determine if the user can view the media model