Skip to content

Commit a59c4fa

Browse files
committed
feat: Add file visibility control; enhance FilexService and HasFilex trait methods
1 parent 8708e73 commit a59c4fa

File tree

1 file changed

+36
-1
lines changed

1 file changed

+36
-1
lines changed

CHANGELOG.md

Lines changed: 36 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,41 @@
22

33
All notable changes to `laravel-filex` will be documented in this file.
44

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+
540
## v1.0.0 - 2025-07-11
641

742
#### Added
@@ -46,6 +81,6 @@ All notable changes to `laravel-filex` will be documented in this file.
4681
- **Laravel**: ^11.0 || ^12.0
4782
- **Architecture**: Service-oriented with facades and dependency injection
4883
- **Testing**: 129 tests with comprehensive coverage
49-
- **Code Quality**: PHPStan leve
84+
- **Code Quality**: PHPStan level
5085

5186
**Full Changelog**: https://github.com/DevWizardHQ/laravel-filex/commits/1.0.0

0 commit comments

Comments
 (0)