Repository navigation
2.5.0 — Action selection and show pages
Show pages are now generated by default; pass --except=show to keep the previous output. See UPGRADE.md → "2.5.0".
Upgrade action
- Regenerated code uses
@dejwcake/craftable2.2.0 (ShowButton,BackButton) anddejwcake/admin-ui2.3.2 (admin.index.try_changing_filters*). Update both before regenerating.
Added
--only/--exceptchoose the generated actions (create, show, edit, delete, bulk-delete, export;indexis always generated) onadmin:generate,admin:generate:user,admin:generate:admin-userand the selection-dependent generators.admin:generate:blade-showandadmin:generate:vue-show: a show page with belongs-to and belongs-to-many relations shown by their label.
Changed (generated output)
- Controllers, routes, listings, requests and translations contain only the selected actions.
- Listings read belongs-to relations by their snake_case key, fixing empty cells for multi-word relations.
- Exports use
FromQuerywithWithCustomChunkSizeinstead of loading every row. - The permissions migration is always complete;
--without-bulkonadmin:generate:permissionsis ignored.
Deprecated
-e/-wb(use--only/--except),ColumnCollection::getVisible()(usegetForForm()), and the template variables$visibleColumns/$hasBulk(use$formColumns/$hasBulkDelete).
Internal
- Snapshot cases for action combinations; README section on choosing actions.
- phpmd 3, coverage in CI, MariaDB 12.3,
.gitattributeskeeps dev files out of dist archives.