Source path: app/Models/SocialAccount.php
Extracted from supplied specification. Review before copying into application.

<?php
namespace App\Models;

use Illuminate\Database\Eloquent\Model;

class SocialAccount extends Model
{
    protected $guarded = [];
    protected $hidden = ['access_token', 'refresh_token'];
    protected $casts = [
        'access_token'     => 'encrypted',
        'refresh_token'    => 'encrypted',
        'token_expires_at' => 'datetime',
    ];

    public function user() { return $this->belongsTo(User::class); }
}
