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: 3 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,13 @@
"homepage": "https://github.com/laravel-backpack/filemanager",
"keywords": ["Laravel", "FileManager"],
"require": {
"backpack/crud": "^6.0",
"backpack/crud": "^7.0.0-beta",
"barryvdh/laravel-elfinder": "^0.5.2"
},
"require-dev": {
"phpunit/phpunit": "^10.0",
"phpunit/phpunit": "^10.0|^11.0",
"mockery/mockery": "^1.5",
"orchestra/testbench": "^8"
"orchestra/testbench": "^8|^9|^10|^11"
},
"autoload": {
"psr-4": {
Expand Down
18 changes: 13 additions & 5 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,17 +34,25 @@ That's it. Hit refresh in your admin panel, and you'll find a new sidebar item p

You can use elFinder in Backpack:
- stand-alone, by accessing the ```/admin/elfinder``` route (see screenshot above);
- inside the [```browse```](https://backpackforlaravel.com/docs/4.1/crud-fields#browse), [```browse_multiple```](https://backpackforlaravel.com/docs/4.1/crud-fields#browse_multiple) or [```ckeditor```](https://backpackforlaravel.com/docs/4.1/crud-fields#ckeditor) field types;
- inside the [```browse```](https://backpackforlaravel.com/docs/4.1/crud-fields#browse), [```browse_multiple```](https://backpackforlaravel.com/docs/4.1/crud-fields#browse_multiple);

## Customization

You can publish the views to your `resources/views/vendor/backpack/filemanager` folder by running:

```bash
php vendor:publish --provider="Backpack\FileManager\FileManagerServiceProvider" --tag="elfinder-views"
php vendor:publish --provider="Backpack\FileManager\FileManagerServiceProvider" --tag="elfinder-fields"
php vendor:publish --provider="Backpack\FileManager\FileManagerServiceProvider" --tag="elfinder-columns"

```

## Upgrade

To upgrade from v2 to v3 of this package:
To upgrade from v3 to v4 of this package:
```bash
# remove the published blade views
rm -rf resources/views/vendor/elfinder

# publish the new blade views
php artisan backpack:filemanager:install
```

## Security
Expand Down
127 changes: 0 additions & 127 deletions resources/assets/css/elfinder.backpack.theme.css

This file was deleted.

67 changes: 0 additions & 67 deletions resources/views/ckeditor4.blade.php

This file was deleted.

83 changes: 0 additions & 83 deletions resources/views/ckeditor4.php

This file was deleted.

4 changes: 4 additions & 0 deletions resources/views/columns/browse.blade.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
@php
$column['disk'] = $column['disk'] ?? null;
@endphp
@include('crud::columns.upload')
4 changes: 4 additions & 0 deletions resources/views/columns/browse_multiple.blade.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
@php
$column['disk'] = $column['disk'] ?? null;
@endphp
@include('crud::columns.upload_multiple')
40 changes: 23 additions & 17 deletions resources/views/common_scripts.blade.php
Original file line number Diff line number Diff line change
@@ -1,21 +1,27 @@
{{-- jQuery (REQUIRED) --}}
@if (!isset ($jquery) || (isset($jquery) && $jquery == true))
@basset('https://unpkg.com/jquery@3.6.1/dist/jquery.min.js')
@endif
{{-- jQuery (REQUIRED) --}}
@if (!isset ($jquery) || (isset($jquery) && $jquery == true))
@basset('https://cdn.jsdelivr.net/npm/jquery@3.6.1/dist/jquery.min.js', true, [
'integrity' => 'sha384-i61gTtaoovXtAbKjo903+O55Jkn2+RtzHtvNez+yI49HAASvznhe9sZyjaSHTau9',
'crossorigin' => 'anonymous'
])
@endif

{{-- jQuery UI and Smoothness theme --}}
@bassetArchive('https://github.com/jquery/jquery-ui/archive/refs/tags/1.13.2.tar.gz', 'jquery-ui-1.13.2')
@basset('jquery-ui-1.13.2/jquery-ui-1.13.2/dist/themes/smoothness/jquery-ui.min.css')
@basset('jquery-ui-1.13.2/jquery-ui-1.13.2/dist/jquery-ui.min.js')
{{-- jQuery UI and Smoothness theme --}}
@basset('https://raw.githubusercontent.com/jquery/jquery-ui/refs/tags/1.13.2/dist/jquery-ui.min.js', true, [
'integrity' => 'sha384-4D3G3GikQs6hLlLZGdz5wLFzuqE9v4yVGAcOH86y23JqBDPzj9viv0EqyfIa6YUL',
'crossorigin' => 'anonymous'
])

{{-- elFinder JS (REQUIRED) --}}
@bassetArchive('https://github.com/Studio-42/elFinder/archive/refs/tags/2.1.64.tar.gz', 'elfinder-2.1.64')
@basset('elfinder-2.1.64/elFinder-2.1.64/js/elfinder.min.js')
{{-- elFinder JS (REQUIRED) --}}
@basset('https://raw.githubusercontent.com/Studio-42/elFinder/refs/tags/2.1.64/js/elfinder.min.js', true, [
'integrity' => 'sha384-Ow1wKIUQLS9bOa23gn7yT91nyowDhk2zK1lO7G5Hnxlh3bvTPNH7c5uODf7/jIec',
'crossorigin' => 'anonymous'
])

{{-- elFinder translation (OPTIONAL) --}}
@if($locale)
@basset('https://cdnjs.cloudflare.com/ajax/libs/elfinder/2.1.64/js/i18n/elfinder.'.$locale.'.min.js')
@endif
{{-- elFinder translation (OPTIONAL) --}}
@if($locale)
@basset('bp-elfinder-i18n-'.$locale)
@endif

{{-- elFinder sounds --}}
@basset(base_path('vendor/studio-42/elfinder/sounds/rm.wav'))
{{-- elFinder sounds --}}
@basset(base_path('vendor/studio-42/elfinder/sounds/rm.wav'))
Loading