|
@@ 460-464 (lines=5) @@
|
| 457 |
|
} |
| 458 |
|
} |
| 459 |
|
|
| 460 |
|
if (empty($only) || in_array('index', $only)) |
| 461 |
|
{ |
| 462 |
|
$route_attr = array_merge($base_attr, ['uses' => $controller.'@index', 'as' => $name.'.index']); |
| 463 |
|
self::get('/', $route_attr, $hideOriginal); |
| 464 |
|
} |
| 465 |
|
|
| 466 |
|
if (empty($only) || in_array('create', $only)) |
| 467 |
|
{ |
|
@@ 466-470 (lines=5) @@
|
| 463 |
|
self::get('/', $route_attr, $hideOriginal); |
| 464 |
|
} |
| 465 |
|
|
| 466 |
|
if (empty($only) || in_array('create', $only)) |
| 467 |
|
{ |
| 468 |
|
$route_attr = array_merge($base_attr, ['uses' => $controller.'@create', 'as' => $name.'.create']); |
| 469 |
|
self::get('create', $route_attr, $hideOriginal); |
| 470 |
|
} |
| 471 |
|
|
| 472 |
|
if (empty($only) || in_array('store', $only)) |
| 473 |
|
{ |
|
@@ 472-476 (lines=5) @@
|
| 469 |
|
self::get('create', $route_attr, $hideOriginal); |
| 470 |
|
} |
| 471 |
|
|
| 472 |
|
if (empty($only) || in_array('store', $only)) |
| 473 |
|
{ |
| 474 |
|
$route_attr = array_merge($base_attr, ['uses' => $controller.'@store', 'as' => $name.'.store']); |
| 475 |
|
self::post('/', $route_attr, $hideOriginal); |
| 476 |
|
} |
| 477 |
|
|
| 478 |
|
if (empty($only) || in_array('show', $only)) |
| 479 |
|
{ |
|
@@ 478-482 (lines=5) @@
|
| 475 |
|
self::post('/', $route_attr, $hideOriginal); |
| 476 |
|
} |
| 477 |
|
|
| 478 |
|
if (empty($only) || in_array('show', $only)) |
| 479 |
|
{ |
| 480 |
|
$route_attr = array_merge($base_attr, ['uses' => $controller.'@show', 'as' => $name.'.show']); |
| 481 |
|
self::get('{slug}', $route_attr, $hideOriginal); |
| 482 |
|
} |
| 483 |
|
|
| 484 |
|
if (empty($only) || in_array('edit', $only)) |
| 485 |
|
{ |
|
@@ 484-488 (lines=5) @@
|
| 481 |
|
self::get('{slug}', $route_attr, $hideOriginal); |
| 482 |
|
} |
| 483 |
|
|
| 484 |
|
if (empty($only) || in_array('edit', $only)) |
| 485 |
|
{ |
| 486 |
|
$route_attr = array_merge($base_attr, ['uses' => $controller.'@edit', 'as' => $name.'.edit']); |
| 487 |
|
self::get('{slug}/edit', $route_attr, $hideOriginal); |
| 488 |
|
} |
| 489 |
|
|
| 490 |
|
if (empty($only) || in_array('update', $only)) |
| 491 |
|
{ |
|
@@ 490-494 (lines=5) @@
|
| 487 |
|
self::get('{slug}/edit', $route_attr, $hideOriginal); |
| 488 |
|
} |
| 489 |
|
|
| 490 |
|
if (empty($only) || in_array('update', $only)) |
| 491 |
|
{ |
| 492 |
|
$route_attr = array_merge($base_attr, ['uses' => $controller.'@update', 'as' => $name.'.update']); |
| 493 |
|
self::matches(['PUT', 'PATCH'], '{slug}/update', $route_attr, $hideOriginal); |
| 494 |
|
} |
| 495 |
|
|
| 496 |
|
if (empty($only) || in_array('destroy', $only)) |
| 497 |
|
{ |
|
@@ 496-500 (lines=5) @@
|
| 493 |
|
self::matches(['PUT', 'PATCH'], '{slug}/update', $route_attr, $hideOriginal); |
| 494 |
|
} |
| 495 |
|
|
| 496 |
|
if (empty($only) || in_array('destroy', $only)) |
| 497 |
|
{ |
| 498 |
|
$route_attr = array_merge($base_attr, ['uses' => $controller.'@destroy', 'as' => $name.'.destroy']); |
| 499 |
|
self::delete('{slug}', $route_attr, $hideOriginal); |
| 500 |
|
} |
| 501 |
|
} |
| 502 |
|
|
| 503 |
|
|