Skip to content

Instantly share code, notes, and snippets.

@JordanDalton
Created February 19, 2023 14:28
Show Gist options
  • Save JordanDalton/d704e91670ee8392b19bf758256bb46a to your computer and use it in GitHub Desktop.
Save JordanDalton/d704e91670ee8392b19bf758256bb46a to your computer and use it in GitHub Desktop.
Pipeline Helper / Wrapper
<?php
if( ! function_exists('pipe')) {
function pipe($payload, $steps = [])
{
return app(\Illuminate\Pipeline\Pipeline::class)
->send($payload)
->through($steps)
->thenReturn();
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment