Package Data | |
---|---|
Maintainer Username: | FreedomKnight |
Maintainer Contact: | trevor.sawler@gmail.com (Trevor Sawler) |
Package Create Date: | 2015-07-29 |
Package Last Update: | 2024-08-09 |
Home Page: | https://unisharp.github.io/laravel-filemanager/ |
Language: | PHP |
License: | MIT |
Last Refreshed: | 2024-11-14 15:16:33 |
Package Statistics | |
---|---|
Total Downloads: | 2,624,596 |
Monthly Downloads: | 40,872 |
Daily Downloads: | 1,918 |
Total Stars: | 2,084 |
Total Watchers: | 52 |
Total Forks: | 721 |
Total Open Issues: | 266 |
The alpha version of v2.0
contains support of cloud storage and fresh new UI with RWD.
composer require unisharp/laravel-filemanager:dev-master
to get the latest code.composer require unisharp/laravel-filemanager:v2.0.0-alpha7
to get the latest release of alpha version.https://github.com/UniSharp/laravel-filemanager/tree/v1/docs
We have changed namespace from Unisharp
to UniSharp
, 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.
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', '\UniSharp\LaravelFilemanager\Controllers\LfmController@show');
Route::post('/laravel-filemanager/upload', '\UniSharp\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.