Properly show time
'time' is a column in a table, and its of type, time(). When I call it, on the Card it shows as 120000, even though on the form, its specified like this:
So far my only solution has been to do $commercialHours = TimeRegistration::sum('time')/10000;
Any better ideas?
1 Reply
Use a time cast on the column and Carbon format the value