Questions and issues

Find yourself stuck using the package? Found a bug? Open an issue on GitHub. Please include the sidebar class, the configuration and the Laravel and PHP versions.

If you discover a security issue, please report it through GitHub security advisories instead of the issue tracker.

The sidebar area is blank

  • The configured target view (sidebar.sidebar.view) must be the Blade view that is actually rendered.
  • Print the configured key in that view, for example {!! $sidebar !!}.
  • The sidebar middleware must be on the route.
  • The user must pass the authorization checks of the group and the item.
  • With caching enabled, clear the cache after changing the menu: php artisan cache:clear.

"Cache tags are necessary to use this kind of caching"

The user-based cache method needs a store with tags, such as Redis or Memcached. Change the cache store or use null or static.

The wrong template appears

Check sidebar.view in config/sidebar.php. Published views in resources/views/vendor/sidebar win over the package views: publish the matching template again and run php artisan view:clear.