iemand002 / filemanager
Multi language file manager package
Installs: 111
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 2
Forks: 1
Open Issues: 0
Language:Blade
Requires
- php: ^8.0.2
- dflydev/apache-mime-types: ^1.0
- illuminate/config: 9.*
- illuminate/database: 9.*
- illuminate/support: 9.*
- intervention/image: ^2.4
- nesbot/carbon: ^2.0
Suggests
- socialiteproviders/dropbox: For Dropbox login and unlocking the integration in de file picker
- socialiteproviders/microsoft-graph: For Microsoft login and unlocking the OneDrive integration in the file picker
- dev-L5.8
- dev-L8.x
- 3.0.0-alpha
- 2.3.2
- 2.3.1
- 2.3.0
- 2.2.3
- 2.2.2
- 2.2.1
- 2.2.0
- 2.1.1
- 2.1.0
- 2.1.0-alpha.7
- 2.1.0-alpha.6
- 2.1.0-alpha.5
- 2.1.0-alpha.4
- 2.1.0-alpha.3
- 2.1.0-alpha.2
- 2.1.0-alpha.1
- 2.1.0-alpha
- 2.0.0
- 1.1.1
- 1.1.0
- 1.0.2
- 1.0.1
- 1.0.0
- 0.3.4
- 0.3.3
- 0.3.2
- 0.3.1
- 0.3
- 0.2
- 0.1
- dev-sidebar-and-ajax
- dev-L9.x
- dev-L6.x/L7.x
- dev-index-view-fix
- dev-master
- dev-dropbox-integration
- dev-L5.5
This package is auto-updated.
Last update: 2024-10-30 01:46:43 UTC
README
- Multi language file manager package based on https://web.archive.org/web/20160425103612/http://laravelcoding.com:80/blog/laravel-5-beauty-upload-manager?tag=L5+Beauty
- Using
intervention/image
to create image transforms (inspired bymatriphe/imageupload
). - Now able to select multiple files at once using localstorage
- Integration with Dropbox for loading files directly from Dropbox
Installation
Requirements
- Laravel
- 5.2 (version 0.x),
- 5.5 (version 1.x/2.0),
- 5.6/5.7/5.8 (version 2.1)
- 6.x/7.x (version 2.2)
- 8.x (version 2.3)
- Twitter Bootstrap 4
- Jquery 3.5
Composer
composer require iemand002/filemanager
Register (when not using autodiscover)
Register the provider in your app.php config
'providers' => [ Iemand002\Filemanager\FilemanagerServiceProvider::class, ], 'aliases' => [ 'Filemanager' => Iemand002\Filemanager\FilemanagerFacade::class, ],
Publish configurations
Configuration file
config/filemanager.php
php artisan vendor:publish --provider="Iemand002\Filemanager\FilemanagerServiceProvider" --tag="config"
Migration file (optional)
2017_12_29_004110_create_image_upload_table.php and 2018_05_12_161010_create_social_logins_table and 2019_02_17_141025_alter_image_upload_table.php
php artisan vendor:publish --provider="Iemand002\Filemanager\FilemanagerServiceProvider" --tag="migration"
Views
vendor/iemand002/filemanager
php artisan vendor:publish --provider="Iemand002\Filemanager\FilemanagerServiceProvider" --tag="views"
Translations
lang/vendor/filemanager
php artisan vendor:publish --provider="Iemand002\Filemanager\FilemanagerServiceProvider" --tag="translations"
Configure Clouds: Dropbox/OneDrive (optional)
This package uses socialiteproviders/dropbox
for the Dropbox login and/or socialiteproviders/graph
. To get it working follow step 2 - 4 from there documentation.
After that add the relation to the Social
model in your User
model:
public function socials() { return $this->hasMany('Iemand002\Filemanager\Models\Social'); }
How to use
Run the migration using php artsan migrate
Just surf to yourwebsite.io/admin/upload
By default it has the web
middleware for Laravel 5.2+.
To change the required middlewares and the prefix change the config file.
Get the url of the uploaded file in your blade template via the uploadId: {{ Filemanager::getUrl(123) }}
If you wish to show a transformed version of an image add the optional $transfromHandle
: {{ Filemanager::getUrl(123, "transformHandle") }}
Get the image width and height via the uploadId: {{ Filemanager::getWidth(123) }}
and {{ Filemanager::getHeight(123) }}
Also compatable with the transform: {{ Filemanager::getWidth(123, "transformHandle") }}
and {{ Filemanager::getHeight(123, "transformHandle") }}
Want to sync earlier uploaded files in the folder with the database? Surf to yourwebsite.io/admin/sync
to add missing files in the database.
Demo
Create a route like the following to see an example usage.
Route::get('demo',function () { return view('iemand002/filemanager::demo.demo'); });
Build-in languages
- Dutch (nl)
- English (en)
TODO
- Find out what's wrong with the graph login, it works, but giving errors sometimes
- Cloud remove reference in database if file is removed from the cloud
- Update views to bootstrap 4
Changelog
2.3.2
Fixed:
- DataTables paging and search not updating picker events
- Breadcrumbs had Dropbox path where it shouldn't
- Fix multi add checkbox logic