79352429

Date: 2025-01-13 14:06:44
Score: 0.5
Natty:
Report link

You should be able to try/catch the pipeline.

use Illuminate\Support\Facades\Pipeline;

try{

    $data = Pipeline::send($whatever)
        ->through([
            TaskOne::class,
            TaskTwo::class
        ])
        ->thenReturn();

}catch(MyException $e){
    
    // Handle however you want
}

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Bennett