src/Http/Router/Route.php
private function setResource($url, $route, $controller, $target)
    {
        $url = $url.$route;

        $route = new self($url);

        $closure = $this->getResourceClosure($controller, $target);

        $route->setClosure($closure);
        $route->setMethod('resource');
        $route->setTarget($controller, $target);

        $this->addResource($route);

        $route->add();

        return $route;
    }
private function setResource($url, $route, $controller, $target)
    {
        $url = $url.$route;

        $route = new self($url);

        $closure = $this->getResourceClosure($controller, $target);

        $route->setClosure($closure);
        $route->setMethod('resource');
        $route->setTarget($controller, $target);

        $this->addResource($route);

        $route->add();

        return $route;
    }
private function setResource ( $ url , $ route , $ controller , $ target ) { $ url = $ url . $ route ; $ route = new self ( $ url ) ; $ closure = $ this -> getResourceClosure ( $ controller , $ target ) ; $ route -> setClosure ( $ closure ) ; $ route -> setMethod ( 'resource' ) ; $ route -> setTarget ( $ controller , $ target ) ; $ this -> addResource ( $ route ) ; $ route -> add ( ) ; return $ route ; }
Set a resource routes.

@param string $url
@param string $route
@param string $controller

@return null
Set a resource routes .