morphMany(Reward::class, 'rewardable'); } public function primaryId(): string { return (string)$this->getAttribute($this->primaryKey); } }