hasMany(History::class, 'user_id'); } public function playgroundChats() { return $this->hasMany(PlaygroundChat::class, 'user_id'); } }