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
With Laravel > 5.5, this package has some issues when updating a model as mentioned in #22 . There are some possible fixes to that (i.e. overriding getDirty and castAttribute methods).
However, I also noticed a similar issue when inserting a new record on database using Laravel 5.6.
In Class Illuminate\Database\Eloquent\Model, the method performInsert(), has been modified from
$attributes = $this->attributes;
to
$attributes = $this->getAttributes();
So the attributes are decrypted before being saved and are therefore stored in the database as plaintext. Is there a better way to fix this issue then overriding the whole performInsert() function to just change that line?
The text was updated successfully, but these errors were encountered:
With Laravel > 5.5, this package has some issues when updating a model as mentioned in #22 . There are some possible fixes to that (i.e. overriding
getDirty
andcastAttribute
methods).However, I also noticed a similar issue when inserting a new record on database using Laravel 5.6.
In Class
Illuminate\Database\Eloquent\Model
, the methodperformInsert()
, has been modified from$attributes = $this->attributes;
to
$attributes = $this->getAttributes();
So the attributes are decrypted before being saved and are therefore stored in the database as plaintext. Is there a better way to fix this issue then overriding the whole
performInsert()
function to just change that line?The text was updated successfully, but these errors were encountered: