Skip to content

Instantly share code, notes, and snippets.

@elishaukpong
Created January 24, 2023 23:44
Show Gist options
  • Save elishaukpong/a49346b412089d1ec744f43009628504 to your computer and use it in GitHub Desktop.
Save elishaukpong/a49346b412089d1ec744f43009628504 to your computer and use it in GitHub Desktop.
Gist showing a basic overview of pipelines
<?php
app(Pipeline::class)
->send($content)
->through($pipes)
->via(‘customMethodName’) // <---- This one :)
->then(function ($content) {
return Post::create(['content' => $content]);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment