Forge Admin
Overview
Register models with the admin system to get a full CRUD web UI. This skill focuses on admin registration, configuration, and routing.
When to Use
- •The task mentions admin registration, list display, search, filters, or admin routes.
- •You need CRUD admin screens for Forge models.
- •The user asks about
/adminsetup or admin UI behavior.
Quick Start
- •Register your model with admin using the admin core registry.
- •Configure list display, search, filters, and ordering.
- •Register admin routes under an
/adminpath and start the server.
Common Tasks
- •Set
ListDisplay,SearchFields,ListFilter, andOrdering. - •Configure read-only fields and form layout with fieldsets.
- •Register multiple models and expose them under a shared admin router.
Gotchas
- •Admin requires schema definitions and managers for models.
- •Admin routes must be mounted on your main router to be accessible.
- •Changes to models often require re-running
forge generateand migrations.