mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2026-06-09 03:44:57 +00:00
Clean up a bunch of code and improve transaction store events
This commit is contained in:
@@ -86,8 +86,11 @@ class User extends Authenticatable
|
||||
/**
|
||||
* @throws NotFoundHttpException
|
||||
*/
|
||||
public static function routeBinder(string $value): self
|
||||
public static function routeBinder(self|string $value): self
|
||||
{
|
||||
if($value instanceof self) {
|
||||
$value = (int)$value->id;
|
||||
}
|
||||
if (auth()->check()) {
|
||||
$userId = (int) $value;
|
||||
$user = self::find($userId);
|
||||
|
||||
Reference in New Issue
Block a user