UserOauth.php 669 B

12345678910111213141516171819202122232425262728293031323334353637
  1. <?php
  2. namespace App\Models;
  3. use App\Models\Relations\BelongsToUserTrait;
  4. use Illuminate\Database\Eloquent\Model;
  5. use Illuminate\Support\Facades\Cache;
  6. class UserOauth extends Model
  7. {
  8. use BelongsToUserTrait;
  9. public $incrementing = false;
  10. protected $table = 'user_oauth';
  11. protected $primaryKey = 'id';
  12. /**
  13. * The attributes that are mass assignable.
  14. *
  15. * @var array
  16. */
  17. protected $fillable = ['id','user_id', 'access_token','refresh_token','expires_in','auth_type','nickname','avatar'];
  18. /**
  19. * The attributes excluded from the model's JSON form.
  20. *
  21. * @var array
  22. */
  23. protected $hidden = [];
  24. }