Halfway rule API.

This commit is contained in:
James Cole
2018-06-30 16:46:51 +02:00
parent 7abcdea816
commit 36a6981329
8 changed files with 361 additions and 25 deletions

View File

@@ -80,6 +80,16 @@ class RuleRepository implements RuleRepositoryInterface
return $rule;
}
/**
* Get all the users rules.
*
* @return Collection
*/
public function getAll(): Collection
{
return $this->user->rules()->with(['ruleGroup'])->get();
}
/**
* FIxXME can return null.
*