src/Routing/Router.php
public function restful($route, $class, $middlewares = array())
    {
        $middlewares = (is_string($middlewares)) ? array($middlewares) : $middlewares;

        $this->add('GET', '/' . $route, $class . '@index', $middlewares);
        $this->add('POST', '/' . $route, $class . '@store', $middlewares);

        $this->add('DELETE', '/' . $route . '/:id', $class . '@delete', $middlewares);
        $this->add('GET', '/' . $route . '/:id', $class . '@show', $middlewares);
        $this->add('PATCH', '/' . $route . '/:id', $class . '@update', $middlewares);
        $this->add('PUT', '/' . $route . '/:id', $class . '@update', $middlewares);

        return $this;
    }
public function restful($route, $class, $middlewares = array())
    {
        $middlewares = (is_string($middlewares)) ? array($middlewares) : $middlewares;

        $this->add('GET', '/' . $route, $class . '@index', $middlewares);
        $this->add('POST', '/' . $route, $class . '@store', $middlewares);

        $this->add('DELETE', '/' . $route . '/:id', $class . '@delete', $middlewares);
        $this->add('GET', '/' . $route . '/:id', $class . '@show', $middlewares);
        $this->add('PATCH', '/' . $route . '/:id', $class . '@update', $middlewares);
        $this->add('PUT', '/' . $route . '/:id', $class . '@update', $middlewares);

        return $this;
    }
Adds a listing of routes specified for RESTful approach.

@param  string       $route
@param  string       $class
@param  array|string $middlewares
@return self