-
Notifications
You must be signed in to change notification settings - Fork 36
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
Date field must cast to 'date' in Eloquent model #22
Comments
Set the column name: Date::make('Start Date', 'start_time'),
Date::make('End Date', 'end_time') https://nova.laravel.com/docs/1.0/resources/fields.html#field-column-conventions |
You are defining the casts as |
^ bet me to it :') |
Ups, my bad. Thanks for the quick response 👍 |
Closed
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I'm getting this errror when using a Date field on a Nova resoruce.
The model associated with the resource already has the "cast" property with the fields needed.
The text was updated successfully, but these errors were encountered: