| Total Complexity | 2 |
| Total Lines | 41 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 8 | class AccessToken extends Model |
||
| 9 | { |
||
| 10 | /** |
||
| 11 | * The database table used by the model. |
||
| 12 | * |
||
| 13 | * @var string |
||
| 14 | */ |
||
| 15 | protected $table = 'api_access_tokens'; |
||
| 16 | |||
| 17 | /** |
||
| 18 | * The guarded attributes on the model. |
||
| 19 | * |
||
| 20 | * @var array |
||
| 21 | */ |
||
| 22 | protected $guarded = ['id']; |
||
| 23 | |||
| 24 | /** |
||
| 25 | * The attributes that should be mutated to dates. |
||
| 26 | * |
||
| 27 | * @var array |
||
| 28 | */ |
||
| 29 | protected $dates = ['expired_at']; |
||
| 30 | |||
| 31 | /** |
||
| 32 | * Get the user that the token belongs to. |
||
| 33 | * |
||
| 34 | * @return \Illuminate\Database\Eloquent\Relations\BelongsTo |
||
| 35 | */ |
||
| 36 | public function user() |
||
| 39 | } |
||
| 40 | |||
| 41 | /** |
||
| 42 | * Get the app that the token belongs to. |
||
| 43 | * |
||
| 44 | * @return \Illuminate\Database\Eloquent\Relations\BelongsTo |
||
| 45 | */ |
||
| 46 | public function app() |
||
| 51 |