Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,16 @@
{
"name": "barryvdh/laravel-elfinder",
"name": "araxteam/laravel-elfinder",
"keywords": ["laravel", "elfinder", "tinymce", "filebrowser"],
"description": "A Laravel Package to integrate elFinder 2",
"license": "MIT",
"authors": [
{
"name": "Barry vd. Heuvel",
"email": "[email protected]"
},
{
"name": "Morteza Najaf Goli Zadeh",
"email": "[email protected]"
}
],
"require": {
Expand Down
2 changes: 1 addition & 1 deletion config/elfinder.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
| The dir where to store the images (relative from public)
|
*/
'dir' => ['files'],
'dir' => [public_path('files')=>'files'],

/*
|--------------------------------------------------------------------------
Expand Down
11 changes: 9 additions & 2 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,17 @@ Files are updated from the a seperate [build repository](https://github.com/barr

### Installation

Require this package with Composer
Begin by installing this package through Composer. Edit your project's composer.json file to require araxteam/laravel-elfinder

"require": {
"araxteam/laravel-elfinder": "dev-master"
}

composer require barryvdh/laravel-elfinder

Next, update Composer from the Terminal:

composer update

Add the ServiceProvider to the providers array in app/config/app.php

```php
Expand Down
6 changes: 3 additions & 3 deletions src/ElfinderController.php
Original file line number Diff line number Diff line change
Expand Up @@ -76,11 +76,11 @@ public function showConnector()
$roots = $this->app->config->get('elfinder.roots', []);
if (empty($roots)) {
$dirs = (array) $this->app['config']->get('elfinder.dir', []);
foreach ($dirs as $dir) {
foreach ($dirs as $key_dir=>$value_dir) {
$roots[] = [
'driver' => 'LocalFileSystem', // driver for accessing file system (REQUIRED)
'path' => public_path($dir), // path to files (REQUIRED)
'URL' => url($dir), // URL to files (REQUIRED)
'path' => $key_dir, // path to files (REQUIRED)
'URL' => url($value_dir), // URL to files (REQUIRED)
'accessControl' => $this->app->config->get('elfinder.access') // filter callback (OPTIONAL)
];
}
Expand Down