Giter Site home page Giter Site logo

Comments (3)

alexusmai avatar alexusmai commented on August 16, 2024

I did not quite understand what you need ..

If you need to show only "products" folder - add a new disk(in config/filesystems.php):

'products' => [
            'driver' => 'local',
            'root' => public_path('files/general/products'), // set here your path
            ...
        ],

And add this disk to file manager config file.

'diskList'  => ['products'],

from laravel-file-manager.

lscavelli avatar lscavelli commented on August 16, 2024

First of all, sorry for the language, use of automatic translators. If I had only one folder I could proceed in the way you indicated, but when you interact with different folders the question changes..
example:
regardless of users, I have to dynamically access and restrict the visibility to a folder before, for which
ex..
general/folder A
general/folder B
general/folder C
........
general/folder N

It would take a way to set the folder to be displayed on the fly ... as an example

^^^^^^^^^^^^^^^^^^^^^
'accessDefaultFolder' => \App\Handlers\FileManagerHandler::class,

in the vendor/package
$folder = config('file-manager.accessDefaultFolder');
if (class_exists($folder)) {
$folder = app()->make($folder)->setFolderName();
}
Access and display only folder, subfolder and files contents ...

^^^^^^^^^^^^^^^^^^^^^
In the my class FileManagerHandler
public function setFolderName() {
return $this->dynamicSystemSetFolder()
// or ... if (..) return .. elseif () return ... etc...
}

from laravel-file-manager.

alexusmai avatar alexusmai commented on August 16, 2024

I do not quite understand what is required. My English is also bad :-).

But I guess you need to read the documentation section of the ACL. Pay special attention to the second example.

from laravel-file-manager.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.