Skip to content

Filepond ​

File: src/Entities/Filepond.php
Namespace: Unusualify\Modularous\Entities
Extends: Model

Represents a permanent Filepond file upload attached to a model via a polymorphic relationship. Dispatches notification events on create, update, and delete lifecycle hooks.

Fillable Attributes ​

AttributeTypeDescription
uuidstringUUID-based storage path
file_namestringOriginal filename
filepondable_idintParent model ID
filepondable_typestringParent model class
rolestringUpload role (e.g. avatar, attachments, document)
localestringLocale for the upload

Boot Events ​

EventAction
createdDispatches FilepondCreated
updatedDispatches FilepondUpdated
deletedDispatches FilepondDeleted

Relationships ​

filepondable(): MorphTo ​

The parent model this file is attached to.

Methods ​

mediableFormat(): array ​

Returns a frontend-friendly format with uuid, file_name, source (preview URL), created_at, and file info from the FilepondManager.