Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Required field #370

Closed
LimitTech opened this issue Aug 31, 2018 · 2 comments
Closed

Required field #370

LimitTech opened this issue Aug 31, 2018 · 2 comments

Comments

@LimitTech
Copy link

Hello!

Is there any option to set a required field?

Thanks

@macolson
Copy link

You can set a required field using the Nova / Laravel rules definitions like in the documentations example

Password::make('Password')
    ->onlyOnForms()
    ->creationRules('required', 'string', 'min:6')
    ->updateRules('nullable', 'string', 'min:6'),

@LimitTech
Copy link
Author

Oh! Thank you!

I did a search using "required" word and I didn't find anything so I thought it was something like the default value: #58

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants