Skip to content

Commit 36ae946

Browse files
committed
docs: improve explanation for except option
1 parent b91ac9f commit 36ae946

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

user_guide_src/source/incoming/restful.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -81,12 +81,12 @@ in the ``placeholder`` option with the new string to use::
8181
Limit the Routes Made
8282
---------------------
8383

84-
You can restrict the routes generated with the ``only`` option. This should be an array or comma separated list of method names that should
84+
You can restrict the routes generated with the ``only`` option. This should be **an array** or **comma separated list** of method names that should
8585
be created. Only routes that match one of these methods will be created. The rest will be ignored::
8686

8787
$routes->resource('photos', ['only' => ['index', 'show']]);
8888

89-
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``::
9090

9191
$routes->resource('photos', ['except' => 'new,edit']);
9292

@@ -186,12 +186,12 @@ in the ``placeholder`` option with the new string to use::
186186
Limit the Routes Made
187187
---------------------
188188

189-
You can restrict the routes generated with the ``only`` option. This should be an array or comma separated list of method names that should
189+
You can restrict the routes generated with the ``only`` option. This should be **an array** or **comma separated list** of method names that should
190190
be created. Only routes that match one of these methods will be created. The rest will be ignored::
191191

192192
$routes->presenter('photos', ['only' => ['index', 'show']]);
193193

194-
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``::
195195

196196
$routes->presenter('photos', ['except' => 'new,edit']);
197197

0 commit comments

Comments
 (0)