Skip to content

Commit

Permalink
Merge pull request #30 from eldor/master
Browse files Browse the repository at this point in the history
 Added order variable as a .env variable
  • Loading branch information
Krato authored Feb 26, 2019
2 parents 3cfec35 + 13474fc commit 57c792f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,13 @@ Nova Filemanager works with [Laravel Flysystem](https://github.com/GrahamCampbel
FILEMANAGER_DISK=public
```

To change the order of directories customize `FILEMANAGER_ORDER` variable in your `.env` file:


```env
FILEMANAGER_ORDER=mime
```

### Tool Usage

Click on the "FileManager" menu item in your Nova app to see the Filemanager Tool
Expand Down
2 changes: 1 addition & 1 deletion src/Http/Services/FileManagerService.php
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ public function ajaxGetFilesAndFolders(Request $request)

$order = $request->get('sort');
if (! $order) {
$order = 'mime';
$order = env('FILEMANAGER_ORDER', 'mime');
}
$filter = $request->get('filter');
if (! $filter) {
Expand Down

0 comments on commit 57c792f

Please sign in to comment.