Skip to content

Commit

Permalink
Tweak route controller class to array style
Browse files Browse the repository at this point in the history
  • Loading branch information
ycs77 committed Sep 10, 2024
1 parent 63f9b6e commit 9f02f7a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Facades/Wizard.php
Original file line number Diff line number Diff line change
Expand Up @@ -48,18 +48,18 @@ public static function routes(
if ($options['use_done']) {
$router->get(
"$uri/{$options['done_url']}",
"$controllerClass@{$options['done']}"
[$controllerClass, $options['done']]
)->name("$name.{$options['done']}");
}

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

$router->post(
"$uri/{step}",
"$controllerClass@{$options['store']}"
[$controllerClass, $options['store']]
)->name("$name.{$options['store']}");
}
}

0 comments on commit 9f02f7a

Please sign in to comment.