How can I pass default value in resource field without showing that field in form while creating and updating?
I know I can use withMeta(['value' => '1']) to pass default value but it will won't work if field is not visible on form.
also, I know that in the model I can use $attribute variable to pass default value but I only want to pass the default value if resource created is from nova.
from Newest questions tagged laravel-5 - Stack Overflow https://ift.tt/32IrGyj
via IFTTT
Aucun commentaire:
Enregistrer un commentaire