Download the PHP package invaders-xx/filament-nested-list without Composer
On this page you can find all versions of the php package invaders-xx/filament-nested-list. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download invaders-xx/filament-nested-list
More information about invaders-xx/filament-nested-list
Files in invaders-xx/filament-nested-list
Package filament-nested-list
Short Description Nested lists layout plugin for Filament
License MIT
Homepage https://github.com/invaders-xx/filament-nested-list
Informations about the package filament-nested-list
Filament Nested List
Filament Nested List is a plugin for Filament Admin that creates a model management page with a heritage nested list structure view. This plugin can be used to create menus and more.
This plugin creates model management page with heritage nested list structure view for Filament Admin. It could be used to create menu, etc.
Installation
To install the package, run the following command:
Note: Add plugin Blade files to your custom theme
tailwind.config.js
for dark mode.To set up your own custom theme, you can visit the official instruction page on the Filament website.
Add the plugin's views to your tailwind.config.js
file.
Then, publish the config file using:
You can set your preferred options by adding the following code to your config/filament-nested-list.php
file:
Usage
Prepare the database and model
To use Filament Nested List, follow these table structure conventions:
Tip: The
parent_id
field must always default to -1!!!
This plugin provides a convenient method called nestedListColumns()
that you can use to add the required columns for
the nested list structure to your table more easily. Here's an example:
This will automatically add the required columns for the nested list structure to your table.
The above table structure contains three required fields: parent_id
, order
, title
, and other fields do not have
any requirements.
The corresponding model is app/Models/ProductCategory.php
:
The field names of the three fields parent_id
, order
, and title
in the table structure can also be modified:
Widget
Filament provides a powerful feature that allows you to display widgets inside pages, below the header and above the footer. This can be useful for adding additional functionality to your resource pages.
To create a Nested List Widget and apply it to a resource page, you can follow these steps:
1. Creating a Filament Resource Page
To create a resources page, run the following command:
2. Create Nested List Widget
Prepare the filament-nested-list Widget and show it in Resource page.
Now you can see the Widget in Filament Folder
3. Displaying a widget on a resource page
Once you have created the widget, modify the getHeaderWidgets()
or getFooterWidgets()
methods of the resource page
to show the nested list view:
Publishing Views
To publish the views, use:
Publishing Translations
To publish the translations, use:
Testing
To run the tests, run:
Changelog
See the CHANGELOG for more information on what has changed recently.
Contributing
See CONTRIBUTING for details.
Security Vulnerabilities
If you discover any security related issues, please email [email protected] instead of using the issue tracker.
Credits
- David Vincent
- Inspired from Solution Forest
- hesamurai for nested sort script
- All Contributors
License
Filament Nested List is open-sourced software licensed under the MIT license.
About Us
All versions of filament-nested-list with dependencies
filament/filament Version ^3.0
filament/support Version ^3.0
spatie/laravel-package-tools Version ^1.16
illuminate/contracts Version ^10.0||^11.0