diff --git a/app/Http/Controllers/Plugins/ListPluginsController.php b/app/Http/Controllers/Plugins/ListPluginsController.php index aebd110c1..70fd773d8 100644 --- a/app/Http/Controllers/Plugins/ListPluginsController.php +++ b/app/Http/Controllers/Plugins/ListPluginsController.php @@ -34,7 +34,7 @@ public function __invoke(GetPluginsListData $getPluginsListData) 'pluginsCount' => Plugin::count(), 'plugins' => $getPluginsListData(), 'featuredPlugins' => $getPluginsListData([ - 'filament-minimal-theme', + 'filament-themes', 'kenneth-sese-advanced-tables', 'ralphjsmit-media-library-manager', ]), diff --git a/app/Http/Controllers/Plugins/ViewPluginController.php b/app/Http/Controllers/Plugins/ViewPluginController.php index 463645e0d..d4a075c7c 100644 --- a/app/Http/Controllers/Plugins/ViewPluginController.php +++ b/app/Http/Controllers/Plugins/ViewPluginController.php @@ -22,7 +22,7 @@ public function __invoke(GetPluginsListData $getPluginsListData, string $plugin) ->image($plugin->getImageUrl() ?? $plugin->getThumbnailUrl()); $featuredPlugins = [ - 'filament-minimal-theme', + 'filament-themes', 'kenneth-sese-advanced-tables', 'ralphjsmit-media-library-manager', ]; diff --git a/content/articles/leandrocfe-form-builder-common-errors-to-avoid.md b/content/articles/leandrocfe-form-builder-common-errors-to-avoid.md new file mode 100644 index 000000000..8cc3e2484 --- /dev/null +++ b/content/articles/leandrocfe-form-builder-common-errors-to-avoid.md @@ -0,0 +1,266 @@ +--- +title: Form Builder - Common Errors to Avoid +slug: leandrocfe-form-builder-common-errors-to-avoid +author_slug: leandrocfe +publish_date: 2024-11-23 +categories: [form-builder, tailwind-css] +type_slug: article +--- + +## Introduction +As a member of the Filament community, I frequently respond to questions and issues raised in [Filament Discord](https://filamentphp.com/discord) and [Filament GitHub discussions](https://github.com/filamentphp/filament/discussions). +Many of these involve common mistakes that developers make while building forms in Filament. +In this article, I'll highlight some of these errors and show you how to avoid them. + +> **_NOTE:_** This article was written using [Filament v3.x](https://filamentphp.com/docs/3.x). + +## Error 1: Using New Tailwind Classes Without Defining a Theme + +Suppose you want to add a custom Tailwind class to the [helperText](https://filamentphp.com/docs/3.x/forms/fields/getting-started#adding-helper-text-below-the-field) of a [RichEditor](https://filamentphp.com/docs/3.x/forms/fields/rich-editor) component: + +```php +RichEditor::make('content') + ->columnSpanFull() + ->helperText(new HtmlString(<<<'HTML' +