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
Hi Dan, at the moment we only support the old attributes (getFullNameAttribute). I will add this to roadmap to also handle this correctly (PRs are also welcome).
One of the problems here is that we cannot determine the type off the attribute if there are no type hints available.
I can't seem to generate typing for custom attributes not part of the database table.
For example:
Database has
first_name
andlast_name
fields, but Model has a custom attribute forfullName
/full_name
e.g.However, it does not output
full_name
on the type.d.ts
file after I run./artisan types:generate
As far as I understand, this package should work with custom attributes.
The text was updated successfully, but these errors were encountered: