laravel-filemanager icon indicating copy to clipboard operation
laravel-filemanager copied to clipboard

Moving to Sub-Folders

Open LucyTurtle opened this issue 6 years ago • 0 comments

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.

LucyTurtle avatar Feb 13 '19 18:02 LucyTurtle