Fixed some things in the rule controllers.

This commit is contained in:
James Cole
2016-01-24 16:50:55 +01:00
parent 0f12ebb31c
commit 94700f4064
5 changed files with 158 additions and 64 deletions

View File

@@ -15,6 +15,14 @@ use Illuminate\Support\Collection;
*/
class RuleGroupRepository implements RuleGroupRepositoryInterface
{
/**
* @return int
*/
public function count()
{
return Auth::user()->ruleGroups()->count();
}
/**
* @param RuleGroup $ruleGroup
* @param RuleGroup $moveTo