insenseanalytics/nova-categorise-resources

Group and categorise your nova resources

v1.0.7 2018-12-07 14:27 UTC

This package is auto-updated.

Last update: 2024-12-08 07:59:53 UTC


README

This is a fork of alexbowers/nova-categorise-resources turned into its own separate package on Composer. The only difference is that by default the groups are collapsed.

Group and categorise your nova resources

Latest Version on Packagist Total Downloads

A nova resource can be given a category name.

If a category name is provided, then that will act as a label.

The label will be standardised, so any changes in capitalisation will be removed and it will be converted into Title case.

For example:

"Customers Information", "customers information" and "cUStoMERs INFORMATION"

all become "Customers Information"

If the category is left empty, then all empty resources will get grouped together.

If there is only one category, it will not be collapsable, but will instead have a label above it all

if there is only one category, and it is empty, then it will act as Nova does by default.

Categorise Resources Example

Installation

You can install the package in to a Laravel app that uses Nova via composer:

composer require insenseanalytics/nova-categorise-resources

Usage

In any / all of your resources add

public static $category = "Your Category label";

Security

If you discover any security related issues, please email paras@insenseanalytics.com instead of using the issue tracker.

Credits

License

The MIT License (MIT). Please see License File for more information.