mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-11-19 08:00:19 +00:00
Halfway rule API.
This commit is contained in:
@@ -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.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user