src/Http/Router/Route.php
public static function resource($url, $controller)
    {
        $route = new self($url);

        $route->targets = ['index', 'show', 'insert', 'add', 'update', 'edit', 'delete'];

        $route->setResourceMethods($url, $controller);

        return $route;
    }
public static function resource($url, $controller)
    {
        $route = new self($url);

        $route->targets = ['index', 'show', 'insert', 'add', 'update', 'edit', 'delete'];

        $route->setResourceMethods($url, $controller);

        return $route;
    }
public static function resource ( $ url , $ controller ) { $ route = new self ( $ url ) ; $ route -> targets = [ 'index' , 'show' , 'insert' , 'add' , 'update' , 'edit' , 'delete' ] ; $ route -> setResourceMethods ( $ url , $ controller ) ; return $ route ; }
Call resource route.

@param string $url
@param string $controller

@return mixed
Call resource route .