laravel-typegen icon indicating copy to clipboard operation
laravel-typegen copied to clipboard

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

Open WataruNishimura opened this issue 9 months ago • 1 comments

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, use sail artisan instead of php artisan

WataruNishimura avatar May 04 '24 01:05 WataruNishimura

@WataruNishimura Of course! I appreciate your help.

7nohe avatar May 04 '24 02:05 7nohe