Set a default value in the code

Posted 2 years ago by mathishuettl


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.

Please sign in or create an account to participate in this conversation.