Skip to content

The Media System

Media are handled by Spatie’s Laravel Medialibrary package. The media itself is hosted on a S3 compatible object storage (DigitalOcean's "space").

As Spaties' package doesn't allow for a many to many polymorphic associations of media items, those are implemented by the "MediaItem" model and itd related mechanisms.

Provided by the package is the attribution of each media item to a specific “group” (e.g. image, drawing, plan). This fits nicely with the trio system.