public function route($name, $uses)
    {
        if (in_array($name, $this->reserved)) {
            throw new InvalidArgumentException("Unable to use reserved keyword [{$name}].");
        } elseif (Str::contains($name, '/')) {
            throw new InvalidArgumentException("Invalid character in resource name [{$name}].");
        }

        $this->attributes['routes'][$name] = $uses;

        return $this;
    }
public function route($name, $uses)
    {
        if (in_array($name, $this->reserved)) {
            throw new InvalidArgumentException("Unable to use reserved keyword [{$name}].");
        } elseif (Str::contains($name, '/')) {
            throw new InvalidArgumentException("Invalid character in resource name [{$name}].");
        }

        $this->attributes['routes'][$name] = $uses;

        return $this;
    }
public function route ( $ name , $ uses ) { if ( in_array ( $ name , $ this -> reserved ) ) { throw new InvalidArgumentException ( "Unable to use reserved keyword [{$name}]." ) ; } elseif ( Str :: contains ( $ name , '/' ) ) { throw new InvalidArgumentException ( "Invalid character in resource name [{$name}]." ) ; } $ this -> attributes [ 'routes' ] [ $ name ] = $ uses ; return $ this ; }
Map a child resource attributes.

@param  string  $name
@param  string  $uses

@return $this

@throws \InvalidArgumentException
Map a child resource attributes .