original_string: protected function setupMiddleware()
      {
          $this->app['router']->middleware('user', UserMiddleware::class);
          $this->app['router']->middleware('roles', RoleMiddleware::class);
          $this->app['router']->middleware('permissions', PermissionMiddleware::class);
      }
code: protected function setupMiddleware()
      {
          $this->app['router']->middleware('user', UserMiddleware::class);
          $this->app['router']->middleware('roles', RoleMiddleware::class);
          $this->app['router']->middleware('permissions', PermissionMiddleware::class);
      }
code_tokens: protected function setupMiddleware ( ) { $ this -> app [ 'router' ] -> middleware ( 'user' , UserMiddleware :: class ) ; $ this -> app [ 'router' ] -> middleware ( 'roles' , RoleMiddleware :: class ) ; $ this -> app [ 'router' ] -> middleware ( 'permissions' , PermissionMiddleware :: class ) ; }
docstring: Register the middleware to the application
  
  Register the following middleware:
  - \Laraflock\Dashboard\Middleware\UserMiddleware
  - \Laraflock\Dashboard\Middleware\RoleMiddleware
  - \Laraflock\Dashboard\Middleware\PermissionMiddleware
docstring_tokens: Register the middleware to the application