From cd592be772908fa4c3f28261c8139a767f922e63 Mon Sep 17 00:00:00 2001 From: Younes ENNAJI Date: Sat, 21 Sep 2024 23:15:00 +0100 Subject: [PATCH] docs: update inertial doc page --- docs/pages/inertia.md | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/docs/pages/inertia.md b/docs/pages/inertia.md index 2b2a7886..9478b4b6 100644 --- a/docs/pages/inertia.md +++ b/docs/pages/inertia.md @@ -4,13 +4,13 @@ title: Inertia description: Easily add flash notification messages to your Inertia application with PHPFlasher. Follow our step-by-step guide to install and use the library in your project, and start engaging and informing your users with powerful flash messages. --- -PHPFlasher offers a solid integration with Inertia.js +PHPFlasher works well with Inertia.js. ## Installation -To integrate PHPFlasher with Inertia.js, follow the same installation steps as for the [Laravel Installation](/laravel) package. +To use **PHPFlasher** with Inertia.js, install it the same way as in the [Laravel Installation](/laravel) guide. -Additionally, include `@flasher/flasher` in your package.json by adding the following line: +Also, add `@flasher/flasher` to your `package.json`: ```json "@flasher/flasher": "file:vendor/php-flasher/flasher/Resources" @@ -26,7 +26,7 @@ npm install --force ## Usage -Dispatch `notifications` from your `HandleInertiaRequests` middleware shared data. +Send `notifications` from your `HandleInertiaRequests` middleware. ```php ``` -All you have to do now, is to trigger you notification from anywhere in your application. +Now, you can trigger notifications from anywhere in your application. ```php