GithubHelp home page GithubHelp logo

seongbeom / nova-categorise-resources Goto Github PK

View Code? Open in Web Editor NEW

This project forked from alexbowers/nova-categorise-resources

0.0 0.0 0.0 758 KB

[DEPRECATED] - Supported in Nova 1.0.18 -- Categorise, group and collapse Nova resources

License: MIT License

Vue 16.70% JavaScript 4.15% HTML 33.45% PHP 45.70%

nova-categorise-resources's Introduction

Deprecated

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

Latest Version on Packagist Quality Score 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 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 [email protected] instead of using the issue tracker.

Credits

License

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.