Download the PHP
package clevel/collapsible-resource-manager without Composer
On this page you can find all versions of the php package
clevel/collapsible-resource-manager. It is possible to download/install
these versions without Composer. Possible dependencies are resolved
automatically.
After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.
Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.
In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories.
In this case some credentials are needed to access such packages.
Please use the auth.json textarea to insert credentials, if a package is coming from a private repository.
You can look here for more information.
Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
To use Composer is sometimes complicated. Especially for beginners.
Composer needs much resources. Sometimes they are not available on a simple webspace.
If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Informations about the package collapsible-resource-manager
Collapsible Resource Manager
Provides an easy way to order and group your resources on the sidebar.
Installation
You can install the package via composer:
Next up, you must register the tool with Nova. This is typically done in the tools method of the NovaServiceProvider.
Options
On the navigation key only TopLevelResource are allowed to be used, any other resource will be ignored.
Navigation Resources
TopLevelResource
NovaResource
You can either pass a \App\Nova\Resource::class or a instance of NovaResource
Additionally you can redirect the user to specific views on click by chaining one of these methods:
Authorization is also respected for each of these views
Group
Group appears as a toggle with a +/- sign that allows user to collapse multiple items into a single entry on the sidebar:
InternalLink
Internal Link is an easy way to manually direct user to an specific URL using the default navigation mechanism:
LensResource
Lens Resource is a quickly way to add an entry on the sidebar that directs the user directly to an lens view for a given resource,
It requires 2 params: the resource the lens was used and the lens class itself you want to link to:
ExternalLink
External links are useful to add entries on the menu that redirects user to an external URL:
RawResource
If none of the pre-configured resources suffice your needs, RawResource provides an way to manually define what params the
should be built with:
# Authorization
All the resources uses `AuthorizedToSee` nova trait therefor they behave like tools and cards,
where you can chain `canSee` to determine if the current logged in user is allowed to see the resource.
By default `NovaResource` will follow the default policy registered for the given resource, however it can be overridden
by chaining the `->canSee()` manually
# Resource Labels and Translations
You can pass translated labels to any resource by calling the `->label()` method, eg:
# Resource Icons
You can define icons for `NovaResource` by either:
- Calling `->icon()` method on the `NovaResource` it accepts a `Closure` that returns a `string` or a `string` directly
- Setting a static method called `icon` that returns an string on the resource class:
For the `LensResource` the static icon method should be defined on the lens class not on the resource class
And for all the other resources that doesnt accept a class string as configuration, the icon can be set by
passing an icon key or calling `->icon()` to the resource itself, example:

## License
The MIT License (MIT). Please see [License File](https://raw.githubusercontent.com/dcasia/collapsible-resource-manager/master/LICENSE) for more information.
All versions of collapsible-resource-manager with dependencies
Composer command for our command line client (download client)This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free.Standard composer command
The package clevel/collapsible-resource-manager contains the following files
Loading the files please wait ....
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.