public function resourceController($router, $name, $controller)
    {
        $this->setRouter($router);

        foreach ($this->resourceRoutes as $key => $action) {
            $this->{'setResource' . ucfirst($action)}($name, $controller, $action);
        }

        return $this;
    }