| 12345678910111213141516171819202122232425262728293031323334353637 |
- <?php
- namespace App\Models;
- use App\Models\Relations\BelongsToUserTrait;
- use Illuminate\Database\Eloquent\Model;
- use Illuminate\Support\Facades\Cache;
- class UserOauth extends Model
- {
- use BelongsToUserTrait;
- public $incrementing = false;
- protected $table = 'user_oauth';
- protected $primaryKey = 'id';
- /**
- * The attributes that are mass assignable.
- *
- * @var array
- */
- protected $fillable = ['id','user_id', 'access_token','refresh_token','expires_in','auth_type','nickname','avatar'];
- /**
- * The attributes excluded from the model's JSON form.
- *
- * @var array
- */
- protected $hidden = [];
- }
|