Skip to content

Commit 9f02f7a

Browse files
committed
Tweak route controller class to array style
1 parent 63f9b6e commit 9f02f7a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/Facades/Wizard.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,18 +48,18 @@ public static function routes(
4848
if ($options['use_done']) {
4949
$router->get(
5050
"$uri/{$options['done_url']}",
51-
"$controllerClass@{$options['done']}"
51+
[$controllerClass, $options['done']]
5252
)->name("$name.{$options['done']}");
5353
}
5454

5555
$router->get(
5656
"$uri/{step?}",
57-
"$controllerClass@{$options['create']}"
57+
[$controllerClass, $options['create']]
5858
)->name("$name");
5959

6060
$router->post(
6161
"$uri/{step}",
62-
"$controllerClass@{$options['store']}"
62+
[$controllerClass, $options['store']]
6363
)->name("$name.{$options['store']}");
6464
}
6565
}

0 commit comments

Comments
 (0)