From 5ea38ffc55184fa4e563c48f5babdc41179e972e Mon Sep 17 00:00:00 2001 From: Jarek Tkaczyk Date: Tue, 31 May 2016 12:10:25 +0800 Subject: [PATCH] dedicated `boot` method use dedicated `boot` method to avoid collisions with other traits --- src/Mpociot/Teamwork/Traits/UsedByTeams.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/Mpociot/Teamwork/Traits/UsedByTeams.php b/src/Mpociot/Teamwork/Traits/UsedByTeams.php index 9a763e5..7a1518d 100644 --- a/src/Mpociot/Teamwork/Traits/UsedByTeams.php +++ b/src/Mpociot/Teamwork/Traits/UsedByTeams.php @@ -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();