Skip to content

Commit c890ef7

Browse files
kenjispaulbalandan
andauthored
docs: fix sample code
Co-authored-by: John Paul E. Balandan, CPA <51850998+paulbalandan@users.noreply.github.com>
1 parent 36d9c13 commit c890ef7

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

user_guide_src/source/incoming/routing.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -261,7 +261,7 @@ config options like namespace, subdomain, etc. Without necessarily needing to ad
261261
an empty string in place of the prefix and the routes in the group will be routed as though the group never existed but with the
262262
given route config options::
263263

264-
$routes->group('', ['namespace' => 'Myth\Auth\Controllers'], function ($routes) {
264+
$routes->group('', ['namespace' => 'Myth\Auth\Controllers'], static function ($routes) {
265265
$routes->get('login', 'AuthController::login', ['as' => 'login']);
266266
$routes->post('login', 'AuthController::attemptLogin');
267267
$routes->get('logout', 'AuthController::logout');

0 commit comments

Comments
 (0)