| 1 | <?php |
||
| 7 | class AuthCode extends Model |
||
| 8 | { |
||
| 9 | /** |
||
| 10 | * The database table used by the model. |
||
| 11 | * |
||
| 12 | * @var string |
||
| 13 | */ |
||
| 14 | protected $table = 'oauth_auth_codes'; |
||
| 15 | |||
| 16 | /** |
||
| 17 | * Indicates if the IDs are auto-incrementing. |
||
| 18 | * |
||
| 19 | * @var bool |
||
| 20 | */ |
||
| 21 | public $incrementing = false; |
||
| 22 | |||
| 23 | /** |
||
| 24 | * The guarded attributes on the model. |
||
| 25 | * |
||
| 26 | * @var array |
||
| 27 | */ |
||
| 28 | protected $guarded = []; |
||
| 29 | |||
| 30 | /** |
||
| 31 | * The attributes that should be cast to native types. |
||
| 32 | * |
||
| 33 | * @var array |
||
| 34 | */ |
||
| 35 | protected $casts = [ |
||
| 36 | 'revoked' => 'bool', |
||
| 37 | 'scopes' => 'array', |
||
| 38 | ]; |
||
| 39 | |||
| 40 | /** |
||
| 41 | * The attributes that should be mutated to dates. |
||
| 42 | * |
||
| 43 | * @var array |
||
| 44 | */ |
||
| 45 | protected $dates = [ |
||
| 46 | 'expires_at', |
||
| 47 | ]; |
||
| 48 | |||
| 49 | /** |
||
| 50 | * Indicates if the model should be timestamped. |
||
| 51 | * |
||
| 52 | * @var bool |
||
| 53 | */ |
||
| 54 | public $timestamps = false; |
||
| 55 | |||
| 56 | /** |
||
| 57 | * The "type" of the primary key ID. |
||
| 58 | * |
||
| 59 | * @var string |
||
| 60 | */ |
||
| 61 | protected $keyType = 'string'; |
||
| 62 | |||
| 63 | /** |
||
| 64 | * Get the client that owns the authentication code. |
||
| 65 | * |
||
| 66 | * @return \Illuminate\Database\Eloquent\Relations\BelongsTo |
||
| 67 | */ |
||
| 68 | public function client() |
||
| 72 | } |
||
| 73 |