mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2026-01-07 14:41:20 +00:00
Various code cleanup.
This commit is contained in:
@@ -144,6 +144,19 @@ class Preferences
|
||||
return $result;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return Collection
|
||||
*/
|
||||
public function all(): Collection
|
||||
{
|
||||
$user = auth()->user();
|
||||
if(null === $user) {
|
||||
return new Collection;
|
||||
}
|
||||
|
||||
return Preference::where('user_id', $user->id)->get();
|
||||
}
|
||||
|
||||
/**
|
||||
* @param User $user
|
||||
* @param string $name
|
||||
|
||||
Reference in New Issue
Block a user