Last active
April 18, 2017 08:46
-
-
Save antoniputra/4b1a109beb49598cf440 to your computer and use it in GitHub Desktop.
example laravel-elfinder configuration permission. ( https://github.com/barryvdh/laravel-elfinder )
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'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 | |
), | |
) | |
) | |
), |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
bisa jalan gan permission ini di elfinder ?