From c7367e7c121aaf9216eaf245771dd79f63110988 Mon Sep 17 00:00:00 2001 From: Younes ENNAJI Date: Thu, 11 Apr 2024 16:19:15 +0000 Subject: [PATCH] docs: add post installation command --- docs/_includes/_installation.md | 36 -------------------------------- docs/pages/installation.md | 8 +++++++ docs/pages/library/noty.md | 2 ++ docs/pages/library/notyf.md | 2 ++ docs/pages/library/sweetalert.md | 2 ++ docs/pages/library/toastr.md | 2 ++ docs/pages/livewire.md | 4 ++++ 7 files changed, 20 insertions(+), 36 deletions(-) delete mode 100644 docs/_includes/_installation.md diff --git a/docs/_includes/_installation.md b/docs/_includes/_installation.md deleted file mode 100644 index 4d65757e..00000000 --- a/docs/_includes/_installation.md +++ /dev/null @@ -1,36 +0,0 @@ -## Installation - -{% PHPFlasher %} is modular and consists of multiple libraries, -allowing users to install and use only the specific components they need for their project. - -{% PHPFlasher %} can be installed using composer : - -{% if 'laravel' == framework %} - -** Laravel**: -```shell -composer require php-flasher/flasher-laravel -``` - -{% else %} - -** Symfony**: -```shell -{{ framework }} -composer require php-flasher/flasher-symfony -``` - -{% endif %} - ---- - -{% PHPFlasher %} includes a default notification style , but users can also install additional adapters to customize the appearance of notifications within their projects such as : - -* **[Toastr](/library/toastr/)** -* **[Noty](/library/noty/)** -* **[Notyf](/library/notyf/)** -* **[Sweet Alert](/library/sweetalert/)** - ---- - -{% include _usage.md %} diff --git a/docs/pages/installation.md b/docs/pages/installation.md index 592c4d16..e5121947 100644 --- a/docs/pages/installation.md +++ b/docs/pages/installation.md @@ -16,6 +16,10 @@ allowing users to install and use only the specific components they need for the ```shell composer require php-flasher/flasher-laravel ``` +Then, run: +```shell +php artisan flasher:install +```
@@ -23,6 +27,10 @@ composer require php-flasher/flasher-laravel ```shell composer require php-flasher/flasher-symfony ``` +Then, run: +```shell +php bin/console flasher:install +``` --- diff --git a/docs/pages/library/noty.md b/docs/pages/library/noty.md index 9c04af3b..18581928 100644 --- a/docs/pages/library/noty.md +++ b/docs/pages/library/noty.md @@ -13,6 +13,7 @@ data-controller: noty ```shell composer require php-flasher/flasher-noty-laravel ``` +Then, run: ```shell php artisan flasher:install ``` @@ -24,6 +25,7 @@ php artisan flasher:install ```shell composer require php-flasher/flasher-noty-symfony ``` +Then, run: ```shell php bin/console flasher:install ``` diff --git a/docs/pages/library/notyf.md b/docs/pages/library/notyf.md index 0113837a..f7bed96c 100644 --- a/docs/pages/library/notyf.md +++ b/docs/pages/library/notyf.md @@ -13,6 +13,7 @@ data-controller: notyf ```shell composer require php-flasher/flasher-notyf-laravel ``` +Then, run: ```shell php artisan flasher:install ``` @@ -24,6 +25,7 @@ php artisan flasher:install ```shell composer require php-flasher/flasher-notyf-symfony ``` +Then, run: ```shell php bin/console flasher:install ``` diff --git a/docs/pages/library/sweetalert.md b/docs/pages/library/sweetalert.md index 84ddcd51..eaaf18d7 100644 --- a/docs/pages/library/sweetalert.md +++ b/docs/pages/library/sweetalert.md @@ -13,6 +13,7 @@ data-controller: sweetalert ```shell composer require php-flasher/flasher-sweetalert-laravel ``` +Then, run: ```shell php artisan flasher:install ``` @@ -24,6 +25,7 @@ php artisan flasher:install ```shell composer require php-flasher/flasher-sweetalert-symfony ``` +Then, run: ```shell php bin/console flasher:install ``` diff --git a/docs/pages/library/toastr.md b/docs/pages/library/toastr.md index 90e6422b..9f25000d 100644 --- a/docs/pages/library/toastr.md +++ b/docs/pages/library/toastr.md @@ -13,6 +13,7 @@ data-controller: toastr ```shell composer require php-flasher/flasher-toastr-laravel ``` +Then, run: ```shell php artisan flasher:install ``` @@ -24,6 +25,7 @@ php artisan flasher:install ```shell composer require php-flasher/flasher-toastr-symfony ``` +Then, run: ```shell php bin/console flasher:install ``` diff --git a/docs/pages/livewire.md b/docs/pages/livewire.md index 63e34b9b..8d31c053 100644 --- a/docs/pages/livewire.md +++ b/docs/pages/livewire.md @@ -21,6 +21,10 @@ To integrate {% PHPFlasher %} with Livewire, follow the same installation steps ```shell composer require php-flasher/flasher-laravel ``` +Then, run: +```shell +php artisan flasher:install +``` ---