class
Illuminate
/
Pipeline
/
Hub
You're browsing the documentation for an upcoming version of Laravel. The documentation and features of this release are subject to change.
Hub
Implements
Properties
protected
$pipelines array
All of the available pipelines.
Default: []
Methods
public
__construct ( Container $container ) : void
Create a new Hub instance.
Parameters
- $container Container |null
public
defaults ( Closure $callback ) : void
Define the default named pipeline.
Parameters
- $callback Closure
public
pipeline ( $name , Closure $callback ) : void
Define a new named pipeline.
Parameters
- $name string
- $callback Closure
public
pipe ( $object , $pipeline ) : mixed
Send an object through one of the available pipelines.
Parameters
- $object mixed
- $pipeline string|null