Skip to content

Commit

Permalink
removing get method
Browse files Browse the repository at this point in the history
  • Loading branch information
tymondesigns committed Sep 10, 2014
1 parent 6ecc21e commit ed3671d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Tymon/JWTAuth/JWTAuth.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ public function __construct(JWTProvider $provider, $identifier = 'id')
*/
public function toUser($token = null)
{
$payload = $this->provider->decode($token)->get();
$payload = $this->provider->decode($token);

return User::where($this->identifier, $payload['sub'])->first();
}
Expand All @@ -45,7 +45,7 @@ public function toUser($token = null)
*/
public function fromUser(User $user)
{
return $this->provider->encode($user->{$this->identifier})->get();
return $this->provider->encode($user->{$this->identifier});
}

/**
Expand Down

0 comments on commit ed3671d

Please sign in to comment.