laravel-file-manager

File manager for Laravel

MIT License

Downloads
532.5K
Stars
1.1K
Committers
7

Bot releases are hidden (Show)

laravel-file-manager - Laravel 11 support Latest Release

Published by alexusmai 5 months ago

Deleted - intervention/imagecache (Abandoned)

delete from config - config/file-manager.php

     /**
     * Image cache ( Intervention Image Cache )
     *
     * set null, 0 - if you don't need cache (default)
     * if you want use cache - set the number of minutes for which the value should be cached
     */
    'cache'             => null,

Updated - Intervention/image to v3 ( used - https://github.com/Intervention/image-laravel)

laravel-file-manager - Laravel 10 support

Published by alexusmai over 1 year ago

laravel-file-manager - v3.0.1

Published by alexusmai over 2 years ago

Laravel 9 support... ONLY!

Vue.js 3
Bootstrap 5
Bootstrap Icons

laravel-file-manager -

Published by alexusmai over 4 years ago

You can change Route prefix (default - 'file-manager')

/**
 * LFM Route prefix
 * !!! WARNING - if you change it, you should compile frontend with new prefix(baseUrl) !!!
 */
'routePrefix' => 'file-manager',

Open PDF files in a new tab (test) - use 'double-click'

laravel-file-manager -

Published by alexusmai almost 5 years ago

Turkish language - thanks for cagrig
Changed date format - now the date is formed using a setted locale.
Fixed - file size calculation

laravel-file-manager - v2.4.8

Published by alexusmai almost 5 years ago

Fixed - cropped image size (jpeg)

laravel-file-manager -

Published by alexusmai almost 5 years ago

  • Show / Hide system files and folders - in a config file you can set default value, but you can change this settings from FM manualy (added new button), without saving

config/file-manager.php

'hiddenFiles' => true,
  • Added edditing json and log files in text editor. (Be careful with json! invalid json will then be difficult to fix )

  • Now you don't need to install helper package for laravel 6 - laravel/helpers

Upgrading

You need to update you config file manualy (add new setting) or you can make --force updating, but make backup your settings first

// config
php artisan vendor:publish --tag=fm-config --force
// js, css
php artisan vendor:publish --tag=fm-assets --force

If you are implementing ConfigRepository - add new method in your class

/**
     * Show / Hide system files and folders
     *
     * @return bool
     */
    public function getHiddenFiles(): bool
    {
        return config('file-manager.hiddenFiles');
    }
laravel-file-manager - v2.4.4

Published by alexusmai about 5 years ago

Added German language

laravel-file-manager - v2.4.3

Published by alexusmai about 5 years ago

Laravel 6

For Laravel 6 - You need to install - String & Array Helpers Package

composer require laravel/helpers
laravel-file-manager - v2.4.2

Published by alexusmai about 5 years ago

Pull request - Added TinyMCE v5 integration and czech translation.
Fixed issue - Select a file from mouse context menu not working #57

laravel-file-manager -

Published by alexusmai over 5 years ago

Fixed installation issue

laravel-file-manager -

Published by alexusmai over 5 years ago

Now you can create your own config repositories, it will allow to change your configuration dynamically.

How to do it:

Create new class - example - TestConfigRepository

namespace App\Http;

use Alexusmai\LaravelFileManager\Services\ConfigService\ConfigRepository;

class TestConfigRepository implements ConfigRepository
{
    // implement all methods from interface
}

For example see src/Services/ConfigService/DefaultConfigRepository.php

  • Added Serbian language (aleks989 )
  • fix bug with S3, creating a new folder with ACL
  • added 'maxUploadFileSize' param in to config - Max file size in KB (File uploading)
  • added 'allowFileTypes' param in to config - Allowed file types for uploading

Upgrading to version 2.4

Update pre-compiled css and js files and config file - file-manager.php

// config
php artisan vendor:publish --tag=fm-config --force
// js, css
php artisan vendor:publish --tag=fm-assets --force

If you use the ACL, now you don't need to add the acl middleware to configuration.

//======= In old versions ==========
'acl' => true,

// add acl middleware to your array
'middleware' => ['web', 'fm-acl'],

//======= In a new version =========
'acl' => true,

'middleware' => ['web'],
laravel-file-manager -

Published by alexusmai over 5 years ago

Thumbnails lazy load.
Thumbnails and image preview - loading with Authorization heder.

laravel-file-manager - v2.3.0

Published by alexusmai over 5 years ago

In new version you can set default disk and default path

You have two variants for how to do it:

  1. Add this params to the config file (config/file-manager.php)
    2 Or you can add this params in URL
http://site.name/?leftDisk=diskName&leftPath=directory
http://site.name/?leftDisk=diskName&leftPath=directory2&rightDisk=diskName2&rightPath=images

leftDisk and leftPath is default for the file manager windows configuration - 1,2

Upgrading to version 2.3

Update pre-compiled css and js files and config file - file-manager.php

// config
php artisan vendor:publish --tag=fm-config --force
// js, css
php artisan vendor:publish --tag=fm-assets --force

You can update the config file manually - add new params:

/**
 * Default path for left manager
 * null - root directory
 */
'leftPath'  => null,

/**
 * Default path for right manager
 * null - root directory
 */
'rightPath' => null,
laravel-file-manager - v2.2.3

Published by alexusmai over 5 years ago

  • added timestamp to images - image updating after cropping

  • file properties - GetUrl - return full URL (see laravel docs)

  • file properties - copy to clippboard - disk, file name, path, url, size, date.

laravel-file-manager - Events

Published by alexusmai over 5 years ago

Events

  • Alexusmai\LaravelFileManager\Events\DiskSelected
  • Alexusmai\LaravelFileManager\Events\FilesUploading
  • Alexusmai\LaravelFileManager\Events\FilesUploaded
  • Alexusmai\LaravelFileManager\Events\Deleting
  • Alexusmai\LaravelFileManager\Events\Deleted
  • Alexusmai\LaravelFileManager\Events\Paste
  • Alexusmai\LaravelFileManager\Events\Rename
  • Alexusmai\LaravelFileManager\Events\Download
  • Alexusmai\LaravelFileManager\Events\DirectoryCreating
  • Alexusmai\LaravelFileManager\Events\DirectoryCreated
  • Alexusmai\LaravelFileManager\Events\FileCreating
  • Alexusmai\LaravelFileManager\Events\FileCreated
  • Alexusmai\LaravelFileManager\Events\FileUpdate

Upgrading to version 2.2

src/ACLService folder and src/TransferService folder moved in src/Services folder

If you using ACL change namespace in config file for 'aclRepository'

// From
'aclRepository' => Alexusmai\LaravelFileManager\ACLService\ConfigACLRepository::class,

// To
'aclRepository' => Alexusmai\LaravelFileManager\Services\ACLService\ConfigACLRepository::class,

if you create your own repository for ACL rules, don't be forget change namespace to:

// From
Alexusmai\LaravelFileManager\ACLService;

// To
Alexusmai\LaravelFileManager\Services\ACLService;
laravel-file-manager - ACL system

Published by alexusmai over 5 years ago

ACL - access control list

  • delimiting access to files and folders
  • two work strategies:
    • blacklist - Allow everything that is not forbidden by the ACL rules list
    • whitelist - Deny everything, that not allowed by the ACL rules list
  • You can use different repositories for the rules - an array (configuration file), a database (there is an example implementation), or you can add your own.
  • You can hide files and folders that are not accessible.
laravel-file-manager - Version 2

Published by alexusmai over 5 years ago

New features:

  • Creating files
  • Audio player (mp3, ogg, wav, aac), Video player (webm, mp4) - (Plyr)
  • Code editor - (Code Mirror)
  • Image cropper - (Cropper.js)
  • Zip / Unzip - only for local disks
laravel-file-manager - 1.0.0-alpha release

Published by alexusmai over 6 years ago

Pre-release

Package Rankings
Top 0.89% on Packagist.org
Top 8.17% on Proxy.golang.org
Badges
Extracted from project README
Latest Stable Version Total Downloads Latest Unstable Version License PHP Version Require
Related Projects