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
Thank you. It is indeed a bug and not a feature request. Laravel added support for casting model fields to backed enums, and that breaks Telescope. This in my case broke my seeders and halted development (for a while before I dug into the code and patched it locally).
The PR submitted is just a quick fix I'm using locally.
Description:
In
Laravel\Telescope\FormatModel.php
, an Eloquent model key can be cast to a backed enum, which would not be able to be cast to a string.Steps To Reproduce:
id
to a backed enum in the$casts
member variable in said modelcreate
orupdateOrCreate
etc ...I have submitted a rough fix in a PR#1286, but I'm not too sure that will help as I don't have the full picture.
The text was updated successfully, but these errors were encountered: