| Package Data | |
|---|---|
| Maintainer Username: | vinodraut | 
| Maintainer Contact: | trevor.sawler@gmail.com (Trevor Sawler) | 
| Package Create Date: | 2016-07-12 | 
| Package Last Update: | 2018-05-24 | 
| Home Page: | |
| Language: | PHP | 
| License: | MIT | 
| Last Refreshed: | 2025-10-25 03:01:01 | 
| Package Statistics | |
|---|---|
| Total Downloads: | 188 | 
| Monthly Downloads: | 0 | 
| Daily Downloads: | 0 | 
| Total Stars: | 0 | 
| Total Watchers: | 1 | 
| Total Forks: | 1 | 
| Total Open Issues: | 0 | 
A files and images management user interface with file uploading support. (Works well with CKEditor and TinyMCE)
PR is welcome!
composer update unisharp/laravel-filemanager
php artisan vendor:publish --tag=lfm_view --force
php artisan vendor:publish --tag=lfm_config --force (IMPORTANT: please backup your own config/lfm.php first)


To use events you can add a listener to listen to the events
Snippet for EventServiceProvider
    protected $listen = [
        ImageWasUploaded::class => [
            UploadListener::class,
        ],
    ];
The UploadListener will look like:
class UploadListener
{
    public function handle($event)
    {
        $method = 'on'.class_basename($event);
        if (method_exists($this, $method)) {
            call_user_func([$this, $method], $event);
        }
    }
    public function onImageWasUploaded(ImageWasUploaded $event)
    {
        $path = $event->path();
        //your code, for example resizing and cropping
    }
}
List of events: