Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for types when develop a laravel packages (or submodules) #29

Open
sefirosweb opened this issue Oct 6, 2022 · 0 comments
Open

Comments

@sefirosweb
Copy link

sefirosweb commented Oct 6, 2022

Hello guys, this package have full support to make a types when are developing packages for laravel?

I have an folder of "packages" with submodules and I set the model of this resource, all the models are created, but i see the relationships of them is not added, only one but this relationship are outside of folder (from original model folder)

I attach picture I hope explain this:
image

The command executed to generate a submodel types:

php artisan types:generate --noKebabCase --modelDir=packages/laravel-mailing/src/Http/Models --outputDir=packages/laravel-mailing/resources/js/types/Models/

PD: It seems that even if you specific the models folder it does not look for the relationships in this folder

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant