Skip to content

9.6.1

Latest
Compare
Choose a tag to compare
@binaryk binaryk released this 04 Dec 15:20
b15e3f6

Default Stored Value

During any (update or store requests), this is called after the fill and store callbacks.

You can pass a callable or a value, and it will be attached to the model if no value provided otherwise.

Imagine it's like attributes in the model:

field('currency')->defaultCallback('EUR')