Releases: code16/sharp
Releases · code16/sharp
v9.2.3
v9.2.2
Improvements
- Allow to use SharpEntity classes in testing methods
callSharp[Instance|Entity]CommandFrom[Show|List]
- Document the usage of the new Laravel 12
withAttributes()
method to simplify upload management (see https://sharp.code16.fr/docs/guide/sharp-uploads#link-to-your-models)
v9.2.1
v9.2.0
Features
- autodiscover entities 🥳 with the new
discoverEntities()
method (doc) + allow to use SharpEntity class instead of entity key from everywhere (LinkTo, Breadcrumb...) - new option to allow temporary uploads (doc)
Bug fixes
- Throw if a localized field is configured without locales
- Sharp notifications not showing on Show entity lists
Note
This is not usual with Sharp, but we chose to add a deprecation in this minor version: in SharpAppServiceProvider
you are encouraged to migrate your ->addEntity('key', MyEntity::class)
calls to ->declareEntity(MyEntity::class)
, since Sharp's new way is to hide entity keys. And even better, you can replace all of these with one simple ->discoverEntities()
.
v9.1.2
Bug fixes
- Properly reset remote autocomplete linked field when a callback is provided
- Only run global filter / global search authorize when authenticated & allowed to view sharp
Other changes
- SharpEntity::getLabel() can now be override, to handle dynamic labels