Comments (4)
Yes but still the field constructor shouldn't return an error.
I've added a ternary operator to resolve it and to result 'empty' in case of a null.
Thanks @njsoria and @yatsyukv !
from nova-time-field.
@njsoria
That's Carbon throwing it, as it can't parse null
.
The workaround solution is to set the default value for your time
(or whatever you use) model attribute.
protected $attributes = [
'time' => '00:00:00'
];
from nova-time-field.
Thanks! This seems to have resolved it. I had to update the database to eliminate the existing NULL values and replace with the default.
from nova-time-field.
Thanks !! Keeps the project sharp !
from nova-time-field.
Related Issues (20)
- It Doesn't Work With Date Mutators HOT 2
- 12 Hour Format in Update Form HOT 1
- Cant make it nullable. HOT 12
- Unable to type a time into the field HOT 3
- Duplicated prop HOT 1
- Nullable does not work. HOT 3
- Validation message showing twice HOT 1
- Error when field is casted as datetime HOT 3
- Time Range HOT 1
- Remove leading 0 when displaying withTwelveHourTime() HOT 1
- Placeholder wrong time HOT 1
- The field must contain a valid time HOT 14
- Javascript error in v1.1 HOT 2
- Help text not shown HOT 2
- Undefined type 'Laraning\NovaTimeField\TimeField'.
- Field does not react to changes unless date picker is open
- Action with TimeField not working
- Problem when retrieve data from MsSQL when field TIME(7) HOT 1
- Nova 4 support HOT 9
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nova-time-field.