### Installing Filament Quick Create Plugin with Composer Source: https://github.com/awcodes/filament-quick-create/blob/3.x/README.md Installs the Filament Quick Create package using the Composer dependency manager. This is the first step to integrate the plugin into your Filament project. ```bash composer require awcodes/filament-quick-create ``` -------------------------------- ### Adding Keyboard Shortcuts for Filament Quick Create Source: https://github.com/awcodes/filament-quick-create/blob/3.x/README.md Configures keyboard shortcuts to open the Quick Create dropdown. This allows users to quickly access the creation menu using specified key combinations. ```php use Awcodes\FilamentQuickCreate\QuickCreatePlugin; public function panel(Panel $panel): Panel { return $panel ->plugins([ QuickCreatePlugin::make() ->keyBindings(['command+shift+a', 'ctrl+shift+a']), ]); } ``` -------------------------------- ### Registering Filament Quick Create Plugin Source: https://github.com/awcodes/filament-quick-create/blob/3.x/README.md Registers the Quick Create plugin with a Filament panel. This enables the basic functionality of the plugin, making it available in the panel's header. ```php use Awcodes\FilamentQuickCreate\QuickCreatePlugin; public function panel(Panel $panel): Panel { return $panel ->plugins([ QuickCreatePlugin::make(), ]); } ``` -------------------------------- ### Including Specific Resources in Filament Quick Create Source: https://github.com/awcodes/filament-quick-create/blob/3.x/README.md Configures the Quick Create plugin to only include a specified list of resources in the dropdown menu. This is an alternative to excluding resources, useful when you only want a few resources available. ```php use Awcodes\FilamentQuickCreate\QuickCreatePlugin; public function panel(Panel $panel): Panel { return $panel ->plugins([ QuickCreatePlugin::make() ->includes([ \App\Filament\Resources\UserResource::class, ]), ]); } ``` -------------------------------- ### Sorting Filament Quick Create by Navigation Order Source: https://github.com/awcodes/filament-quick-create/blob/3.x/README.md Changes the sorting method for resources in the Quick Create dropdown to match the order they appear in the Filament navigation. This provides consistency between the navigation and the quick create menu. ```php use Awcodes\FilamentQuickCreate\QuickCreatePlugin; public function panel(Panel $panel): Panel { return $panel ->plugins([ QuickCreatePlugin::make() ->sortBy('navigation'), ]); } ``` -------------------------------- ### Render Quick Create Forms as Slide Overs (PHP) Source: https://github.com/awcodes/filament-quick-create/blob/3.x/README.md By default, simple resource forms open in modals. Use the `slideOver()` modifier to force Quick Create to render these forms as slide overs instead. ```php use Awcodes\FilamentQuickCreate\QuickCreatePlugin; public function panel(Panel $panel): Panel { return $panel ->plugins([ QuickCreatePlugin::make() ->slideOver(), ]); } ``` -------------------------------- ### Configuring Tailwind CSS for Filament Quick Create Source: https://github.com/awcodes/filament-quick-create/blob/3.x/README.md Adds the plugin's Blade views to the Tailwind CSS content configuration. This ensures that Tailwind can scan the plugin's files and include necessary styles in your custom theme. ```js content: [ '/awcodes/filament-quick-create/resources/**/*.blade.php', ] ``` -------------------------------- ### Change Quick Create Plugin Render Hook (PHP) Source: https://github.com/awcodes/filament-quick-create/blob/3.x/README.md Customize where the Quick Create plugin is rendered within the Filament panel layout by using the `renderUsingHook()` method and providing a valid Filament Panel Render Hook string. ```php use Awcodes\FilamentQuickCreate\QuickCreatePlugin; use Filament\View\PanelsRenderHook; public function panel(Panel $panel): Panel { return $panel ->plugins([ QuickCreatePlugin::make() ->renderUsingHook(PanelsRenderHook::SIDEBAR_NAV_END), ]); } ``` -------------------------------- ### Set Label for Quick Create Button (PHP) Source: https://github.com/awcodes/filament-quick-create/blob/3.x/README.md Customize the text label displayed next to the plus icon for the Quick Create button by using the `label()` method and providing a string value. ```php use Awcodes\FilamentQuickCreate\QuickCreatePlugin; public function panel(Panel $panel): Panel { return $panel ->plugins([ QuickCreatePlugin::make() ->label('New'), ]); } ``` -------------------------------- ### Force All Quick Create Forms to Use Modals (PHP) Source: https://github.com/awcodes/filament-quick-create/blob/3.x/README.md Override the default behavior where Quick Create determines whether to use a modal or redirect to a page. Use the `alwaysShowModal()` modifier to force all resource forms to open in a modal. ```php use Awcodes\FilamentQuickCreate\QuickCreatePlugin; public function panel(Panel $panel): Panel { return $panel ->plugins([ QuickCreatePlugin::make() ->alwaysShowModal(), ]); } ``` -------------------------------- ### Excluding Resources from Filament Quick Create Source: https://github.com/awcodes/filament-quick-create/blob/3.x/README.md Configures the Quick Create plugin to exclude specific resources from the dropdown menu. This is useful when you want to prevent certain resources from being quickly created via the plugin. ```php use Awcodes\FilamentQuickCreate\QuickCreatePlugin; public function panel(Panel $panel): Panel { return $panel ->plugins([ QuickCreatePlugin::make() ->excludes([ \App\Filament\Resources\UserResource::class, ]), ]); } ``` -------------------------------- ### Controlling 'Create Another' Behavior in Filament Quick Create Source: https://github.com/awcodes/filament-quick-create/blob/3.x/README.md Overrides the default 'Create Another' behavior for all resources within the Quick Create plugin. This allows you to globally enable or disable the option to create another record after successfully creating one. ```php use Awcodes\FilamentQuickCreate\QuickCreatePlugin; public function panel(Panel $panel): Panel { return $panel ->plugins([ QuickCreatePlugin::make() ->createAnother(false), ]); } ``` -------------------------------- ### Conditionally Hide Quick Create Plugin (PHP) Source: https://github.com/awcodes/filament-quick-create/blob/3.x/README.md Control the visibility of the Quick Create plugin using the `hidden()` modifier. This method accepts a boolean value or a closure that returns a boolean, allowing for dynamic visibility based on application state. ```php use Awcodes\FilamentQuickCreate\QuickCreatePlugin; public function panel(Panel $panel): Panel { return $panel ->plugins([ QuickCreatePlugin::make() ->hidden(fn() => Filament::getTenant()->requiresOnboarding()), ]); } ``` -------------------------------- ### Disabling Rounded Appearance for Filament Quick Create Button Source: https://github.com/awcodes/filament-quick-create/blob/3.x/README.md Disables the default rounded appearance of the Quick Create button in the header. This allows for a more square button style, aligning with different theme preferences. ```php use Awcodes\FilamentQuickCreate\QuickCreatePlugin; public function panel(Panel $panel): Panel { return $panel ->plugins([ QuickCreatePlugin::make() ->rounded(false), ]); } ``` -------------------------------- ### Disabling Default Sorting in Filament Quick Create Source: https://github.com/awcodes/filament-quick-create/blob/3.x/README.md Disables the default sorting of resources in the Quick Create dropdown. When disabled, resources will appear in the order they are registered with Filament. ```php use Awcodes\FilamentQuickCreate\QuickCreatePlugin; public function panel(Panel $panel): Panel { return $panel ->plugins([ QuickCreatePlugin::make() ->sort(false), ]); } ``` -------------------------------- ### Disable Icons for Quick Create Items (PHP) Source: https://github.com/awcodes/filament-quick-create/blob/3.x/README.md Use the `hiddenIcons()` method on the Quick Create plugin instance to prevent icons from being displayed next to the items in the quick create menu. ```php use Awcodes\FilamentQuickCreate\QuickCreatePlugin; public function panel(Panel $panel): Panel { return $panel ->plugins([ QuickCreatePlugin::make() ->hiddenIcons(), ]); } ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.