mardi 23 juillet 2019

Laraval Pipeline then() closure returns null

Running into an issue where the pipeline is being executed fully (I have logged every step of the way), and even in the closure the $conversion object is logged perfectly. But then the pipeline still returns null. I have also tried thenReturn(); same result

    $conversionObj = [..];
    return app(Pipeline::class)
        -->send($conversionObj)
        ->through($this->pipes)
        ->then(function($conversion){
            Log::info($conversion);
            return $conversion;
        }
    );



from Newest questions tagged laravel-5 - Stack Overflow https://ift.tt/2M3eVt3
via IFTTT

Aucun commentaire:

Enregistrer un commentaire