Download the PHP package awcodes/filament-quick-create without Composer
On this page you can find all versions of the php package awcodes/filament-quick-create. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package filament-quick-create
Quick Create for Filament
Plugin for Filament Admin Panel that adds a dropdown menu to the header to quickly create new items from anywhere in your app.
Installation
Install the package via composer
In an effort to align with Filament's theming methodology you will need to use a custom theme to use this plugin.
Note If you have not set up a custom theme and are using a Panel follow the instructions in the Filament Docs first. The following applies to both the Panels Package and the standalone Forms package.
Add the plugin's views to your tailwind.config.js
file.
Usage
By default, Quick Create will use all resources that are registered with current Filament context. All resources will follow the authorization used by Filament, meaning that if a user doesn't have permission to create a record it will not be listed in the dropdown.
Registering the plugin
Warning Excludes and includes are not meant to work together. You should use one or the other, but not both.
Excluding Resources
Excluding resources will filter them out of the registered resources to prevent them from displaying in the dropdown.
Including Resources
Sometimes, it might be easier to only include some resources instead of filtering them out. For instance, you have 30 resources but only want to display 3 to 4 in the dropdown.
Sorting
By default, Quick Create will sort all the displayed options in descending order by Label. This can be disabled should you choose. In which case they will be displayed in the order they are registered with Filament.
Sorting by resource navigation
By default, Quick Create will sort all the displayed options by Label. This can be changed to resource navigation sort should you choose. In which case they will be displayed in the order they are displayed in the navigation.
Appearance
By default, the Quick Create button will be fully rounded if you would like to have a more square button you can disable the rounding with the rounded()
method.
Slide Overs
By default, Quick Create will render simple resources in a standard modal. If you would like to render them in a slide over instead you may use the slideOver()
modifier to do so.
Hiding Quick Create
By default, Quick Create is visible if there are registered resources. If you would like to hide it you may use the hidden()
modifier to do so.
All versions of filament-quick-create with dependencies
filament/filament Version ^v3.0
spatie/laravel-package-tools Version ^1.15.0