Skip to content

Is it possible to use dump() inside of an activity? #107

Answered by rmcdaniel
oncet asked this question in Q&A
Discussion options

You must be logged in to vote

@oncet

If you use dump() then it will likely end up only displaying if you are using a queue worker on the command line. If you use horizon it will probably not display. I would recommend using Log::info() in most cases.

<?php

declare(strict_types=1);

namespace App\Workflows\Simple;

use Workflow\Activity;

class SimpleActivity extends Activity
{
    public function execute()
    {
        dump('testing');
        return 'activity';
    }
}

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by rmcdaniel
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants