mirror of
https://github.com/VueFileManager/vuefilemanager.git
synced 2026-04-18 00:02:15 +00:00
namespaces refactoring part 2
This commit is contained in:
@@ -1,6 +1,9 @@
|
||||
<?php
|
||||
namespace Domain\Folders\Models;
|
||||
|
||||
use Database\Factories\FolderFactory;
|
||||
use Domain\Files\Models\File;
|
||||
use Domain\Sharing\Models\Share;
|
||||
use Illuminate\Support\Str;
|
||||
use Laravel\Scout\Searchable;
|
||||
use Kyslik\ColumnSortable\Sortable;
|
||||
@@ -48,6 +51,11 @@ class Folder extends Model
|
||||
|
||||
protected $keyType = 'string';
|
||||
|
||||
protected static function newFactory(): FolderFactory
|
||||
{
|
||||
return FolderFactory::new();
|
||||
}
|
||||
|
||||
public function getTypeAttribute()
|
||||
{
|
||||
return 'folder';
|
||||
|
||||
Reference in New Issue
Block a user