Missing an single quote in the protected $casts
line. Might that be the issue?
nop.. that was me trying to clean up code to make it look smaller/easier/faster to read.. casts only work when you output data i believe?
You may want to set $incrementing
to false on the model since it isnt an autoincrement id field.
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community