| Conditions | 2 |
| Paths | 1 |
| Total Lines | 16 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 60 | public function __destruct() |
||
| 61 | { |
||
| 62 | Route::get($this->uri, '\\'.MultiStepRedirectController::class); |
||
| 63 | collect()->times($this->steps, function ($step) { |
||
| 64 | foreach ($this->only as $namespace) { |
||
| 65 | $this->naming[$namespace] = "{$this->name}.{$step}.{$namespace}"; |
||
| 66 | } |
||
| 67 | Route::group([ |
||
| 68 | 'prefix' => $this->uri, |
||
| 69 | ], function () use ($step) { |
||
| 70 | Route::resource($step, "{$this->controller}Step{$step}") |
||
| 71 | ->only($this->only) |
||
| 72 | ->names($this->naming); |
||
| 73 | }); |
||
| 74 | }); |
||
| 75 | } |
||
| 76 | } |
||
| 77 |