src/Factory.php
public function make($name, $attributes)
    {
        if (Str::contains($name, '.') || Str::contains($name, '/')) {
            throw new InvalidArgumentException("Invalid character in resource name [{$name}].");
        }

        return $this->drivers[$name] = new Router($name, $attributes);
    }
public function make($name, $attributes)
    {
        if (Str::contains($name, '.') || Str::contains($name, '/')) {
            throw new InvalidArgumentException("Invalid character in resource name [{$name}].");
        }

        return $this->drivers[$name] = new Router($name, $attributes);
    }
Register a new resource.

@param  string  $name
@param  mixed  $attributes

@return \Orchestra\Resources\Router

@throws \InvalidArgumentException