Using the Pipeline helper in Laravel

Опубликовано: 10 Март 2023
на канале: Amit Merchant
933
31

Learn how to use the pipeline pattern in Laravel using the pipeline facade.

Essentially, the Pipeline class is a simple implementation of the pipeline pattern in PHP. It’s a great way to chain multiple callbacks together and pass the result of one callback to the next callback in a sequential manner.

Read more about Pipelines in Laravel here: https://www.amitmerchant.com/the-pipe...

You can follow me on Twitter:   / amit_merchant  

00:00 Introduction to Pipelines
00:13 Pipelines in General
00:40 Processing Input Sequentially
01:07 Creating Slug with Pipeline
02:14 Defining Callback Functions
03:43 Chain of Two Callbacks
04:26 Outputting Processed Data
05:24 Using Invokable Classes
06:51 Refactoring with Invokable Classes
07:42 Laravel's Pipeline Helper
08:03 Closing Remarks

#Laravel #Pipeline #PHP