Skip to content

Admin Setup

capell:admin-setup prepares the Capell Admin package and can integrate Capell Admin into a Filament panel without replacing custom panel configuration.

Terminal window
php artisan capell:admin-setup

Use --integration-only when the content, language, theme, and Shield setup has already been handled:

Terminal window
php artisan capell:admin-setup --integration-only --force
OptionDescription
--panel=Panel provider filename, class name, panel ID, relative path, or absolute path
--configurators=auto or comma-separated path=namespace pairs
--no-colorsSkip FilamentColorEnum::colors()
--no-widgetsSkip CapellAdmin::getWidgets()
--no-navigationSkip Capell navigation items and groups
--previewShow the result table without writing the provider
--forceSkip confirmation prompts
--skip-panel-integrationRun only the existing admin content/auth setup

Schema discovery defaults to:

Terminal window
--configurators=Filament/Configurators=App\\Filament\\Configurators

Create a Filament panel first if the command reports no panel providers:

Terminal window
php artisan make:filament-panel admin

Filament panel installation docs: https://filamentphp.com/docs/5.x/panels/installation

If a provider uses a shape the editor cannot safely update, add the same calls manually:

use Capell\Admin\Enums\FilamentColorEnum;
use Capell\Admin\Facades\CapellAdmin;
use Capell\Admin\Filament\Plugin\CapellAdminPlugin;
return $panel
->colors(FilamentColorEnum::colors())
->navigationItems(CapellAdmin::getNavigationItems())
->navigationGroups(CapellAdmin::getNavigationGroups())
->plugin(CapellAdminPlugin::make()
->discoverConfigurators(in: app_path('Filament/Resources'), for: 'App\\Filament\\Resources'))
->widgets([
...CapellAdmin::getWidgets(),
]);

CapellAdminPlugin also registers Capell’s required Filament plugins when they are not already present: Shield, translatable support, and clear-cache. Register one of them yourself only when you need custom configuration before Capell adds its default.

To change the admin URL, configure the panel entrypoint through CAPELL_ADMIN_PATH and CAPELL_ADMIN_DOMAIN rather than hard-coding /admin. See Admin domain and path.

Reruns are idempotent. Existing custom colors are respected, existing Capell extension/widgets/navigation calls are reported as already applied, and custom panel code is left for manual review when needed.

CategoryMeaning
permission_deniedThe provider or backup path cannot be written
parse_errorThe provider PHP could not be parsed
missing_panelNo Filament panel provider was discovered
unsupported_shapeThe panel() method is not a single fluent return chain
existing_conflictExisting code needs manual review before Capell calls can be added
validationCommand input such as --configurators was invalid