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
◐ [Model] Running 'php artisan model:show App\\Models\\User --json' 17:40:40
PHP Fatal error: Cannot declare class App\Models\User, because the name is already in use in app\Models\User.php on line 12
[17:40:42] ℹ [Model] Failed to get model data for User'. You still can generate types by running php artisan model:show App\\Models\\User --json manually and then run 'laravel-typegen' with SKIP_ARTISAN_COMMAND=true environment variable.
ERROR [Model] Command failed: php artisan model:show App\\Models\\User --json 17:40:42
PHP Fatal error: Cannot declare class App\Models\User, because the name is already in use in app\Models\User.php on line 12
php artisan model:show App/Models/User --json
macOS: works
Windows: works
The text was updated successfully, but these errors were encountered:
@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?
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! 🚀
laravel-typegen/src/generate.ts
Line 64 in ee03e07
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
The text was updated successfully, but these errors were encountered: