All notable changes to laravel-sidebar will be documented in this file.
First release of wikigods/laravel-sidebar, a continuation of maatwebsite/laravel-sidebar 3.x under the Wikigods\Sidebar namespace. See the upgrade guide to move an existing application.
php artisan sidebar:install: interactive installer that generates a sidebar class and config/sidebar.php (cache method and duration, template, permission driver, sidebar class, target view, view data key and middleware alias). Every prompt also has an option for non-interactive use, plus --publish-views and --force (replaced files are backed up as .bak).sidebar.sidebar configuration: register a sidebar class and the Blade view that receives it (class, view, key) without writing a view composer.sidebar.middleware configuration: the sidebar route middleware alias is registered automatically.sidebar.permissions: spatie (any Gate-based can() check), sentinel and none, or a custom PermissionResolver class. Items and groups gain authorizePermission().sidebar.view. Publish tags sidebar-views-adminlte2, sidebar-views-adminlte3 and sidebar-views-adminlv. AdminLV converts Bootstrap 3/4 badge classes (badge-danger) to Bootstrap 5 (bg-danger).tests/DocumentationExamplesTest.php).Maatwebsite\Sidebar is now Wikigods\Sidebar, and the package is wikigods/laravel-sidebar.spatie/laravel-package-tools. The sidebar-config and sidebar-views publish tags keep their names.sidebar.cache.duration is in minutes, as documented. It was passed to the cache store as seconds, so 1440 cached for 24 minutes instead of one day.ShouldCache no longer extends the deprecated Serializable interface. It requires __serialize() / __unserialize(), which CacheableTrait provides.Console namespace is now Commands.Item::badge() and Item::append() treated a string such as 'count' or 'route' as a callback because it names a global PHP function, and failed with a TypeError. Only closures are now treated as callbacks.serialize() / unserialize() methods of CacheableTrait and the Serializable interface on the domain classes. PHP's native __serialize() / __unserialize() are used.$defer property and provides() method of the service provider.