From a002590d5638c0297853df9074ab0f1e5c3d6bff Mon Sep 17 00:00:00 2001 From: Younes ENNAJI Date: Sat, 10 Jan 2026 04:21:03 +0100 Subject: [PATCH] Fix incorrect examples in src/Prime/README.md - Replace non-existent static Flasher:: calls with flash() helper function --- src/Prime/README.md | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/src/Prime/README.md b/src/Prime/README.md index dd2eb534..2b0159d8 100644 --- a/src/Prime/README.md +++ b/src/Prime/README.md @@ -19,22 +19,20 @@ composer require php-flasher/flasher ## Quick Start ```php -use Flasher\Prime\Flasher; - // Success notification -Flasher::success('Operation completed successfully!'); +flash('Operation completed successfully!', 'success'); // Error notification -Flasher::error('An error occurred.'); +flash('An error occurred.', 'error'); // With options -Flasher::success('Profile updated!', [ +flash('Profile updated!', 'success', [ 'timeout' => 5000, 'position' => 'top-right', ]); // With translation -Flasher::info('Welcome back!', [ +flash('Welcome back!', 'info', [ 'translate' => true, 'locale' => 'en', ]);