edofre/laravel-file-cleanup

Console command to cleanup your old files in storage

V1.0.0 2020-08-29 14:25 UTC

This package is auto-updated.

Last update: 2024-11-29 06:10:45 UTC


README

Installation

The preferred way to install this extension is through composer.

To install, either run

$ php composer.phar require edofre/laravel-file-cleanup

or add

"edofre/laravel-file-cleanup": "V1.0.0"

to the require section of your composer.json file.

Example command

The following command will remove files older than {days} in the specified {directory} from your {disk}

php artisan db:file-cleanup {directory} {days=14} {disk=local}

Feature requests

  • Tests