Skip to content

2.5.0 — Action selection and show pages

Choose a tag to compare

@dejwCake dejwCake released this 20 Oct 06:04
· 14 commits to main since this release

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/craftable 2.2.0 (ShowButton, BackButton) and dejwcake/admin-ui 2.3.2 (admin.index.try_changing_filters*). Update both before regenerating.

Added

  • --only / --except choose the generated actions (create, show, edit, delete, bulk-delete, export; index is always generated) on admin:generate, admin:generate:user, admin:generate:admin-user and the selection-dependent generators.
  • admin:generate:blade-show and admin: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 FromQuery with WithCustomChunkSize instead of loading every row.
  • The permissions migration is always complete; --without-bulk on admin:generate:permissions is ignored.

Deprecated

  • -e / -wb (use --only / --except), ColumnCollection::getVisible() (use getForForm()), 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, .gitattributes keeps dev files out of dist archives.