mirror of
https://github.com/VueFileManager/vuefilemanager.git
synced 2026-04-26 10:30:38 +00:00
namespaces refactoring part 2
This commit is contained in:
@@ -2,11 +2,9 @@
|
||||
namespace Domain\Folders\Controllers;
|
||||
|
||||
use Illuminate\Http\Request;
|
||||
use Domain\Settings\Models\Folder;
|
||||
use App\Http\Controllers\Controller;
|
||||
use Illuminate\Support\Facades\Auth;
|
||||
use Illuminate\Support\Facades\Validator;
|
||||
use Domain\SetupWizard\Services\DemoService;
|
||||
use Support\Demo\Actions\DemoService;
|
||||
|
||||
class FavouriteController extends Controller
|
||||
{
|
||||
|
||||
@@ -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