protected function setupMiddleware()
    {
        $this->app['router']->middleware('user', UserMiddleware::class);
        $this->app['router']->middleware('roles', RoleMiddleware::class);
        $this->app['router']->middleware('permissions', PermissionMiddleware::class);
    }
protected function setupMiddleware()
    {
        $this->app['router']->middleware('user', UserMiddleware::class);
        $this->app['router']->middleware('roles', RoleMiddleware::class);
        $this->app['router']->middleware('permissions', PermissionMiddleware::class);
    }
protected function setupMiddleware ( ) { $ this -> app [ 'router' ] -> middleware ( 'user' , UserMiddleware :: class ) ; $ this -> app [ 'router' ] -> middleware ( 'roles' , RoleMiddleware :: class ) ; $ this -> app [ 'router' ] -> middleware ( 'permissions' , PermissionMiddleware :: class ) ; }
Register the middleware to the application

Register the following middleware:
- \Laraflock\Dashboard\Middleware\UserMiddleware
- \Laraflock\Dashboard\Middleware\RoleMiddleware
- \Laraflock\Dashboard\Middleware\PermissionMiddleware
Register the middleware to the application