Releases: MasterRO94/laravel-file-cleaner
Tests and bug fixing
Added tests and fixed some important bugs
Violation fix
appended new lines to files to fix violations
Important fix
fix wrong Model import, remove check for runningInConsole
to add ability to call command with Artisan::call()
facade
Check for Relation feature
A new config added: relation
Now you can delete files and associated model instances if there is no attached relation
For example you have File
model and File::entity()
relation, so if $file->entity
returns null or empty collection only then file and db row will be deleted
Command auto-registration
Now Artisan command registers automatically
Added support of Laravel 5.3, 5.4, 5.5
Added support of Laravel 5.3, 5.4, 5.5
Added package auto-discovery for Laravel 5.5
Add excluds support
Add excluded directories and excluded files support to configurate file cleaning more elastic.
Add overrides config command options
Add overrides config command options on the fly.
Also add remove_directories config that allows to choose remove nested directories or not
Add Laravel 5.1 Support
Add Laravel 5.1 Support (Before only Laravel 5.2 was supported)