barryvdh / laravel-elfinder

elFinder bundle for Laravel
745 stars 171 forks source link

override 'driver' to MyLocalFileSystem #212

Closed webineh closed 6 years ago

webineh commented 6 years ago

hello. i build custom drive how i can replace LocalFileSystem to MyLocalFileSystem in elfinder config ?

webineh commented 6 years ago

i solve it

'roots' => [
    [
        'alias' => 'دیسک محلی',
        'driver' => 'MyLocalFileSystem', 
        'path' => public_path('storage/uploads/source'),
        'URL' =>  env('APP_URL').'storage/uploads/source',
        'tmbCrop'  => true,
        'tmbURL' =>  env('APP_URL').'storage/uploads/thumbs',
        'tmbPath' => public_path('storage/uploads/thumbs'),
        'quarantine' => public_path('storage/uploads/quarantine'),
        'tmbSize'  => 220,
        'utf8fix' => true,
        'cache' => 'session', // 'session', 'memory' or false
    ],  

],