You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
It appears that there are differences in the application of casts between a model and a pivot in Laravel.
The ability to cast with an enum class seems to be missing for pivot :
framework/src/Illuminate/Database/Eloquent/Relations/Concerns/InteractsWithPivotTable.php
Line 674 in c62d15b
versus
framework/src/Illuminate/Database/Eloquent/Concerns/HasAttributes.php
Line 858 in c62d15b
Beta Was this translation helpful? Give feedback.
All reactions