xuandung38/laravel-filemanager

A file upload/editor intended for use with Laravel 6.x and CKEditor / TinyMCE fix by xuandung38

v2.0.2 2019-11-15 09:20 UTC

README

68747470733a2f2f756e6973686172702e6769746875622e696f2f6c61726176656c2d66696c656d616e616765722f696d616765732f6c6f676f5f766572746963616c5f636f6c6f7265642e706e67

68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f756e6973686172702f6c61726176656c2d66696c656d616e616765722e737667 68747470733a2f2f706f7365722e707567782e6f72672f756e6973686172702f6c61726176656c2d66696c656d616e616765722f646f776e6c6f616473 68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f646d2f7875616e64756e6733382f6c61726176656c2d66696c656d616e616765722e737667 68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f756e6973686172702f6c61726176656c2d66696c656d616e616765722f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572 68747470733a2f2f6170692e636f6465636c696d6174652e636f6d2f76312f6261646765732f65353166326566386634643966393732363864622f6d61696e7461696e6162696c697479 68747470733a2f2f696d672e736869656c64732e696f2f62616467652f756e737461626c652d76322e302e312d6f72616e67652e737667 68747470733a2f2f706f7365722e707567782e6f72672f756e6973686172702f6c61726176656c2d66696c656d616e616765722f762f737461626c65 68747470733a2f2f706f7365722e707567782e6f72672f7875616e64756e6733382f6c61726176656c2d66696c656d616e616765722f6c6963656e7365

DocumentsInstallationIntegrationConfigCustomizationEventsUpgradeDemoFAQ

Installing alpha version

The alpha version of v2.0 contains support of cloud storage and fresh new UI with RWD.

  • Run composer require xuandung38/laravel-filemanager:dev-master to get the latest code.
  • Run composer require xuandung38/laravel-filemanager:v2.0.1 to get the latest release of alpha version.

v2.0 progress

  • (done) Unit test
  • (done) Integrate with Laravel Storage
  • (done) Multiple selection
  • (done) Responsive design
  • (done) Config refactoring
  • (done) JSON APIs
  • (done) Move to folder function
  • (done) Applying MIME icon generator
  • (done) Refactor floating action buttons
  • (done) Configurable disk of storage
  • (done) Bootstrap 4 support
  • (done) Remove bootbox
  • Documents for v2.0
  • (done) Resize function RWD refactor
  • ConfigHandler should overwrite most configs
  • Events should pass object instead of only file path
  • Add more events for files and folders manipulation

Documents of V1

https://github.com/xuandung38/laravel-filemanager/tree/v1/docs

Errors with namespace

We have changed namespace from Xuandung38 to Xuandung38, and change the first character of every namespace into capital.

If you are updating this package and encounter any errors like Class not found, please remove this package entirely and reinstall again.

v1.8 released

  • Please follow the intructions in upgrade document.
  • Important changes :
    • Fix Windows compatibility (utf-8 file names and folder names).
    • New feature : Copy & Crop. Thanks gwleuverink.
    • Config document is refactored.

Security

It is important to note that if you use your own routes you must protect your routes to Laravel-Filemanager in order to prevent unauthorized uploads to your server. Fortunately, Laravel makes this very easy.

If, for example, you want to ensure that only logged in users have the ability to access the Laravel-Filemanager, simply wrap the routes in a group, perhaps like this:

Route::group(['middleware' => 'auth'], function () {
    Route::get('/laravel-filemanager', '\Xuandung38\LaravelFilemanager\Controllers\LfmController@show');
    Route::post('/laravel-filemanager/upload', '\Xuandung38\LaravelFilemanager\Controllers\UploadController@upload');
    // list all lfm routes here...
});

This approach ensures that only authenticated users have access to the Laravel-Filemanager. If you are using Middleware or some other approach to enforce security, modify as needed.

If you use the laravel-filemanager default route, make sure the auth middleware (set in config/lfm.php) is enabled and functional.

Contributors & Credits

Developers / Maintainers

Contributors

Credits

  • @olivervogel for the awesome image library.
  • SVG Loaders by Sam (Licensed MIT)
  • Articles and videos which helped promoting this package.
  • All users and you.