FileLibrary Services ​
Directory: src/Services/FileLibrary/
Facade: Unusualify\Modularous\Facades\FileService (bound as fileService)
The FileLibrary namespace provides a storage abstraction for non-image file assets — PDFs, documents, spreadsheets, and other binary files. It mirrors the MediaLibrary pattern with an interface + driver architecture.
Classes ​
| Class | Description | Page |
|---|---|---|
| FileServiceInterface | Contract that all file storage drivers must implement | — |
| FileService | Laravel Facade resolving to the fileService binding | — |
| Disk | Default driver — serves files from a configured Laravel disk | Disk → |
Configuration ​
php
// config/modularous.php
'file_library' => [
'disk' => env('FILE_LIBRARY_DISK', 'public'),
],Facade Usage ​
php
use Unusualify\Modularous\Services\FileLibrary\FileService;
$url = FileService::getUrl($file->uuid);