diff --git a/en/development/routing.rst b/en/development/routing.rst index 67ff2cb05e..0d99bc48f8 100644 --- a/en/development/routing.rst +++ b/en/development/routing.rst @@ -870,11 +870,11 @@ routes. For example, if your ``edit()`` action is called ``put()`` you can use the ``actions`` key to rename the actions used:: $routes->resources('Articles', [ - 'actions' => ['update' => 'put', 'create' => 'create'] + 'actions' => ['update' => 'put', 'create' => 'add'] ]); -The above would use ``put()`` for the ``edit()`` action, and ``create()`` -instead of ``add()``. +The above would use ``put()`` for the ``edit()`` action, and ``add()`` +instead of ``create()``. Mapping Additional Resource Routes ----------------------------------