@@ -228,15 +228,15 @@ extensive set of routes that all share the opening string, like when building an
228228
229229This would prefix the 'users' and 'blog" URIs with "admin", handling URLs like ``/admin/users `` and ``/admin/blog ``.
230230
231- If you need to assign options to a group, like a ` namespace < # assigning-namespace>`_ , do it before the callback::
231+ If you need to assign options to a group, like a :ref: ` assigning-namespace ` , do it before the callback::
232232
233233 $routes->group('api', ['namespace' => 'App\API\v1'], function ($routes) {
234234 $routes->resource('users');
235235 });
236236
237237This would handle a resource route to the ``App\API\v1\Users `` controller with the ``/api/users `` URI.
238238
239- You can also use a specific `filter <filters.html >`_ for a group of routes. This will always
239+ You can also use a specific :doc: `filter <filters >` for a group of routes. This will always
240240run the filter before or after the controller. This is especially handy during authentication or api logging::
241241
242242 $routes->group('api', ['filter' => 'api-auth'], function ($routes) {
@@ -338,7 +338,7 @@ available from the command line::
338338Global Options
339339==============
340340
341- All of the methods for creating a route (add, get, post, `resource <restful.html >`_ etc) can take an array of options that
341+ All of the methods for creating a route (add, get, post, :doc: `resource <restful >` etc) can take an array of options that
342342can modify the generated routes, or further restrict them. The ``$options `` array is always the last parameter::
343343
344344 $routes->add('from', 'to', $options);
@@ -363,7 +363,7 @@ The value for the filter can be a string or an array of strings:
363363* matching the aliases defined in **app/Config/Filters.php **.
364364* filter classnames
365365
366- See `Controller filters <filters.html >`_ for more information on setting up filters.
366+ See :doc: `Controller filters <filters >` for more information on setting up filters.
367367
368368.. Warning :: If you set filters to routes in **app/Config/Routes.php**
369369 (not in **app/Config/Filters.php **), it is recommended to disable auto-routing.
@@ -396,6 +396,8 @@ You specify an array for the filter value::
396396
397397 $routes->add('admin',' AdminController::index', ['filter' => ['admin-auth', \App\Filters\SomeFilter::class]]);
398398
399+ .. _assigning-namespace :
400+
399401Assigning Namespace
400402-------------------
401403
0 commit comments