We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
@@ 57-63 (lines=7) @@ | ||
54 | } |
|
55 | ||
56 | // TODO: make this work without having to specify "index" |
|
57 | public function setRoute($route, $parameters = []) |
|
58 | { |
|
59 | if (!\Route::has($route)) throw new \Exception('This route does not exist.', 404); |
|
60 | ||
61 | $this->route = route($route, $parameters); |
|
62 | $this->initButtons(); |
|
63 | } |
|
64 | ||
65 | public function getRoute() |
|
66 | { |
@@ 523-531 (lines=9) @@ | ||
520 | * @param [string] Route name. |
|
521 | * @param [array] Parameters. |
|
522 | */ |
|
523 | public function setRouteName($route, $parameters = []) |
|
524 | { |
|
525 | $complete_route = $route.'.index'; |
|
526 | ||
527 | if (!\Route::has($complete_route)) throw new \Exception('There are no routes for this route name.', 404); |
|
528 | ||
529 | $this->route = route($complete_route, $parameters); |
|
530 | $this->initButtons(); |
|
531 | } |
|
532 | ||
533 | /** |
|
534 | * Get the current CrudController route. |