Closed vintagesucks closed 3 months ago
@vintagesucks Thank you for reporting the issue. I have fixed it in #38. Could you please specify the branch as below and check if the issue has been resolved?
package.json:
{
"devDependencies": {
"@7nohe/laravel-typegen": "github:7nohe/laravel-typegen#fix/namespaced-models-for-windows",
}
}
@7nohe Thank you for looking into this.
Yarn wouldn't let me specify the branch in that format without errors, but after I manually applied the changes from #38 to generate.js
and utils.js
via yarn patch
, it worked on both Windows and macOS! 🚀
https://github.com/7nohe/laravel-typegen/blob/ee03e079fe595bb8feb27e8c5da3732176600f7b/src/generate.ts#L64
Hi, when I tried this package I noticed that type generation failed on Windows, but worked on macOS.
php artisan model:show App\\Models\\User --json
(current format)php artisan model:show App/Models/User --json