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

There are no commands defined in the "artisan module" namespace. #225

Closed
ridwanskaterock opened this issue May 18, 2017 · 7 comments

Comments

@ridwanskaterock
Copy link

@ridwanskaterock ridwanskaterock commented May 18, 2017

i running artisan command on controller Artisan::call('artisan module:migrate');

why the system give response There are no commands defined in the "artisan module" namespace.

can you help me ?

@ridwanskaterock

This comment has been minimized.

Copy link
Author

@ridwanskaterock ridwanskaterock commented May 18, 2017

any way for make command on controller like this

$moduleMigrate->fire(); ?

@nWidart

This comment has been minimized.

Copy link
Owner

@nWidart nWidart commented May 18, 2017

That's because you just need to use Artisan::call('module:mgirate') if I'm not mistaken.

@ridwanskaterock

This comment has been minimized.

Copy link
Author

@ridwanskaterock ridwanskaterock commented May 19, 2017

lol my problem cause i define artisan call like this

Artisan::call('artisan module:migrate');

thanks for it

@jayadevkv

This comment has been minimized.

Copy link

@jayadevkv jayadevkv commented Oct 28, 2018

Migration for a specific module from controller is not working.
For eg. Artisan::call('artisan module:migrate User');

It gives command does not exists error

@twf-nikhila

This comment has been minimized.

Copy link

@twf-nikhila twf-nikhila commented Dec 3, 2019

@jayadevkv yes it doesn't work.
@nWidart any solution to this? Shows command not found. Please help with it.

@nWidart

This comment has been minimized.

Copy link
Owner

@nWidart nWidart commented Dec 3, 2019

Not sure no. I have this working without issues.

Maybe take a look if the package is loaded by the time you call the command.

@twf-nikhila

This comment has been minimized.

Copy link

@twf-nikhila twf-nikhila commented Dec 4, 2019

@nWidart Checked your asgard project, got it working now.

This works:
Artisan::call('module:migrate', ['module' => "ModuleName"]);

As expected, this doesn't work:
Artisan::call('module:migrate ModuleName');

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
4 participants
You can’t perform that action at this time.