We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
@@ 477-485 (lines=9) @@ | ||
474 | * @param [string] Route name. |
|
475 | * @param [array] Parameters. |
|
476 | */ |
|
477 | public function setRouteName($route, $parameters = []) |
|
478 | { |
|
479 | $complete_route = $route.'.index'; |
|
480 | ||
481 | if (!\Route::has($complete_route)) throw new \Exception('There are no routes for this route name.', 404); |
|
482 | ||
483 | $this->route = route($complete_route, $parameters); |
|
484 | $this->initButtons(); |
|
485 | } |
|
486 | ||
487 | /** |
|
488 | * Get the current CrudController route. |
@@ 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 | { |