Skip to content

Install Capell beside Voyager

Draft — seeded installation and Capell admin smoke checks verified; content import and rollback not yet verified.

Prepare the replacement CMS while keeping application-owned tables and behaviour intact.

A pinned compatible Laravel/PHP release, a source backup, storage snapshot, destination backup, tested restore and the required package entitlements. Upgrade the framework separately from changing content rendering.

Keep Voyager source tables available to the importer without loading Voyager PHP classes on the new framework. Install the receiving site, layouts and blueprints, then the optional importer packages and their declared dependencies. Keep custom checkout and account code on its existing tables.

The dependency and preview steps below were run from the receiving application’s root on disposable data using released Admin, Frontend and Installer v1.0.76, Laravel 13 and PHP 8.4. Both the source and receiving application used MariaDB 10.11.19. Installation subsequently passed with the unreleased ownership and package-table naming fixes. Rollback is not yet verified.

First add the three packages to the application’s Composer requirements at the compatible release you have selected. The rehearsal used ^1.0.76. With that manifest change in place, the following command installed the dependencies successfully (exit 0):

Terminal window
composer update capell-app/admin capell-app/frontend capell-app/installer --with-all-dependencies --no-scripts --prefer-dist --no-interaction --no-progress

Review the lockfile before committing it. Additional dependencies are expected; check changes to existing packages separately. If resolution stops at an old VCS repository that no required package or application caller uses, remove that unused repository entry. Do not change authentication permissions to access an unused repository. --no-scripts defers application boot hooks; it does not complete the installer.

Publish Capell Admin’s configuration before using the new user model on the web:

Terminal window
php artisan vendor:publish --tag=capell-admin-config --no-interaction

This completed with exit 0. The shipped filament-shield.php configuration sets panel_user.enabled to false, preventing registration from automatically granting panel membership. Keep the application’s existing customer IDs and password hashes; give legacy role relationships a distinct name before adding Spatie’s HasRoles trait. Review the installer’s user-model and runtime-bootstrap patches against the actual application instead of overwriting custom code.

Preview installation with an existing seeded administrator account. The address below belongs to the disposable fixture; use your own seeded account:

Terminal window
php artisan capell:install --packages=capell-app/admin,capell-app/frontend --table-prefix=capell_ --theme=none [email protected] --no-seed-default-data --no-interaction --plan

The preview exited 0 and printed Capell Install Plan, the selected existing administrator and the lifecycle steps. It explicitly reported that no installation changes had been applied. Customised user and bootstrap files were reported as requiring manual changes. Resolve those changes and review the table plan before applying installation. A successful preview is not proof that migrations ran. The completed rehearsal used the continuation below after resolving its installation prerequisites.

This rehearsal required the migration ownership and package table-naming changes in Core PR 1094 and Packages PR 1927. Released v1.0.76 dependencies alone did not complete Voyager coexistence. Confirm that the build you use contains those changes; this result does not establish that an older release is ready to deploy.

After changing the downloaded package set, refresh Capell’s manifest cache:

Terminal window
php artisan capell:package-cache

This exited 0. Laravel package discovery alone had left the old Capell manifest cache in place, hiding an installed dependency from the installation planner.

Continue with the saved table configuration. The rehearsal’s downloaded package set contained only its approved migration dependencies, so its continuation was:

Terminal window
php artisan capell:install --all-packages [email protected] --no-interaction

This exited 0 and passed the install health summary: required tables, seed data, default theme and layouts, homepage resolution, runtime isolation and admin access. Do not use --fresh to resume a partial installation. Review the installed package set before using --all-packages.

A legacy Mix application needs a Vite configuration and a frontend CSS entry for Capell. Keep its existing build pipeline available. The rehearsal added a separate build:capell script invoking vite build, then verified:

Terminal window
npm run build:capell

The build exited 0. The configured CSS inputs included the admin theme and resources/css/app.css, importing the generated Capell frontend CSS.

Open the receiving admin and sign in with the seeded administrator. Sign-in, Dashboard, Pages and Settings were verified in a real browser. This proves the receiving admin works on the seeded database; it does not prove source-content counts, page parity or production readiness.

Capell: installed site dashboard with the chosen site visible. Screenshots must not include customer activity.

Screenshots are not yet captured or accepted. Do not substitute screenshots from a live site or an unrelated workflow.

Prove installation against both a fresh schema and a schema containing the legacy table names. Compare source schema and data before and after. The rehearsal retained the source content tables and every original user field; Capell added its own user preference columns. Full content reconciliation is not yet verified.

The verification command and expected output are not yet verified.

Stop on an unresolved table collision, unsupported host user key type or missing entitlement. Do not rename legacy tables to get past an installer failure.

An existing table that Capell should take over, such as a Laravel authentication log already holding the agreed history, is not a collision: list it in capell.database.adopted_tables beside its alias. A same-named Voyager settings migration in the migration history does not stand in for Spatie’s settings table; the publisher now checks that the configured table exists.

Run every installer step in a clean environment pinned to the target database. Container-level DB_* or APP_NAME variables override .env in child processes; a real rehearsal wrote admin setup rows into the wrong database until the steps received only an allow-listed environment.

Restore the destination database and release together. Keep the source and its files unchanged; do not remove source tables as part of installation.

Return to the migration chapter list.