admin-add-field
/admin-add-field
Dodaje kolumnę lub pole do istniejącego modułu admina: nowe pole formularza, kolumnę listy lub atrybut modelu.
- Autor
- yuanmaharsyah ↗
- Repozytorium
- admin-boilerplate ↗
- Licencja
- MIT
- Ostatnia zmiana repozytorium
- 08.11.2026
Ocena i bezpieczeństwo
- Pliki w paczce
- 1
- Skrypty
- 0
- Komentarze HTML
- 0
- Adresy URL w SKILL.md
- 0
Brak sygnałów. Repozytorium zmienione 08.11.2026, bez odwołań do wycofanych modeli i API.
MIT, otwarta: można używać i zmieniać, z zachowaniem informacji o autorze.
Co robi i kiedy
Dodaje kolumnę lub pole do istniejącego modułu admina: nowe pole formularza, kolumnę listy lub atrybut modelu.
Oryginalny opis (EN)
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).
Jak działa
SKILL.md bez nagłówków drugiego poziomu · 15 linii, 164 słów
Podgląd SKILL.md
---
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`.
Wersje
W bazie nie ma innych skilli o nazwie admin-add-field.
Migawka bazy z 13.11.2026 · wersja paczki 9f82a0ef5894 (skrót SHA-256 całej paczki)
Pobrania w ostatnich 30 dniach: 0 · ranking
Zgłoś problem z tym skillem: szkodliwa treść, błędny opis albo prośba autora o usunięcie.
Podobne skille
- 95add-opportunity-config-field
Dodaje nowe pole do konfiguracji opportunity w panelu administracyjnym workflows, gdy trzeba dodać pole, właściwość lub atrybut konfiguracji. - 100admin-listing
Generuje listing lub siatkę adminhtml w Magento 2 jako komponent UI: ui_component/{entity}_listing.xml, DataProvider, kolumny, kolumnę akcji i akcje masowe, podpięte do istniejącego formularza edycji. - 100system-config
Dodaje do modułu Magento pola konfiguracji w panelu administratora: system.xml, domyślne wartości w config.xml, ACL i typowany odczyt ustawień. - 86add-model
Dodaje model Django wraz z migracją, panelem admina, formularzem, widokami, szablonami i testami. - 86admin-test-module
Pisze lub naprawia testy modułu admina: uprawnienia, walidację, audyt, usuwanie logiczne i zakres widoczności. - 100add-migration
Dodaje lub zmienia migrację schematu Postgres: nową tabelę, kolumnę albo indeks, i uruchamia polecenie migracji w projekcie.