feat: initial Laravel support

Refs #17
This commit is contained in:
Oliver Davies 2023-03-13 21:18:30 +00:00
parent cf25359c7b
commit 7978c03709
2 changed files with 10 additions and 0 deletions

View file

@ -40,6 +40,7 @@ final class ConfigurationValidator implements ValidatorInterface
new Assert\Choice([
'drupal-project',
'fractal',
'laravel',
'php-library',
]),
],

View file

@ -26,5 +26,14 @@ fractal *args:
{{ "just yarn fractal {{ args }}" | raw }}
{% endif %}
{% if "laravel" is same as type %}
artisan *args:
docker compose run \
--entrypoint php \
--rm \
--tty \
php artisan {{ "{{ args }}" | raw }}
{% endif %}
_exec +args:
{{ "docker compose exec {{ args }}" | raw }}