Skip to content

Commit

Permalink
Almost forgot the documentation.
Browse files Browse the repository at this point in the history
  • Loading branch information
MatthewSH committed Mar 23, 2018
1 parent 0586b8b commit d1232c8
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/TokenRepository.php
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,11 @@ public function findValidToken($user, $client)
->first();
}

/**
* Return a new instance of the token model.
*
* @return \Laravel\Passport\Token|null
*/
public function newTokenInstance()
{
return config('passport.token.model', Laravel\Passport\Token::class);
Expand Down

0 comments on commit d1232c8

Please sign in to comment.