Skip to content

Commit d5a1e06

Browse files
authored
Merge pull request #122 from buzzclue/master
Replace str_plural with Str class
2 parents d6ccbc2 + f6e84f0 commit d5a1e06

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/Traits/CanVote.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
namespace Overtrue\LaravelFollow\Traits;
1313

1414
use Overtrue\LaravelFollow\Follow;
15+
use Illuminate\Support\Str;
1516

1617
/**
1718
* Trait CanVote.
@@ -33,7 +34,7 @@ public function vote($targets, $type = 'upvote', $class = __CLASS__)
3334
{
3435
$this->cancelVote($targets);
3536

36-
return Follow::attachRelations($this, str_plural($type), $targets, $class);
37+
return Follow::attachRelations($this, Str::plural($type), $targets, $class);
3738
}
3839

3940
/**

0 commit comments

Comments
 (0)