belongsTo(Palette::class); } public function commands() { return $this->hasMany(CommandHistory::class); } public function currentState() { return $this->hasMany(CurrentState::class); } public function winningState() { return $this->hasMany(WinningState::class); } }