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

Closure based commands can't be called from code using Artisan::call #15856

Closed
sede2 opened this issue Oct 11, 2016 · 1 comment
Closed

Closure based commands can't be called from code using Artisan::call #15856

sede2 opened this issue Oct 11, 2016 · 1 comment

Comments

@sede2
Copy link

sede2 commented Oct 11, 2016

  • Laravel Version: 5.3.18
  • PHP Version: 7.0.4
  • Database Driver & Version: none

Description:

If you call a command from routes.console.php using Artisan::call() it throws CommandNotFoundException

Steps To Reproduce:

Install new laravel and

Route::get('/', function () {
    return Artisan::call('inspire');
});
@uber1337
Copy link

check the documentation:
https://laravel.com/docs/5.3/artisan#closure-commands

I think you are doing a mixing, better read above

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

3 participants