admin-add-field
/admin-add-field
Use when adding a column or field to an existing admin module (new input on the form, new list column, new attribute on the model).
- Author
- yuanmaharsyah ↗
- Repository
- admin-boilerplate ↗
- Licence
- MIT
- Last repository change
- 08.11.2026
Assessment and security
- Files in this package
- 1
- Scripts
- 0
- HTML comments
- 0
- URLs in SKILL.md
- 0
No signals detected. Repository changed on 08.11.2026, without references to retired models or APIs.
MIT, open: use and modify while retaining author attribution.
What it does and when to use it
Use when adding a column or field to an existing admin module (new input on the form, new list column, new attribute on the model).
Original author description
Use when adding a column or field to an existing admin module (new input on the form, new list column, new attribute on the model).
How it works
SKILL.md has no level-two headings · 15 lines, 164 words
SKILL.md preview
---
name: admin-add-field
description: "Use when adding a column or field to an existing admin module (new input on the form, new list column, new attribute on the model)."
---
# Add a field to an existing module
1. New migration in `modules/{Name}/Database/Migrations` (a new file; never edit a migration that has shipped). Index it if lists filter or sort on it; a foreign key states its `onDelete`; `down()` drops the column.
2. Model: add it to `$fillable` and `casts()`.
3. Add it to `Store{Name}Data`, `Update{Name}Data` (with rules), `{Name}Data` and, if it's a list column, `{Name}ListItemData`.
4. `php artisan typescript:transform`; TypeScript now shows where the field is missing.
5. Add the input to `resources/js/components/{Name}Form.tsx` (inside `FormField`, the matching control: `TextField`, `NumberField`, `DateField`, `SelectField`, `SwitchField`…) and, optionally, a column in `resources/js/pages/Index.tsx`. Labels in the module's dictionaries (skill `admin-translate`).
6. Add the column to `Exports/{Name}Export.php` if it should be downloadable.
7. Factory: add the field. Tests: add a validation case.
8. Personal data (NIK, NPWP, phone, address, account number) goes into `admin-core.audit.masked_fields` in the same change (skill `admin-audit`).
9. `php artisan migrate`, then `composer check`.
A relation (belongsTo) is skill `admin-relation-field`; a file is skill `admin-attachments`.
Versions
The database has no other skills named admin-add-field.
Database snapshot: 13.11.2026 · package version 9f82a0ef5894 (SHA-256 digest of the entire package)
Downloads in the last 30 days: 2 · ranking
Report a problem with this skill: harmful content, incorrect descriptions or an author’s removal request.
Similar skills
- 95add-opportunity-config-field
Add a new field to opportunity configs in the workflows admin panel. Use when asked to add a new config field, property, or attribute to the workflows opportunity configuration system. - 100admin-listing
Generate a Magento 2 adminhtml UI-component listing/grid: `ui_component/{entity}_listing.xml` plus DataProvider, columns, actions column, and mass actions, wired to an existing edit form. Use to add or scaffold an admin grid, data grid, listing page, filters, or mass actions.… - 100system-config
Add admin store configuration to an existing module — system.xml section/group/field, config.xml defaults, ACL, optional source/backend models, plus a typed Config reader (ScopeConfigInterface wrapper with store-aware getters). Use for 'add a config field/toggle/API-key setting'… - 86add-model
Add a Django model (in an existing app or a new one) with its migration, admin, form, views, templates and tests. Use when the user asks for a new kind of record, a new page that lists or edits records, or a new app. - 86admin-test-module
Use when writing or fixing tests for an admin module: permissions, guests, validation, audit, soft delete, visibility scope, widgets. - 100add-migration
Add or change a Postgres schema migration. Use when a feature needs a new table, column or index, or when running `npm run migrate`.