|
2 | 2 |
|
3 | 3 | All notable changes to `laravel-filex` will be documented in this file. |
4 | 4 |
|
| 5 | +## v1.1.0 - 2025-07-11 |
| 6 | + |
| 7 | +#### Added |
| 8 | + |
| 9 | +- 🔐 **File Visibility Control**: Added support for controlling file visibility when moving from temporary to permanent storage |
| 10 | + - Files can be set as `public` (accessible by anyone with URL) or `private` (only accessible through authorized requests) |
| 11 | + - Default visibility is configurable via `FILEX_DEFAULT_VISIBILITY` environment variable (defaults to `public`) |
| 12 | + - Enhanced `moveFiles()` and `moveFile()` methods in FilexService to accept optional `$visibility` parameter |
| 13 | + - Updated Filex facade with visibility support and convenience methods: |
| 14 | + - `moveFileWithVisibility()` - Move single file with specific visibility |
| 15 | + - `moveFilesWithVisibility()` - Move multiple files with specific visibility |
| 16 | + - `moveFilePublic()` - Move single file as public |
| 17 | + - `moveFilePrivate()` - Move single file as private |
| 18 | + - `moveFilesPublic()` - Move multiple files as public |
| 19 | + - `moveFilesPrivate()` - Move multiple files as private |
| 20 | + - Enhanced HasFilex trait with visibility control methods: |
| 21 | + - `moveFileWithVisibility()` - Move single file with specific visibility |
| 22 | + - `moveFilesWithVisibility()` - Move multiple files with specific visibility |
| 23 | + - `moveFilePublic()` - Convenience method for public files |
| 24 | + - `moveFilePrivate()` - Convenience method for private files |
| 25 | + - `moveFilesPublic()` - Convenience method for multiple public files |
| 26 | + - `moveFilesPrivate()` - Convenience method for multiple private files |
| 27 | + - Backward compatibility maintained - existing code continues to work without changes |
| 28 | + |
| 29 | +#### Configuration |
| 30 | + |
| 31 | +- Added `storage.visibility.default` configuration option to set default file visibility |
| 32 | +- Environment variable `FILEX_DEFAULT_VISIBILITY` for easy deployment configuration |
| 33 | + |
| 34 | +#### Documentation |
| 35 | + |
| 36 | +- Updated README with comprehensive file visibility control examples |
| 37 | +- Added usage examples for controllers showing public/private file handling |
| 38 | +- Documented all new methods and configuration options |
| 39 | + |
5 | 40 | ## v1.0.0 - 2025-07-11 |
6 | 41 |
|
7 | 42 | #### Added |
@@ -46,6 +81,6 @@ All notable changes to `laravel-filex` will be documented in this file. |
46 | 81 | - **Laravel**: ^11.0 || ^12.0 |
47 | 82 | - **Architecture**: Service-oriented with facades and dependency injection |
48 | 83 | - **Testing**: 129 tests with comprehensive coverage |
49 | | -- **Code Quality**: PHPStan leve |
| 84 | +- **Code Quality**: PHPStan level |
50 | 85 |
|
51 | 86 | **Full Changelog**: https://github.com/DevWizardHQ/laravel-filex/commits/1.0.0 |
0 commit comments