From 538dfd976a9a7b3968a6e15d97168f167521ca1e Mon Sep 17 00:00:00 2001 From: "M. D." Date: Thu, 18 Jul 2024 20:19:02 +0200 Subject: [PATCH] Add README text --- packages/panels/docs/01-installation.md | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/packages/panels/docs/01-installation.md b/packages/panels/docs/01-installation.md index 1cfc55062c..118cf76aef 100644 --- a/packages/panels/docs/01-installation.md +++ b/packages/panels/docs/01-installation.md @@ -42,6 +42,23 @@ The Filament Panel Builder pre-installs the [Form Builder](/docs/forms), [Table ## Improving Filament panel performance +### Optimizing Filament for production + +To optimize Filament for production, you should run the following command in your deployment script: + +```bash +php artisan filament:optimize +``` + +This command will cache the Filament components and additionally the Blade Icons, which can significantly improve the performance of your Filament panels. +This command is a shorthand for the commands `php artisan icons:cache` and `php artisan filament:cache-components`. + +To clear the cached components, you can run: + +```bash +php artisan filament:optimize-clear +``` + ### Caching Blade Icons You may wish to consider running `php artisan icons:cache` locally, and also in your deployment script. This is because Filament uses the [Blade Icons](https://blade-ui-kit.com/blade-icons) package, which can be much more performant when cached.