| Total Complexity | 2 |
| Total Lines | 30 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 15 | class StoredJwtToken extends Model |
||
| 16 | { |
||
| 17 | /** |
||
| 18 | * @inheritdoc |
||
| 19 | */ |
||
| 20 | protected $guarded = []; |
||
| 21 | |||
| 22 | /** |
||
| 23 | * @inheritdoc |
||
| 24 | */ |
||
| 25 | protected $casts = [ |
||
| 26 | 'abilities' => 'json', |
||
| 27 | ]; |
||
| 28 | |||
| 29 | /** |
||
| 30 | * @inheritDoc |
||
| 31 | */ |
||
| 32 | 8 | public function getTable(): string |
|
| 33 | { |
||
| 34 | 8 | return config('jwt-auth.tables.tokens', parent::getTable()); |
|
| 35 | } |
||
| 36 | |||
| 37 | /** |
||
| 38 | * Get model used token |
||
| 39 | * |
||
| 40 | * @return \Illuminate\Database\Eloquent\Relations\MorphTo |
||
| 41 | */ |
||
| 42 | 1 | public function tokenable(): \Illuminate\Database\Eloquent\Relations\MorphTo |
|
| 45 | } |
||
| 46 | } |
||
| 47 |