Skip to content

Document Lifecycle

This page is generated from package source documentation in the Capell packages repository and the checked-in manifest. Source documentation is not distribution status. Before running a Composer command, verify that the exact package and compatible 1.x release are available through public Packagist or the authenticated marketplace account.

FieldValue
Composer packagecapell-app/document-lifecycle
Package slugdocument-lifecycle
Product groupCapell Publishing
Tierpaid
Bundlepublishing
Runtime contextsadmin, console, frontend
Capell version^1.0
Catalogue roleextension
Release channelBeta
Docs sourcepackages/document-lifecycle/docs
Manifestcapell.json

Keep each published version of your policies, terms and contracts, with a record of who accepted it.

Staff add a document in the admin, paste in its text and press Publish version. Each version keeps its exact words and a fingerprint of that text. It can’t be edited or deleted. Once a document has versions, it can be archived but not removed. Compare with previous shows the changed lines and lets you download the full difference. Publishing Studio is needed for Document Lifecycle to run.

Record acceptance logs the signed-in staff member’s acceptance of the latest version. Your site can also send a customer or visitor a private link to read and accept it. With Customer Portal, signed-in customers are offered newer versions of documents they accepted before. Your developer can require signed-in users to accept selected documents before they continue. This is off by default and leaves guests alone. Acceptance records can’t be changed later.

A review date is shown for reference and starts no tasks. The Acceptances tab lets you download a spreadsheet of who accepted each version, or a signed file for one record.

  • Price and availability: Check current availability and price on the Capell Marketplace listing.
  • Licence: Check the licence terms on the Capell Marketplace listing.
  • Requires: PHP ^8.4, capell-app/admin ^1.0.78, capell-app/core ^1.0.78, capell-app/publishing-studio ^1.0.
  • Install: composer require capell-app/document-lifecycle.
  1. Install the package: composer require capell-app/document-lifecycle.
  2. Open the package admin surface at /admin/document-lifecycle/documents and confirm Document Lifecycle is available.

Publication, hashing, acceptance, and re-acceptance rules are implemented as Actions, with Publishing Studio and Customer Portal integrations registered at package boundaries.

  • Configuration files: config/capell-document-lifecycle.php.
  • Commands: php artisan capell:document-lifecycle:archive-expired.
  • Install the required Capell packages at the versions in composer.json: capell-app/admin ^1.0.78, capell-app/core ^1.0.78, capell-app/publishing-studio ^1.0.
  • Run migrations before opening package resources or public routes.
  • Review middleware, throttling, signatures, and public-output safety in routes/web.php before exposing routes.
  • Keep the host Laravel scheduler running so package-registered schedules can execute: capell:document-lifecycle:archive-expired (daily; package registered).
  • Keep public Blade and cached HTML free of authoring markers, model IDs, permissions, signed editor URLs, and lazy database queries.

Controlled documents index

Controlled document edit form

  • Controlled documents index (admin).
  • Controlled document edit form (admin).
  • Document publications relation manager (admin).
  • Document acceptances relation manager (admin).
  • Controlled document publish action (admin).
  • Controlled documents customer portal feed (frontend).
  • Controlled documents index with admin sidebar menu open (admin).
  • Required packages: capell-app/admin, capell-app/core, capell-app/publishing-studio.
  • Admin navigation: declares admin-resource: DocumentResourceContribution; each Filament page or resource controls its own navigation visibility.
  • Admin/editor extensions: none declared.
  • Permissions: ViewAny:Document, View:Document, Create:Document, Update:Document, Delete:Document, DeleteAny:Document, Restore:Document, ForceDelete:Document, Replicate:Document, Reorder:Document; access also governed by package policies: DocumentAcceptancePolicy, DocumentPolicy, DocumentPublicationPolicy.
  • Public routes: loads routes/web.php; registers DocumentAcceptanceRoutesContribution.
  • Database changes: package migrations are declared.
  • Config: config/capell-document-lifecycle.php.
  • Settings: no package settings declared.
  • Queues or schedules: scheduled commands capell:document-lifecycle:archive-expired (daily; package registered).
  • Cache tags: none declared.
  • Commands: capell:document-lifecycle:archive-expired.
SymptomLikely causeCheckFix
Package surface is missing after installProvider or manifest is not loadedConfirm capell.json, package composer.json, and provider registrationReinstall the package, refresh Composer autoload, and clear host caches
Admin screen or command fails on missing tablePackage migrations have not runCheck the tables listed in Data ModelRun host migrations and rerun the focused package test
Route returns unexpected outputRoute cache, middleware, or signed URL setup does not match the package route fileCheck the route files listed in Technical ShapeClear route cache and verify middleware before exposing public routes
Background work does not runQueue worker or declared schedule is not activeCheck the jobs and scheduled commands listed in Technical ShapeStart the queue worker or host scheduler, then run the focused command or package test
Public output leaks unexpected stateRender data, cache variation, or authoring boundary has regressedCheck public Blade, cache tags, and public-output safety testsMove data loading out of Blade and rerun the package public-output tests

No manual steps between minor versions.

Read CHANGELOG.md before upgrading.