From e7ac9e0468c974442f19fb5ae115b56a2ba41763 Mon Sep 17 00:00:00 2001 From: Jerome Paulos <64276359+jxxe@users.noreply.github.com> Date: Thu, 22 May 2025 11:43:05 -0700 Subject: [PATCH] Add note about caching icons in production --- README.md | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 94a9719d..36f0786f 100644 --- a/README.md +++ b/README.md @@ -25,16 +25,20 @@ For a full list of available icons see [the SVG directory](resources/svg) or pre ## Installation -### For Phosphor Icons v1 +#### For Phosphor Icons v1 ```bash composer require codeat3/blade-phosphor-icons:^1.0 ``` -### For Phosphor Icons v2 +#### For Phosphor Icons v2 ```bash composer require codeat3/blade-phosphor-icons:^2.0 ``` +### Caching Icons + +Caching icons will significantly improve performance in production. Make sure your deployment script runs [`php artisan optimize`](https://laravel.com/docs/deployment#optimization), or `php artisan icons:cache` if you only want to cache Blade icons. + ## Updating Please refer to [`the upgrade guide`](UPGRADE.md) when updating the library.