├── public
├── files
│ ├── .gitkeep
│ ├── adobe.pdf
│ ├── word.docx
│ └── folder-1
│ │ └── sleeping-dog.jpg
├── images
│ ├── .gitkeep
│ └── test-folder
│ │ ├── sleeping-dog.jpg
│ │ └── thumbs
│ │ └── sleeping-dog.jpg
├── img
│ ├── folder.png
│ ├── 152px color.png
│ ├── 72px color.png
│ ├── 92px color.png
│ ├── Logomark color.png
│ └── loader.svg
├── js
│ ├── filemanager.min.js
│ ├── filemanager.js
│ └── stand-alone-button.js
└── css
│ └── cropper.min.css
├── .styleci.yml
├── PULL_REQUEST_TEMPLATE.md
├── docs
├── Gemfile
├── images
│ ├── lfm01.png
│ ├── lfm02.png
│ ├── lfm03.png
│ ├── square_152.png
│ ├── square_72.png
│ ├── square_92.png
│ ├── logo_mark_black.png
│ ├── logo_mark_white.png
│ ├── screenshots-v2.png
│ ├── logo_mark_colored.png
│ ├── logo_horizontal_black.png
│ ├── logo_horizontal_white.png
│ ├── logo_vertical_black.png
│ ├── logo_vertical_colored.png
│ ├── logo_vertical_white.png
│ └── logo_horizontal_colored.png
├── _config.yml
├── contribution.md
├── upgrade.md
├── security.md
├── customization.md
├── index.md
├── installation.md
└── events.md
├── .gitignore
├── Makefile
├── src
├── Handlers
│ ├── ConfigHandler.php
│ └── LfmConfigHandler.php
├── Controllers
│ ├── DemoController.php
│ ├── Controller.php
│ ├── RedirectController.php
│ ├── DownloadController.php
│ ├── CropController.php
│ ├── UploadController.php
│ ├── FolderController.php
│ ├── DeleteController.php
│ ├── LfmController.php
│ ├── ResizeController.php
│ └── RenameController.php
├── Exceptions
│ ├── ExcutableFileException.php
│ ├── InvalidExtensionException.php
│ ├── EmptyFileException.php
│ ├── DuplicateFileNameException.php
│ ├── FileFailedToUploadException.php
│ ├── InvalidMimeTypeException.php
│ ├── FileSizeExceedConfigurationMaximumException.php
│ └── FileSizeExceedIniMaximumException.php
├── Events
│ ├── FileIsDeleting.php
│ ├── FileIsUploading.php
│ ├── FileWasDeleted.php
│ ├── FileWasUploaded.php
│ ├── ImageIsCropping.php
│ ├── ImageIsDeleting.php
│ ├── ImageIsResizing.php
│ ├── ImageWasCropped.php
│ ├── ImageWasDeleted.php
│ ├── ImageWasResized.php
│ ├── FolderIsCreating.php
│ ├── FolderIsDeleting.php
│ ├── FolderWasCreated.php
│ ├── FolderWasDeleted.php
│ ├── ImageIsUploading.php
│ ├── ImageWasUploaded.php
│ ├── FileIsMoving.php
│ ├── FileWasMoving.php
│ ├── FileIsRenaming.php
│ ├── FileWasRenamed.php
│ ├── FolderIsMoving.php
│ ├── FolderIsRenaming.php
│ ├── FolderWasMoving.php
│ ├── FolderWasRenamed.php
│ ├── ImageIsRenaming.php
│ └── ImageWasRenamed.php
├── Services
│ └── ImageService.php
├── Middlewares
│ ├── CreateDefaultFolder.php
│ └── MultiUser.php
├── LfmStorageRepository.php
├── LaravelFilemanagerServiceProvider.php
└── LfmUploadValidator.php
├── .travis.yml
├── CONTRIBUTING.md
├── resources
├── views
│ ├── use.blade.php
│ ├── tree.blade.php
│ ├── move.blade.php
│ └── crop.blade.php
└── lang
│ ├── he
│ └── lfm.php
│ ├── zh-CN
│ └── lfm.php
│ ├── bg
│ └── lfm.php
│ ├── ar
│ └── lfm.php
│ ├── zh-TW
│ └── lfm.php
│ ├── ja
│ └── lfm.php
│ ├── ka
│ └── lfm.php
│ ├── sv
│ └── lfm.php
│ ├── rs
│ └── lfm.php
│ ├── pt
│ └── lfm.php
│ ├── fa
│ └── lfm.php
│ ├── es
│ └── lfm.php
│ ├── it
│ └── lfm.php
│ ├── tr
│ └── lfm.php
│ ├── eu
│ └── lfm.php
│ ├── da
│ └── lfm.php
│ ├── en
│ └── lfm.php
│ ├── cs
│ └── lfm.php
│ ├── id
│ └── lfm.php
│ ├── sk
│ └── lfm.php
│ ├── pl
│ └── lfm.php
│ ├── bn
│ └── lfm.php
│ ├── fi
│ └── lfm.php
│ ├── vi
│ └── lfm.php
│ ├── az
│ └── lfm.php
│ ├── nl
│ └── lfm.php
│ ├── hu
│ └── lfm.php
│ ├── fr
│ └── lfm.php
│ ├── ro
│ └── lfm.php
│ ├── pt-BR
│ └── lfm.php
│ ├── ru
│ └── lfm.php
│ ├── uk
│ └── lfm.php
│ ├── uz
│ └── lfm.php
│ └── el
│ └── lfm.php
├── phpunit.xml
├── .github
├── ISSUE_TEMPLATE
│ ├── feature_request.md
│ └── bug_report.md
└── ISSUE_TEMPLATE.md
├── LICENSE
├── composer.json
├── tests
└── LfmStorageRepositoryTest.php
└── CODE_OF_CONDUCT.md
/public/files/.gitkeep:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/public/images/.gitkeep:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/.styleci.yml:
--------------------------------------------------------------------------------
1 | preset: psr2
2 |
--------------------------------------------------------------------------------
/PULL_REQUEST_TEMPLATE.md:
--------------------------------------------------------------------------------
1 | #### (optional) Issue number:
2 | #### Summary of the change:
3 |
--------------------------------------------------------------------------------
/docs/Gemfile:
--------------------------------------------------------------------------------
1 | source 'https://rubygems.org'
2 | gem 'github-pages', group: :jekyll_plugins
3 |
--------------------------------------------------------------------------------
/.gitignore:
--------------------------------------------------------------------------------
1 | /vendor
2 | composer.lock
3 | /docs/Gemfile.lock
4 | /docs/_site
5 | .DS_Store
6 | /.idea
7 |
--------------------------------------------------------------------------------
/docs/images/lfm01.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/UniSharp/laravel-filemanager/HEAD/docs/images/lfm01.png
--------------------------------------------------------------------------------
/docs/images/lfm02.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/UniSharp/laravel-filemanager/HEAD/docs/images/lfm02.png
--------------------------------------------------------------------------------
/docs/images/lfm03.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/UniSharp/laravel-filemanager/HEAD/docs/images/lfm03.png
--------------------------------------------------------------------------------
/public/files/adobe.pdf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/UniSharp/laravel-filemanager/HEAD/public/files/adobe.pdf
--------------------------------------------------------------------------------
/public/files/word.docx:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/UniSharp/laravel-filemanager/HEAD/public/files/word.docx
--------------------------------------------------------------------------------
/public/img/folder.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/UniSharp/laravel-filemanager/HEAD/public/img/folder.png
--------------------------------------------------------------------------------
/docs/images/square_152.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/UniSharp/laravel-filemanager/HEAD/docs/images/square_152.png
--------------------------------------------------------------------------------
/docs/images/square_72.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/UniSharp/laravel-filemanager/HEAD/docs/images/square_72.png
--------------------------------------------------------------------------------
/docs/images/square_92.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/UniSharp/laravel-filemanager/HEAD/docs/images/square_92.png
--------------------------------------------------------------------------------
/public/img/152px color.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/UniSharp/laravel-filemanager/HEAD/public/img/152px color.png
--------------------------------------------------------------------------------
/public/img/72px color.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/UniSharp/laravel-filemanager/HEAD/public/img/72px color.png
--------------------------------------------------------------------------------
/public/img/92px color.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/UniSharp/laravel-filemanager/HEAD/public/img/92px color.png
--------------------------------------------------------------------------------
/public/img/Logomark color.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/UniSharp/laravel-filemanager/HEAD/public/img/Logomark color.png
--------------------------------------------------------------------------------
/docs/images/logo_mark_black.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/UniSharp/laravel-filemanager/HEAD/docs/images/logo_mark_black.png
--------------------------------------------------------------------------------
/docs/images/logo_mark_white.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/UniSharp/laravel-filemanager/HEAD/docs/images/logo_mark_white.png
--------------------------------------------------------------------------------
/docs/images/screenshots-v2.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/UniSharp/laravel-filemanager/HEAD/docs/images/screenshots-v2.png
--------------------------------------------------------------------------------
/docs/images/logo_mark_colored.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/UniSharp/laravel-filemanager/HEAD/docs/images/logo_mark_colored.png
--------------------------------------------------------------------------------
/docs/images/logo_horizontal_black.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/UniSharp/laravel-filemanager/HEAD/docs/images/logo_horizontal_black.png
--------------------------------------------------------------------------------
/docs/images/logo_horizontal_white.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/UniSharp/laravel-filemanager/HEAD/docs/images/logo_horizontal_white.png
--------------------------------------------------------------------------------
/docs/images/logo_vertical_black.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/UniSharp/laravel-filemanager/HEAD/docs/images/logo_vertical_black.png
--------------------------------------------------------------------------------
/docs/images/logo_vertical_colored.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/UniSharp/laravel-filemanager/HEAD/docs/images/logo_vertical_colored.png
--------------------------------------------------------------------------------
/docs/images/logo_vertical_white.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/UniSharp/laravel-filemanager/HEAD/docs/images/logo_vertical_white.png
--------------------------------------------------------------------------------
/docs/images/logo_horizontal_colored.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/UniSharp/laravel-filemanager/HEAD/docs/images/logo_horizontal_colored.png
--------------------------------------------------------------------------------
/public/files/folder-1/sleeping-dog.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/UniSharp/laravel-filemanager/HEAD/public/files/folder-1/sleeping-dog.jpg
--------------------------------------------------------------------------------
/public/images/test-folder/sleeping-dog.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/UniSharp/laravel-filemanager/HEAD/public/images/test-folder/sleeping-dog.jpg
--------------------------------------------------------------------------------
/public/images/test-folder/thumbs/sleeping-dog.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/UniSharp/laravel-filemanager/HEAD/public/images/test-folder/thumbs/sleeping-dog.jpg
--------------------------------------------------------------------------------
/Makefile:
--------------------------------------------------------------------------------
1 | test:
2 | vendor/bin/phpunit --coverage-text
3 | vendor/bin/phpcs --version && echo && vendor/bin/phpcs -p --standard=PSR2 --ignore=resources/lang/,resources/views/ src tests
4 |
--------------------------------------------------------------------------------
/src/Handlers/ConfigHandler.php:
--------------------------------------------------------------------------------
1 | id();
10 | }
11 | }
12 |
--------------------------------------------------------------------------------
/src/Controllers/DemoController.php:
--------------------------------------------------------------------------------
1 | message = 'Invalid file detected';
10 | }
11 | }
12 |
--------------------------------------------------------------------------------
/src/Exceptions/InvalidExtensionException.php:
--------------------------------------------------------------------------------
1 | message = 'File extension is not valid.';
10 | }
11 | }
12 |
--------------------------------------------------------------------------------
/src/Exceptions/EmptyFileException.php:
--------------------------------------------------------------------------------
1 | message = trans('laravel-filemanager::lfm.error-file-empty');
10 | }
11 | }
12 |
--------------------------------------------------------------------------------
/src/Exceptions/DuplicateFileNameException.php:
--------------------------------------------------------------------------------
1 | message = trans('laravel-filemanager::lfm.error-file-exist');
10 | }
11 | }
12 |
--------------------------------------------------------------------------------
/src/Exceptions/FileFailedToUploadException.php:
--------------------------------------------------------------------------------
1 | message = 'File failed to upload. Error code: ' . $error_code;
10 | }
11 | }
12 |
--------------------------------------------------------------------------------
/src/Exceptions/InvalidMimeTypeException.php:
--------------------------------------------------------------------------------
1 | message = trans('laravel-filemanager::lfm.error-mime') . $mimetype;
10 | }
11 | }
12 |
--------------------------------------------------------------------------------
/public/js/filemanager.min.js:
--------------------------------------------------------------------------------
1 | window.filemanager=function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"/filemanager",e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"FileManager",i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"width=900,height=600";return new Promise(function(o){window.open(n,e,i),window.SetUrl=o})};
--------------------------------------------------------------------------------
/.travis.yml:
--------------------------------------------------------------------------------
1 | language: php
2 |
3 | php:
4 | - 8.0
5 | - 7.4
6 | - 5.6
7 |
8 | matrix:
9 | fast_finish: true
10 | allow_failures:
11 | - php: 7.4
12 | - php: 5.6
13 |
14 | before_script:
15 | - travis_retry composer self-update
16 | - travis_retry composer install --no-interaction --prefer-source
17 |
18 | script:
19 | - vendor/bin/phpunit --verbose
20 |
--------------------------------------------------------------------------------
/src/Exceptions/FileSizeExceedConfigurationMaximumException.php:
--------------------------------------------------------------------------------
1 | message = trans('laravel-filemanager::lfm.error-size') . $file_size;
10 | }
11 | }
12 |
--------------------------------------------------------------------------------
/src/Exceptions/FileSizeExceedIniMaximumException.php:
--------------------------------------------------------------------------------
1 | message = trans('laravel-filemanager::lfm.error-file-size', ['max' => ini_get('upload_max_filesize')]);
10 | }
11 | }
12 |
--------------------------------------------------------------------------------
/src/Controllers/Controller.php:
--------------------------------------------------------------------------------
1 | path = $path;
12 | }
13 |
14 | /**
15 | * @return string
16 | */
17 | public function path()
18 | {
19 | return $this->path;
20 | }
21 | }
22 |
--------------------------------------------------------------------------------
/src/Events/FileIsUploading.php:
--------------------------------------------------------------------------------
1 | path = $path;
12 | }
13 |
14 | /**
15 | * @return string
16 | */
17 | public function path()
18 | {
19 | return $this->path;
20 | }
21 | }
22 |
--------------------------------------------------------------------------------
/src/Events/FileWasDeleted.php:
--------------------------------------------------------------------------------
1 | path = $path;
12 | }
13 |
14 | /**
15 | * @return string
16 | */
17 | public function path()
18 | {
19 | return $this->path;
20 | }
21 | }
22 |
--------------------------------------------------------------------------------
/src/Events/FileWasUploaded.php:
--------------------------------------------------------------------------------
1 | path = $path;
12 | }
13 |
14 | /**
15 | * @return string
16 | */
17 | public function path()
18 | {
19 | return $this->path;
20 | }
21 | }
22 |
--------------------------------------------------------------------------------
/src/Events/ImageIsCropping.php:
--------------------------------------------------------------------------------
1 | path = $path;
12 | }
13 |
14 | /**
15 | * @return string
16 | */
17 | public function path()
18 | {
19 | return $this->path;
20 | }
21 | }
22 |
--------------------------------------------------------------------------------
/src/Events/ImageIsDeleting.php:
--------------------------------------------------------------------------------
1 | path = $path;
12 | }
13 |
14 | /**
15 | * @return string
16 | */
17 | public function path()
18 | {
19 | return $this->path;
20 | }
21 | }
22 |
--------------------------------------------------------------------------------
/src/Events/ImageIsResizing.php:
--------------------------------------------------------------------------------
1 | path = $path;
12 | }
13 |
14 | /**
15 | * @return string
16 | */
17 | public function path()
18 | {
19 | return $this->path;
20 | }
21 | }
22 |
--------------------------------------------------------------------------------
/src/Events/ImageWasCropped.php:
--------------------------------------------------------------------------------
1 | path = $path;
12 | }
13 |
14 | /**
15 | * @return string
16 | */
17 | public function path()
18 | {
19 | return $this->path;
20 | }
21 | }
22 |
--------------------------------------------------------------------------------
/src/Events/ImageWasDeleted.php:
--------------------------------------------------------------------------------
1 | path = $path;
12 | }
13 |
14 | /**
15 | * @return string
16 | */
17 | public function path()
18 | {
19 | return $this->path;
20 | }
21 | }
22 |
--------------------------------------------------------------------------------
/src/Events/ImageWasResized.php:
--------------------------------------------------------------------------------
1 | path = $path;
12 | }
13 |
14 | /**
15 | * @return string
16 | */
17 | public function path()
18 | {
19 | return $this->path;
20 | }
21 | }
22 |
--------------------------------------------------------------------------------
/src/Events/FolderIsCreating.php:
--------------------------------------------------------------------------------
1 | path = $path;
12 | }
13 |
14 | /**
15 | * @return string
16 | */
17 | public function path()
18 | {
19 | return $this->path;
20 | }
21 | }
22 |
--------------------------------------------------------------------------------
/src/Events/FolderIsDeleting.php:
--------------------------------------------------------------------------------
1 | path = $path;
12 | }
13 |
14 | /**
15 | * @return string
16 | */
17 | public function path()
18 | {
19 | return $this->path;
20 | }
21 | }
22 |
--------------------------------------------------------------------------------
/src/Events/FolderWasCreated.php:
--------------------------------------------------------------------------------
1 | path = $path;
12 | }
13 |
14 | /**
15 | * @return string
16 | */
17 | public function path()
18 | {
19 | return $this->path;
20 | }
21 | }
22 |
--------------------------------------------------------------------------------
/src/Events/FolderWasDeleted.php:
--------------------------------------------------------------------------------
1 | path = $path;
12 | }
13 |
14 | /**
15 | * @return string
16 | */
17 | public function path()
18 | {
19 | return $this->path;
20 | }
21 | }
22 |
--------------------------------------------------------------------------------
/src/Events/ImageIsUploading.php:
--------------------------------------------------------------------------------
1 | path = $path;
12 | }
13 |
14 | /**
15 | * @return string
16 | */
17 | public function path()
18 | {
19 | return $this->path;
20 | }
21 | }
22 |
--------------------------------------------------------------------------------
/src/Events/ImageWasUploaded.php:
--------------------------------------------------------------------------------
1 | path = $path;
12 | }
13 |
14 | /**
15 | * @return string
16 | */
17 | public function path()
18 | {
19 | return $this->path;
20 | }
21 | }
22 |
--------------------------------------------------------------------------------
/src/Controllers/RedirectController.php:
--------------------------------------------------------------------------------
1 | helper->config('disk'));
12 |
13 | if (! $storage->exists($file_path)) {
14 | abort(404);
15 | }
16 |
17 | return response($storage->get($file_path))
18 | ->header('Content-Type', $storage->mimeType($file_path));
19 | }
20 | }
21 |
--------------------------------------------------------------------------------
/src/Events/FileIsMoving.php:
--------------------------------------------------------------------------------
1 | old_path = $old_path;
13 | $this->new_path = $new_path;
14 | }
15 |
16 | /**
17 | * @return string
18 | */
19 | public function oldPath()
20 | {
21 | return $this->old_path;
22 | }
23 |
24 | public function newPath()
25 | {
26 | return $this->new_path;
27 | }
28 | }
29 |
--------------------------------------------------------------------------------
/src/Events/FileWasMoving.php:
--------------------------------------------------------------------------------
1 | old_path = $old_path;
13 | $this->new_path = $new_path;
14 | }
15 |
16 | /**
17 | * @return string
18 | */
19 | public function oldPath()
20 | {
21 | return $this->old_path;
22 | }
23 |
24 | public function newPath()
25 | {
26 | return $this->new_path;
27 | }
28 | }
29 |
--------------------------------------------------------------------------------
/src/Events/FileIsRenaming.php:
--------------------------------------------------------------------------------
1 | old_path = $old_path;
13 | $this->new_path = $new_path;
14 | }
15 |
16 | /**
17 | * @return string
18 | */
19 | public function oldPath()
20 | {
21 | return $this->old_path;
22 | }
23 |
24 | public function newPath()
25 | {
26 | return $this->new_path;
27 | }
28 | }
29 |
--------------------------------------------------------------------------------
/src/Events/FileWasRenamed.php:
--------------------------------------------------------------------------------
1 | old_path = $old_path;
13 | $this->new_path = $new_path;
14 | }
15 |
16 | /**
17 | * @return string
18 | */
19 | public function oldPath()
20 | {
21 | return $this->old_path;
22 | }
23 |
24 | public function newPath()
25 | {
26 | return $this->new_path;
27 | }
28 | }
29 |
--------------------------------------------------------------------------------
/src/Events/FolderIsMoving.php:
--------------------------------------------------------------------------------
1 | old_path = $old_path;
13 | $this->new_path = $new_path;
14 | }
15 |
16 | /**
17 | * @return string
18 | */
19 | public function oldPath()
20 | {
21 | return $this->old_path;
22 | }
23 |
24 | public function newPath()
25 | {
26 | return $this->new_path;
27 | }
28 | }
29 |
--------------------------------------------------------------------------------
/src/Events/FolderIsRenaming.php:
--------------------------------------------------------------------------------
1 | old_path = $old_path;
13 | $this->new_path = $new_path;
14 | }
15 |
16 | /**
17 | * @return string
18 | */
19 | public function oldPath()
20 | {
21 | return $this->old_path;
22 | }
23 |
24 | public function newPath()
25 | {
26 | return $this->new_path;
27 | }
28 | }
29 |
--------------------------------------------------------------------------------
/src/Events/FolderWasMoving.php:
--------------------------------------------------------------------------------
1 | old_path = $old_path;
13 | $this->new_path = $new_path;
14 | }
15 |
16 | /**
17 | * @return string
18 | */
19 | public function oldPath()
20 | {
21 | return $this->old_path;
22 | }
23 |
24 | public function newPath()
25 | {
26 | return $this->new_path;
27 | }
28 | }
29 |
--------------------------------------------------------------------------------
/src/Events/FolderWasRenamed.php:
--------------------------------------------------------------------------------
1 | old_path = $old_path;
13 | $this->new_path = $new_path;
14 | }
15 |
16 | /**
17 | * @return string
18 | */
19 | public function oldPath()
20 | {
21 | return $this->old_path;
22 | }
23 |
24 | public function newPath()
25 | {
26 | return $this->new_path;
27 | }
28 | }
29 |
--------------------------------------------------------------------------------
/src/Events/ImageIsRenaming.php:
--------------------------------------------------------------------------------
1 | old_path = $old_path;
13 | $this->new_path = $new_path;
14 | }
15 |
16 | /**
17 | * @return string
18 | */
19 | public function oldPath()
20 | {
21 | return $this->old_path;
22 | }
23 |
24 | public function newPath()
25 | {
26 | return $this->new_path;
27 | }
28 | }
29 |
--------------------------------------------------------------------------------
/src/Events/ImageWasRenamed.php:
--------------------------------------------------------------------------------
1 | old_path = $old_path;
13 | $this->new_path = $new_path;
14 | }
15 |
16 | /**
17 | * @return string
18 | */
19 | public function oldPath()
20 | {
21 | return $this->old_path;
22 | }
23 |
24 | public function newPath()
25 | {
26 | return $this->new_path;
27 | }
28 | }
29 |
--------------------------------------------------------------------------------
/CONTRIBUTING.md:
--------------------------------------------------------------------------------
1 | ## Steps to contribute
2 | 1. Fork [unisharp/laravel-filemanager](https://github.com/UniSharp/laravel-filemanager) from GitHub.
3 | 1. Run commands below:
4 |
5 | ```
6 | git clone git@github.com:UniSharp/laravel-filemanager-example-5.3.git
7 | cd laravel-filemanager-example-5.3
8 | composer require unisharp/laravel-filemanager:dev-master
9 | make init
10 | ```
11 | 1. Edit codes in `vendor/unisharp/laravel-filemanager`
12 | 1. Push your changes to your fork.
13 | 1. Send a pull request to [unisharp/laravel-filemanager](https://github.com/UniSharp/laravel-filemanager).
14 |
--------------------------------------------------------------------------------
/resources/views/use.blade.php:
--------------------------------------------------------------------------------
1 |
17 |
--------------------------------------------------------------------------------
/phpunit.xml:
--------------------------------------------------------------------------------
1 |
2 |