├── .github └── workflows │ ├── pint.yml │ └── run-tests.yml ├── .gitignore ├── CHANGELOG.md ├── CONTRIBUTING.md ├── LICENSE.md ├── README.md ├── UPGRADING.md ├── art └── socialcard.png ├── composer.json ├── config └── lara-files.php ├── database └── migrations │ ├── create_lara_files_table.php │ └── update_lara_files_to_v2_table.php ├── phpunit.xml.dist ├── src ├── Classes │ ├── AbstractFile.php │ ├── AnotherLaraFile.php │ ├── Base64File.php │ ├── HttpFile.php │ └── LaraFileUploader.php ├── Contracts │ ├── FileHashNameInterface.php │ └── UploadFileInterface.php ├── Exceptions │ ├── FileIsNotBase64EncodedStringException.php │ ├── FileIsNotInstanceOfLaraFileModelException.php │ ├── FileIsNotInstanceOfUploadedFileClassException.php │ ├── FileTypeIsNotPresentedException.php │ ├── UnableToUploadFileException.php │ ├── UnsupportedDiskAdapterException.php │ └── VisibilityIsNotValidException.php ├── LaraFileServiceProvider.php ├── Models │ ├── LaraFile.php │ └── Observers │ │ └── LaraFileObserver.php └── Traits │ ├── CustomProperties.php │ ├── HashNameTrait.php │ ├── LaraFileTrait.php │ └── Sortable.php └── tests ├── ArchTest.php ├── Pest.php ├── TestCase.php ├── TestSupport └── TestModels │ └── TestModel.php └── Unit ├── LaraFileTraitTest.php └── LaraFileUploaderTest.php /.github/workflows/pint.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/djurovicigoor/lara-files/HEAD/.github/workflows/pint.yml -------------------------------------------------------------------------------- /.github/workflows/run-tests.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/djurovicigoor/lara-files/HEAD/.github/workflows/run-tests.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | vendor/ 2 | .idea/ 3 | composer.lock 4 | phpunit.xml -------------------------------------------------------------------------------- /CHANGELOG.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/djurovicigoor/lara-files/HEAD/CHANGELOG.md -------------------------------------------------------------------------------- /CONTRIBUTING.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/djurovicigoor/lara-files/HEAD/CONTRIBUTING.md -------------------------------------------------------------------------------- /LICENSE.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/djurovicigoor/lara-files/HEAD/LICENSE.md -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/djurovicigoor/lara-files/HEAD/README.md -------------------------------------------------------------------------------- /UPGRADING.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/djurovicigoor/lara-files/HEAD/UPGRADING.md -------------------------------------------------------------------------------- /art/socialcard.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/djurovicigoor/lara-files/HEAD/art/socialcard.png -------------------------------------------------------------------------------- /composer.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/djurovicigoor/lara-files/HEAD/composer.json -------------------------------------------------------------------------------- /config/lara-files.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/djurovicigoor/lara-files/HEAD/config/lara-files.php -------------------------------------------------------------------------------- /database/migrations/create_lara_files_table.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/djurovicigoor/lara-files/HEAD/database/migrations/create_lara_files_table.php -------------------------------------------------------------------------------- /database/migrations/update_lara_files_to_v2_table.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/djurovicigoor/lara-files/HEAD/database/migrations/update_lara_files_to_v2_table.php -------------------------------------------------------------------------------- /phpunit.xml.dist: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/djurovicigoor/lara-files/HEAD/phpunit.xml.dist -------------------------------------------------------------------------------- /src/Classes/AbstractFile.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/djurovicigoor/lara-files/HEAD/src/Classes/AbstractFile.php -------------------------------------------------------------------------------- /src/Classes/AnotherLaraFile.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/djurovicigoor/lara-files/HEAD/src/Classes/AnotherLaraFile.php -------------------------------------------------------------------------------- /src/Classes/Base64File.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/djurovicigoor/lara-files/HEAD/src/Classes/Base64File.php -------------------------------------------------------------------------------- /src/Classes/HttpFile.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/djurovicigoor/lara-files/HEAD/src/Classes/HttpFile.php -------------------------------------------------------------------------------- /src/Classes/LaraFileUploader.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/djurovicigoor/lara-files/HEAD/src/Classes/LaraFileUploader.php -------------------------------------------------------------------------------- /src/Contracts/FileHashNameInterface.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/djurovicigoor/lara-files/HEAD/src/Contracts/FileHashNameInterface.php -------------------------------------------------------------------------------- /src/Contracts/UploadFileInterface.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/djurovicigoor/lara-files/HEAD/src/Contracts/UploadFileInterface.php -------------------------------------------------------------------------------- /src/Exceptions/FileIsNotBase64EncodedStringException.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/djurovicigoor/lara-files/HEAD/src/Exceptions/FileIsNotBase64EncodedStringException.php -------------------------------------------------------------------------------- /src/Exceptions/FileIsNotInstanceOfLaraFileModelException.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/djurovicigoor/lara-files/HEAD/src/Exceptions/FileIsNotInstanceOfLaraFileModelException.php -------------------------------------------------------------------------------- /src/Exceptions/FileIsNotInstanceOfUploadedFileClassException.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/djurovicigoor/lara-files/HEAD/src/Exceptions/FileIsNotInstanceOfUploadedFileClassException.php -------------------------------------------------------------------------------- /src/Exceptions/FileTypeIsNotPresentedException.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/djurovicigoor/lara-files/HEAD/src/Exceptions/FileTypeIsNotPresentedException.php -------------------------------------------------------------------------------- /src/Exceptions/UnableToUploadFileException.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/djurovicigoor/lara-files/HEAD/src/Exceptions/UnableToUploadFileException.php -------------------------------------------------------------------------------- /src/Exceptions/UnsupportedDiskAdapterException.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/djurovicigoor/lara-files/HEAD/src/Exceptions/UnsupportedDiskAdapterException.php -------------------------------------------------------------------------------- /src/Exceptions/VisibilityIsNotValidException.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/djurovicigoor/lara-files/HEAD/src/Exceptions/VisibilityIsNotValidException.php -------------------------------------------------------------------------------- /src/LaraFileServiceProvider.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/djurovicigoor/lara-files/HEAD/src/LaraFileServiceProvider.php -------------------------------------------------------------------------------- /src/Models/LaraFile.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/djurovicigoor/lara-files/HEAD/src/Models/LaraFile.php -------------------------------------------------------------------------------- /src/Models/Observers/LaraFileObserver.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/djurovicigoor/lara-files/HEAD/src/Models/Observers/LaraFileObserver.php -------------------------------------------------------------------------------- /src/Traits/CustomProperties.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/djurovicigoor/lara-files/HEAD/src/Traits/CustomProperties.php -------------------------------------------------------------------------------- /src/Traits/HashNameTrait.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/djurovicigoor/lara-files/HEAD/src/Traits/HashNameTrait.php -------------------------------------------------------------------------------- /src/Traits/LaraFileTrait.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/djurovicigoor/lara-files/HEAD/src/Traits/LaraFileTrait.php -------------------------------------------------------------------------------- /src/Traits/Sortable.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/djurovicigoor/lara-files/HEAD/src/Traits/Sortable.php -------------------------------------------------------------------------------- /tests/ArchTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/djurovicigoor/lara-files/HEAD/tests/ArchTest.php -------------------------------------------------------------------------------- /tests/Pest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/djurovicigoor/lara-files/HEAD/tests/Pest.php -------------------------------------------------------------------------------- /tests/TestCase.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/djurovicigoor/lara-files/HEAD/tests/TestCase.php -------------------------------------------------------------------------------- /tests/TestSupport/TestModels/TestModel.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/djurovicigoor/lara-files/HEAD/tests/TestSupport/TestModels/TestModel.php -------------------------------------------------------------------------------- /tests/Unit/LaraFileTraitTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/djurovicigoor/lara-files/HEAD/tests/Unit/LaraFileTraitTest.php -------------------------------------------------------------------------------- /tests/Unit/LaraFileUploaderTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/djurovicigoor/lara-files/HEAD/tests/Unit/LaraFileUploaderTest.php --------------------------------------------------------------------------------