在WRITE连接上访问Eloquent的一对一关系

There is a case in my app, where I need to force the database WRITE connection when accessing a relation. How can I do it?

Models

class User extends Model
{
    /**
     * Get the phone record associated with the user.
     */
    public function phone()
    {
        return $this->hasOne('App\Phone');
    }
}

class Phone extends Model
{
    /**
     * Get the user that owns the phone.
     */
    public function user()
    {
        return $this->belongsTo('App\User');
    }
}

Now, I've got this code:

$user = $request->user();

if ($user && $user->phone) {
    // do something...
}

Now, I need to force WRITE on this: $user->phone.

I know there's the onWriteConnection() method, however it returns a Builder object, on which I cannot use the ->phone relation.

Any idea how I can force something like this below?

// Warning: pseudo code!
if ($user && $user->onWriteConnection()->phone) {/*...*/}

If you are using multiple Connection then try to use this. For example:

'read' => [
    'host' => '192.168.1.1',
],
'write' => [
    'host' => '196.168.1.2'
],
$user = DB::connection('write')->select(...);