Skip to content

Commit

Permalink
renamed keep to sticky
Browse files Browse the repository at this point in the history
The word "keep" may confuse what is being kept and may not reflect the duration (i.e. is the toast kept on page reloads etc.).
Sticky may convey it better.
  • Loading branch information
usernotnull committed Mar 5, 2023
1 parent 3295ebc commit e9fe42b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ toast()

toast()
->success('This toast will display until you remove it manually')
->keep()
->sticky()
->push();
```

Expand Down
2 changes: 1 addition & 1 deletion src/Notification.php
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ public function duration(int $duration): Notification
return $this;
}

public function keep(): Notification
public function sticky(): Notification
{
$this->duration = 0;

Expand Down

0 comments on commit e9fe42b

Please sign in to comment.