Skip to content

Commit

Permalink
dedicated boot method
Browse files Browse the repository at this point in the history
use dedicated `boot` method to avoid collisions with other traits
  • Loading branch information
jarektkaczyk committed May 31, 2016
1 parent 2d55b4a commit 5ea38ff
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/Mpociot/Teamwork/Traits/UsedByTeams.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,8 @@ trait UsedByTeams
/**
* Boot the global scope
*/
protected static function boot()
protected static function bootUsedByTeams()
{
parent::boot();

static::addGlobalScope('team', function (Builder $builder) {
static::teamGuard();

Expand Down

0 comments on commit 5ea38ff

Please sign in to comment.