Skip to content

Commit

Permalink
Do not auto increment AuthCode ID
Browse files Browse the repository at this point in the history
This follows the same rule as the Token model. Both don't have auto incrementing IDs so we should set this to false.

Fixes #895
  • Loading branch information
driesvints committed Jan 10, 2019
1 parent 7022169 commit 2d2c30e
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/AuthCode.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,13 @@ class AuthCode extends Model
*/
protected $table = 'oauth_auth_codes';

/**
* Indicates if the IDs are auto-incrementing.
*
* @var bool
*/
public $incrementing = false;

/**
* The guarded attributes on the model.
*
Expand Down

0 comments on commit 2d2c30e

Please sign in to comment.