[InvalidArgumentException] 计划的回调事件无效。必须是字符串或可调用的。这是代码
protected function schedule(Schedule $schedule)
{
// $schedule->command('inspire')
// ->hourly();
$schedule->call($this->consult());
}
/**
* Register the Closure based commands for the application.
*
* @return void
*/
protected function consult()
{//try {
$url=DB::table('remote_services')->pluck('url');
foreach ($url as $url){
echo $url;
echo ' ';}
//}catch (InvalidArgumentException $e ){
// echo 'captured exception';
}