san4o101/upload-files

Upload files package

Maintainers

Package info

github.com/alexsyvolap/uploadFiles

pkg:composer/san4o101/upload-files

Statistics

Installs: 18

Dependents: 0

Suggesters: 0

Stars: 0

Open Issues: 0

dev-master 2020-11-06 12:42 UTC

This package is auto-updated.

Last update: 2026-03-05 19:32:50 UTC


README

Deleting files

  • You can delete file in database with file in folder.
    • SFile::query()->where('id', '=', 1)->first()->delete()
    • SFile::query()->where('id', '=', 1)->first()->forceDelete()
    • SFile::query()->find(1)->first()->forceDelete()

Install

  • php artisan vendor:publish
  • php artisan config:clear or php artisan config:cache

Service

  • UploadFileService

Model

  • SFile

Config

  • You can change validation setting in configuration file
  • You can change length file random name