Larabros\Elogram\Http\Middleware\CreateMiddlewareTrait::create PHP Method

create() public static method

Factory method used to register this middleware on a handler stack.
public static create ( Noodlehaus\ConfigInterface $config ) : Closure
$config Noodlehaus\ConfigInterface
return Closure
    public static function create(ConfigInterface $config)
    {
        return function (callable $handler) use($config) {
            return new static($handler, $config);
        };
    }
CreateMiddlewareTrait