You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: user_guide_src/source/incoming/restful.rst
+13-13Lines changed: 13 additions & 13 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -47,7 +47,7 @@ name::
47
47
.. important:: The routes are matched in the order they are specified, so if you have a resource photos above a get 'photos/poll' the show action's route for the resource line will be matched before the get line. To fix this, move the get line above the resource line so that it is matched first.
48
48
49
49
The second parameter accepts an array of options that can be used to modify the routes that are generated. While these
50
-
routes are geared toward API-usage, where more methods are allowed, you can pass in the 'websafe' option to have it
50
+
routes are geared toward API-usage, where more methods are allowed, you can pass in the ``websafe`` option to have it
51
51
generate update and delete methods that work with HTML forms::
52
52
53
53
$routes->resource('photos', ['websafe' => 1]);
@@ -70,7 +70,7 @@ the controller that should be used::
70
70
Change the Placeholder Used
71
71
---------------------------
72
72
73
-
By default, the ``segment`` placeholder is used when a resource ID is needed. You can change this by passing
73
+
By default, the ``(:segment)`` placeholder is used when a resource ID is needed. You can change this by passing
74
74
in the ``placeholder`` option with the new string to use::
Otherwise you can remove unused routes with the ``except`` option. This option run after ``only``::
89
+
Otherwise you can remove unused routes with the ``except`` option. This should also be **an array** or **comma separated list** of method names. This option run after ``only``::
Otherwise you can remove unused routes with the ``except`` option. This option run after ``only``::
194
+
Otherwise you can remove unused routes with the ``except`` option. This should also be **an array** or **comma separated list** of method names. This option run after ``only``::
0 commit comments