src/Slushie/Middleware/Loader.php
public function register() {
    $this->registerMiddleware();

    $this->app->before($this->createBeforeFilter());
    $this->app->after($this->createAfterFilter());
  }
public function register() {
    $this->registerMiddleware();

    $this->app->before($this->createBeforeFilter());
    $this->app->after($this->createAfterFilter());
  }
public function register ( ) { $ this -> registerMiddleware ( ) ; $ this -> app -> before ( $ this -> createBeforeFilter ( ) ) ; $ this -> app -> after ( $ this -> createAfterFilter ( ) ) ; }
Register all configured middleware classes with the
appropriate App-level events.
Register all configured middleware classes with the appropriate App - level events .