'json', 'snapshot' => 'array']; public function user() { return $this->hasOne(User::class, 'id', 'user_id'); } }