mirror of
https://github.com/VueFileManager/vuefilemanager.git
synced 2026-04-18 08:12:15 +00:00
sorting first commit
This commit is contained in:
@@ -11,6 +11,7 @@ use RecursiveArrayIterator;
|
||||
use RecursiveIteratorIterator;
|
||||
use TeamTNT\TNTSearch\Indexer\TNTIndexer;
|
||||
use \Illuminate\Database\Eloquent\SoftDeletes;
|
||||
use Kyslik\ColumnSortable\Sortable;
|
||||
|
||||
/**
|
||||
* App\FileManagerFolder
|
||||
@@ -61,7 +62,7 @@ use \Illuminate\Database\Eloquent\SoftDeletes;
|
||||
*/
|
||||
class FileManagerFolder extends Model
|
||||
{
|
||||
use Searchable, SoftDeletes;
|
||||
use Searchable, SoftDeletes , Sortable;
|
||||
|
||||
protected $guarded = [
|
||||
'id'
|
||||
@@ -71,6 +72,16 @@ class FileManagerFolder extends Model
|
||||
'items', 'trashed_items'
|
||||
];
|
||||
|
||||
/**
|
||||
* Sortable columns
|
||||
*
|
||||
* @var string[]
|
||||
*/
|
||||
public $sortable = [
|
||||
'name',
|
||||
'created_at',
|
||||
];
|
||||
|
||||
/**
|
||||
* Index folder
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user