'timestamp', 'updated_at' => 'timestamp' ]; public function users(): HasMany { return $this->hasMany(User::class, 'group_id', 'id'); } public function servers() { return Server::whereJsonContains('group_ids', (string) $this->id)->get(); } }