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

Run artisan commands inside/for a module #1976

Open
secrethash opened this issue Nov 15, 2024 · 1 comment
Open

Run artisan commands inside/for a module #1976

secrethash opened this issue Nov 15, 2024 · 1 comment

Comments

@secrethash
Copy link

Summary

It would be great if we can run artisan commands inside an application module. I tried to find if this feature already exists, but couldn't find anywhere. If it does, please guide me so I can close this request.

What & Why

A lot of packages now a days have their own generate commands for example Laravel Verbs:

php artisan verbs:event CustomerBeganTrial

This makes it difficult to maintain the application as for each creation we need to move the files and update the namespaces. It would be great if we can just specify --module= flag and it runs for that specific module. I see that it is a feature in internachi/modular and also somewhat similar feature in stancl/tenancy

@dcblogdev
Copy link
Collaborator

Are you aware you can call module specific commands? ie php artisan module:make-controller MyAwesomeController Blog

would create a controller in a module called Blog.

I've seen the commands in modular it indeed that's cool. Not sure if that's something that can be supported with out structure. One to look into.

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

No branches or pull requests

2 participants