What is the best way to set an attribute on a model without saving it to the database?Created 6 years ago by daviesgeek
I'm working with sensitive data (credit card numbers), and I'd like to be able to set the card number on a model (this is from inside a
FieldTypeAccessor) without having the model try to save the attribute into the database, (which results in an SQL error).
What's is the best to to do this? It seems like this is probably more of a Laravel question, but I'm not really sure how to go about this.