Skip to content

Commit

Permalink
hasRevisions
Browse files Browse the repository at this point in the history
  • Loading branch information
edalzell committed Feb 27, 2025
1 parent bc3b5da commit aeec914
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/Revisions/Revisable.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,11 @@

trait Revisable
{
public function hasRevisions(): bool
{
return $this->revisions()->isNotEmpty();
}

public function revision(string $reference)
{
return $this->revisions()->get($reference);
Expand Down

0 comments on commit aeec914

Please sign in to comment.