lepikhinb / laravel-typescript

MIT License
387 stars 46 forks source link

Laravel 9 support #9

Closed media253 closed 2 years ago

media253 commented 2 years ago

Support for Laravel 9

LeoColomb commented 2 years ago

@media253 orchestra/testbench must be aligned with v7.0 as well 😊

media253 commented 2 years ago

@LeoColomb Ah, correct. Done!

superbiche commented 2 years ago

@lepikhinb hi, any chance to see this PR merged soon? I made a ModelGenerator that supports generating proper types for Enum casts, would love to make a PR for it but this one needs to be merged prior beforehand.
Thanks

robmeijerink commented 2 years ago

@superbiche would be great to see proper enum support! Thanks

superbiche commented 2 years ago

@robmeijerink I will publish a PR in a few days after I've shipped the project I'm working on, but it works. For now I managed to have Enum support for Enum casts (not ENUM tables, it must be a model enum cast), and optionally generate the corresponding TS enum in another file (a .ts file without a namespace so enums are available at runtime).
Also it will add support for new Attribute-based getters.

superbiche commented 2 years ago

@robmeijerink see #14 - still a rough draft but a working one. Would love to get your feedback!