7nohe / laravel-typegen

The library lets you generate TypeScript types from your Laravel code
79 stars 5 forks source link

feat: support generate types via sail and outside of docker container #27

Open WataruNishimura opened 5 months ago

WataruNishimura commented 5 months ago

Summary

When generating, utilize sail artisan instead of php artisan outside of the Sail container to echo model JSON. Within the Docker container, we can invoke php artisan model:show if Sail is being used. However, outside the Docker container, calling artisan model:show via PHP is not possible; we need to use sail.

Could I try this issue? If it's ok, I will create PR.

Solution

7nohe commented 5 months ago

@WataruNishimura Of course! I appreciate your help.