laravel-filemanager
laravel-filemanager copied to clipboard
Moving to Sub-Folders
Hello,
I am using this config handler to make it so I can have an admin folder with access to all user's folders.
<?php
namespace App\Handlers;
class LfmConfigHandler extends \UniSharp\LaravelFilemanager\Handlers\ConfigHandler
{
public function userField()
{
if( auth()->user()->role_id <= 2 ) {
return 'users';
} else {
return 'users/' . auth()->user()->first_name . '-' . auth()->user()->last_name;
}
}
}
This is making it so that it is impossible to move to sub-folders as an admin since the 'move' menu doesn't show sub-folders of sub-folders. Hopefully we could see more hirarchy in the move menu so we can move to more locations.