in mysql i have the option to set a default value but in my app the default value is variable so i need to set this right before the model gets saved in the database but where does i have to do this?
For sure when the value is another then the standard-value it shouldn't be overwritten.
Set a default value in the code
Hello,
i am really new in laravel:
in mysql i have the option to set a default value but in my app the default value is variable so i need to set this right before the model gets saved in the database but where does i have to do this?
For sure when the value is another then the standard-value it shouldn't be overwritten.