mirror of
https://github.com/VueFileManager/vuefilemanager.git
synced 2026-04-19 16:32:15 +00:00
added folder resource
This commit is contained in:
@@ -48,7 +48,6 @@ class Folder extends Model
|
||||
protected $appends = [
|
||||
'items',
|
||||
'trashed_items',
|
||||
'type',
|
||||
];
|
||||
|
||||
protected $casts = [
|
||||
@@ -74,11 +73,6 @@ class Folder extends Model
|
||||
return FolderFactory::new();
|
||||
}
|
||||
|
||||
public function getTypeAttribute(): string
|
||||
{
|
||||
return 'folder';
|
||||
}
|
||||
|
||||
/**
|
||||
* Index folder
|
||||
*/
|
||||
@@ -122,17 +116,6 @@ class Folder extends Model
|
||||
return $folders + $files;
|
||||
}
|
||||
|
||||
/**
|
||||
* Format created at date reformat
|
||||
*/
|
||||
public function getCreatedAtAttribute(): string
|
||||
{
|
||||
return format_date(
|
||||
set_time_by_user_timezone($this->attributes['created_at']),
|
||||
__t('time')
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* Format deleted at date reformat
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user