You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Will look into it i'm testing it at the moment to see if the implementation works properly or not, then i'll add some tests to it and make a PR
currenty i have: if (method_exists($this, 'isEncryptedCastable') && $this->isEncryptedCastable($key)) { $attributes[$key] = $value; continue; }
witch should work with older laravel versions
so after a little further testing the code isn't really necessary for it to work but if there is custom setters the encrypted attribute its necessary for it to work
I think i got it figured out now with the encryption so far none of my tests fail still a little testing to be done before i can make a pull request if (method_exists($this, 'isEncryptedCastable') && $this->isEncryptedCastable($key) && $this->getModel()->hasSetMutator($key)) { $attributes[$key] = $value; continue; }
Activity
dwightwatson commentedon Jul 13, 2021
Happy to review a PR with tests that covers this functionality. Unfortunately I'm not in a position to work on this feature at the moment.
kiwina commentedon Jul 13, 2021
Will look into it i'm testing it at the moment to see if the implementation works properly or not, then i'll add some tests to it and make a PR
currenty i have:
if (method_exists($this, 'isEncryptedCastable') && $this->isEncryptedCastable($key)) { $attributes[$key] = $value; continue; }witch should work with older laravel versions
kiwina commentedon Jul 20, 2021
so after a little further testing the code isn't really necessary for it to work but if there is custom setters the encrypted attribute its necessary for it to work
kiwina commentedon Jul 26, 2021
I think i got it figured out now with the encryption so far none of my tests fail still a little testing to be done before i can make a pull request
if (method_exists($this, 'isEncryptedCastable') && $this->isEncryptedCastable($key) && $this->getModel()->hasSetMutator($key)) { $attributes[$key] = $value; continue; }