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
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
sail
optionsail
option is enabled, usesail artisan
instead ofphp artisan