laravel-typegen
laravel-typegen copied to clipboard
feat: support generate types via sail and outside of docker container
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
- add
sail
option - if
sail
option is enabled, usesail artisan
instead ofphp artisan
@WataruNishimura Of course! I appreciate your help.