github Biostate/filament-menu-builder v5.0.4

4 hours ago

Bug-fix and quality release. No breaking changes.

Changed

  • The default Menuable::getMenuNameAttribute() now returns (string) ($this->name ?? '') instead of $this->name. Models that don't have a name column (or have a null value) no longer hit a TypeError when something accesses $model->menu_name. This was the root cause one layer above issue #23.

Documentation

  • New "Upgrading" section in the Menuable Trait guide covering both the v5.0.2 behavioral change to getFilamentSearchOptionName() and the v5.0.4 null-safe default. If you upgrade across either of these, read this section.
  • New RELEASING.md covering the cut-a-tag flow.

Process

  • Adds .github/CODEOWNERS for default reviewer routing.
  • Adds .github/pull_request_template.md with a CHANGELOG / tests / BC checklist.
  • Replaces the empty phpstan-baseline.neon with a comment explaining its purpose.

Tests

  • Adds a NamelessMenuable test fixture that mirrors the exact issue #23 bug shape (no name column, display name computed via getMenuNameAttribute()).
  • New MenuItemResourceFormTest tests that exercise the Select options pipeline at lines 222 and 226 of MenuItemResource.php. Reverting the v5.0.2 trait fix now causes these tests to fail with [null, null] instead of model labels — the exact regression the suite previously couldn't catch.

Full Changelog: v5.0.3...v5.0.4

Don't miss a new filament-menu-builder release

NewReleases is sending notifications on new releases.