Usage
Working with pages, blocks, templates, typed props and attachments.
Usage
OI Laravel Publish revolves around these ideas:
- Pages — recursive
PublishPagemodels forming a content tree. - Blocks — an ordered, flat collection of
PublishBlocks per page. - Templates — code-defined descriptors referenced by
template_key. - Typed props — spatie/laravel-data props for pages and blocks.
- Attachments —
coverandslidesmedia collections.
Resolve models and templates through OiLab\OiLaravelPublish\OiLaravelPublish
so configuration overrides keep working.