How to save and load data from select type elements that do not have the saved d...
Good night people! Could anyone please tell me, what would be the best practice for saving and loading data from select type elements that do not have the description saved in the database?
I am currently saving only the id of the selected option and at the time of displaying, I created a translation file that generates the description from the id. But I guess that's not the best way. I did this because I did not know better. And besides, since I use AngularJS to display the values on the screen, I can not integrate it with the blade.
These are fixed fields, where the user can not enter new values. Example: Type of person (Physical or Legal), Type of contact (email, telephone or fax). In these cases, I save only a number that represents that description, rather than saving the entire description.
Would anyone have a better suggestion? Thank you in advance.
Want to reply to this thread?Login with github.