From 6fa71870306f59a287a4f419f853948c4d428d30 Mon Sep 17 00:00:00 2001 From: Pontax Date: Wed, 22 Mar 2017 22:02:42 +0100 Subject: [PATCH] Correct example for action renaming --- en/development/routing.rst | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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 ----------------------------------