Support the ongoing development of Laravel.io →
Database Eloquent Architecture
Last updated 2 years ago.
0

Missing an single quote in the protected $casts line. Might that be the issue?

0

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?

0

You may want to set $incrementing to false on the model since it isnt an autoincrement id field.

0

Sign in to participate in this thread!

Eventy

Your banner here too?

shez1983 shez1983 Joined 31 Dec 2014

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2024 Laravel.io - All rights reserved.