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

Add a validation rule on the JSON Field itself #19

Closed
beliolfa opened this issue Oct 8, 2018 · 0 comments
Closed

Add a validation rule on the JSON Field itself #19

beliolfa opened this issue Oct 8, 2018 · 0 comments

Comments

@beliolfa
Copy link
Contributor

beliolfa commented Oct 8, 2018

Doing something like
JSON::make('Others', [ Date::make("Date", "dailyMenuDate")->resolveUsing( function ($value) { return Carbon::make($value)->format('Y-m-d'); }) ], "meta") ->rules('required', new DailyMenuRule),
Works in a weird way, Create and Updates are prevented but not error message is shown

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

1 participant