You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
in Laravel, I created a Task but it seems I can't get the returned data from the run method inside a Task class. the $output returns false
classMyTaskextendsTask
{
publicfunctionconfigure() {}
publicfunctionrun() {
return'a'; // just an example. I can't get this data on the then()'s $output
}
}
$pool = Pool::create()->autoload(public_path('index.php'));
foreach ($itemsas$item) {
$pool->add(newMyTask())
->then(function ($output) {
echo$output;
})
}
The text was updated successfully, but these errors were encountered:
in Laravel, I created a Task but it seems I can't get the returned data from the
run
method inside a Task class. the$output
returnsfalse
The text was updated successfully, but these errors were encountered: