Closed osama-klabs closed 2 years ago
Hi @osama-klabs ,
Unfortunately, it's not possible to do this. The logic that generates this key lives in the final
class ObjectIdEncrypter
. Since this is a final
class, it's not possible to override any methods on it.
May I ask why you need to update the objectID format exactly? Perhaps we can find a way around that requirement.
I have multiple projects with different model namespace like App\Models\Product, App\Product etc and they are using same database as well as algolia account
Description
I am trying to change objectId from App\Models{anyModel}::{id} to id{id} Below function only change the key not whole objectId (model name)
Steps To Reproduce
Just run import command you will see the objectId in terminal