Skip to content

Instantly share code, notes, and snippets.

@antoniputra
Last active April 18, 2017 08:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save antoniputra/4b1a109beb49598cf440 to your computer and use it in GitHub Desktop.
Save antoniputra/4b1a109beb49598cf440 to your computer and use it in GitHub Desktop.
example laravel-elfinder configuration permission. ( https://github.com/barryvdh/laravel-elfinder )
'roots' => array(
array(
'driver' => 'LocalFileSystem', // driver for accessing file system (REQUIRED)
'path' => public_path() .'/assets', // path to files (REQUIRED)
'URL' => 'http://domain.com/assets',
'alias' => 'Your Assets', // The name to replace your actual path name. (OPTIONAL)
'accessControl' => 'access',
'attributes' => array(
array( // example for lock all dir and file
'pattern'=> '/.+/',
'read' => true,
'write' => false,
'locked' => false,
'hidden' => false
),
array( // example for lock single folder
'pattern' => '!^/images!',
'read' => true,
'write' => false,
'locked' => false,
'hidden' => false
),
array( // example for lock all .jpg files
'pattern' => '/.jpg+/',
'locked' => true
),
array( // example for lock all .png files
'pattern' => '/.png+/',
'locked' => true
),
array( // example for lock all .gif files
'pattern' => '/.gif+/',
'locked' => true
),
)
)
),
@jambari
Copy link

jambari commented Apr 18, 2017

bisa jalan gan permission ini di elfinder ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment