unisharp/laravel-filemanager
UniSharp Laravel Filemanager adds a responsive web-based file manager to Laravel apps. Browse, upload, organize and delete files and images, integrate with editors like TinyMCE/CKEditor, configure disks, permissions, and customization options.
Run these lines
composer require unisharp/laravel-filemanager
php artisan vendor:publish --tag=lfm_config
php artisan vendor:publish --tag=lfm_public
php artisan storage:link
Edit APP_URL in .env.
Install package
composer require unisharp/laravel-filemanager
(optional) Install required dependency with v3.* of intervention/image:
This package use intervention/image to perform image cropping/resizing and generating thumbnails. Since v3.* of intervention/image does not support Laravel by default, the service provider need to be installed with the following scripts. Details can be found here: https://github.com/Intervention/image-laravel
composer require intervention/image-laravel
php artisan vendor:publish --provider="Intervention\Image\Laravel\ServiceProvider"
* Do not run these scripts if you use v2.* of intervention/image.
Publish the package's config and assets :
php artisan vendor:publish --tag=lfm_config
php artisan vendor:publish --tag=lfm_public
(optional) Run commands to clear cache :
php artisan route:clear
php artisan config:clear
Ensure that the files & images directories (in config/lfm.php) are writable by your web server (run commands like chown or chmod).
Create symbolic link :
php artisan storage:link
Edit APP_URL in .env.
Edit routes/web.php :
Create route group to wrap package routes.
Route::group(['prefix' => 'laravel-filemanager', 'middleware' => ['web', 'auth']], function () {
\UniSharp\LaravelFilemanager\Lfm::routes();
});
Make sure auth middleware is present to :
make sure database exists
login and visit /laravel-filemanager/demo
composer require unisharp/laravel-filemanager:dev-master to get the latest developer version.Check the integration document to see how to apply this package.
Check the config document to discover the flexibility of this package.
How can I help you explore Laravel packages today?