Php Laravel 5在内核调度中调用控制器操作

Php Laravel 5在内核调度中调用控制器操作,php,laravel-5,Php,Laravel 5,我在命名空间中使用了控制器(testController)和操作(index) 应用程序\模块\管理员\控制器\ 我试图用以下方式从内核调度函数调用操作(索引) $this->call('App\Modules\Admin\Controllers\testController@index')->cron('*/1 * * * *'); 但行动并没有被要求。这是一个错误 错误: 异常“InvalidArgumentException”,消息为“Command”App\Modules\

我在命名空间中使用了控制器(testController)和操作(index) 应用程序\模块\管理员\控制器\

我试图用以下方式从内核调度函数调用操作(索引)

$this->call('App\Modules\Admin\Controllers\testController@index')->cron('*/1 * * * *');
但行动并没有被要求。这是一个错误

错误: 异常“InvalidArgumentException”,消息为“Command”App\Modules\Admin\Controllers\testController@index“没有定义。”


通过以下帮助解决了上述问题:如果您解决了,请回答您自己的问题或将其删除。不要把解决方案当作评论。