-
-
Save bhaidar/ecddf770671d0264f725992841ca015d to your computer and use it in GitHub Desktop.
Pipeline Helper / Wrapper
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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