Download the PHP package oi-lab/oi-laravel-publish without Composer
On this page you can find all versions of the php package oi-lab/oi-laravel-publish. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package oi-laravel-publish
OI Laravel Publish
Recursive CMS pages with ordered blocks, code-defined templates,
spatie/laravel-data typed props, and oi-lab/oi-laravel-attachments media.
The package ships the data layer only — models, data, form requests, migrations, config and a template registry. It does not ship controllers, routes or views; your application wires the UI.
Requirements
- PHP 8.2+
- Laravel 11, 12, or 13
oi-lab/oi-laravel-attachments(media collections)spatie/laravel-data
Installation
Publish and run the migrations:
Optionally publish the configuration (to customise templates, models, renderers):
Seed the renderer settings into your settings backend:
Settings are read and written through a pluggable SettingStore. Install the
recommended oi-lab/oi-laravel-settings
(listed under suggest) and it is wired automatically — no config needed.
Without it, the package falls back to a generic key/value Setting model
(config('oi-laravel-publish.settings')) or no-ops gracefully. See
Advanced → Settings.
Concepts
| Concept | What it is |
|---|---|
PublishPage |
A recursive page (parent_id → children) owning ordered blocks and a cover. |
PublishBlock |
An ordered block belonging to one page, owning cover + slides. |
PublishTemplate |
A code-defined descriptor (key, type, default props, typed propsClass). Not a DB table. |
PublishTemplateRegistry |
The catalogue of templates, from config + runtime registration. |
PropsData / PropsCast |
Typed, spatie-data props for the JSON props column, ts-compatible. |
Usage
Attachments
Resolving collaborators
Always go through the static resolver so config overrides apply:
Customizing models & templates
Override the models and templates config entries, or register templates at
runtime from a service provider:
Testing
AI Assistant Skills
This package ships an AI assistant skill. Install it into a host app with:
Testing
License
The MIT License (MIT). Please see the License File for more information.
Credits
Olivier Lacombe - Creator and maintainer
Olivier is a Product & Technology Director based in Montpellier, France, with over 20 years of experience innovating in UX/UI and emerging technologies. He specializes in guiding enterprises toward cutting-edge digital solutions, combining user-centered design with continuous optimization and artificial intelligence integration.
Projects & Resources:
- OI Dev Docs - Documentation for all Open Source OI Lab packages
- OnAI - Training courses and masterclasses on generative AI for businesses
- Promptr - Prompt engineering Management Platform
Support
For support, please open an issue on the GitHub repository.
All versions of oi-laravel-publish with dependencies
illuminate/contracts Version ^11.0|^12.0|^13.0
illuminate/database Version ^11.0|^12.0|^13.0
illuminate/http Version ^11.0|^12.0|^13.0
illuminate/support Version ^11.0|^12.0|^13.0
oi-lab/oi-laravel-attachments Version ^1.0
spatie/laravel-data Version ^4.0