@@ -26,7 +26,7 @@ |
||
26 | 26 | public function transform(User $user) |
27 | 27 | { |
28 | 28 | |
29 | - $response = [ |
|
29 | + $response = [ |
|
30 | 30 | 'id' => $user->getHashedKey(), |
31 | 31 | 'name' => $user->name, |
32 | 32 | 'email' => $user->email, |
@@ -61,13 +61,13 @@ |
||
61 | 61 | return $id; |
62 | 62 | } |
63 | 63 | |
64 | - /** |
|
65 | - * Will be used by the Eloquent Models (since it's used as trait there). |
|
66 | - * |
|
67 | - * @param null $key |
|
68 | - * |
|
69 | - * @return mixed |
|
70 | - */ |
|
64 | + /** |
|
65 | + * Will be used by the Eloquent Models (since it's used as trait there). |
|
66 | + * |
|
67 | + * @param null $key |
|
68 | + * |
|
69 | + * @return mixed |
|
70 | + */ |
|
71 | 71 | public function getHashedKey($key = null) |
72 | 72 | { |
73 | 73 | // hash the ID only if hash-id enabled in the config |