diff --git a/README.md b/README.md index c1d0e8f..8237842 100644 --- a/README.md +++ b/README.md @@ -121,7 +121,7 @@ toast() toast() ->success('This toast will display until you remove it manually') - ->keep() + ->sticky() ->push(); ``` diff --git a/src/Notification.php b/src/Notification.php index eafaa0f..481a1b4 100644 --- a/src/Notification.php +++ b/src/Notification.php @@ -62,7 +62,7 @@ public function duration(int $duration): Notification return $this; } - public function keep(): Notification + public function sticky(): Notification { $this->duration = 0;