vendredi 2 août 2019

Laravel Nova | How can i pass default value while storing Boolean field from Laravel nova resource

I have one field in a database table and its default value is true now when someone creates an entry from Laravel nova that time I want to pass true by default without showing that field in creating and update form... so can anyone help me how can I solve this.

Boolean::make('Is Active', 'is_active')->onlyOnIndex(),



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire