CLI Commands

Files

Cleaning Files

The files:clean command removes file entries from the database that do not have a matching filesystem resource.

Use --force to apply deletions and skip the dry-run.

php artisan files:clear --force

files:sync

The files:sync command removes creates file entries for filesystem resources that do not exist in the database.

Use --force to apply updates and skip the dry-run.

php artisan files:sync --force