alexbowers / nova-categorise-resources
Group and categorise your nova resources
Installs: 67 184
Dependents: 0
Suggesters: 0
Security: 0
Stars: 41
Watchers: 0
Forks: 14
Open Issues: 21
Requires
- php: >=7.1.0
- dev-master
- v1.0.5
- v1.0.4
- v1.0.3
- v1.0.2
- v1.0.1
- v1.0.0
- dev-dependabot/npm_and_yarn/qs-6.4.1
- dev-dependabot/npm_and_yarn/express-4.18.2
- dev-dependabot/npm_and_yarn/decode-uri-component-0.2.2
- dev-dependabot/npm_and_yarn/loader-utils-1.4.2
- dev-dependabot/npm_and_yarn/css-what-2.1.3
- dev-dependabot/npm_and_yarn/url-parse-1.5.10
- dev-dependabot/npm_and_yarn/follow-redirects-1.14.8
- dev-dependabot/npm_and_yarn/chownr-1.1.4
- dev-dependabot/npm_and_yarn/path-parse-1.0.7
- dev-dependabot/npm_and_yarn/tar-2.2.2
- dev-dependabot/npm_and_yarn/dns-packet-1.3.4
- dev-dependabot/npm_and_yarn/hosted-git-info-2.8.9
- dev-dependabot/npm_and_yarn/lodash-4.17.21
- dev-dependabot/npm_and_yarn/y18n-3.2.2
- dev-dependabot/npm_and_yarn/elliptic-6.5.4
- dev-dependabot/npm_and_yarn/ini-1.3.7
- dev-dependabot/npm_and_yarn/http-proxy-1.18.1
- dev-dependabot/npm_and_yarn/node-sass-4.14.1
- dev-dependabot/npm_and_yarn/websocket-extensions-0.1.4
This package is auto-updated.
Last update: 2024-12-09 16:31:22 UTC
README
This is now covered in Nova 1.0.18+ so does not need a package for it:
public static $group = 'name'; // you may also use a public static method of the same name
You may continue to use this package if you want to be able to collapse the groups, however I'd recommend going with the core features of Nova.
Group and categorise your nova resources
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.
Installation
You can install the package in to a Laravel app that uses Nova via composer:
composer require alexbowers/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 bowersbros@gmail.com instead of using the issue tracker.
Credits
License
The MIT License (MIT). Please see License File for more information.