@@ 34-37 (lines=4) @@ | ||
31 | $exceptAll = isset($options['except'][0]) && $options['except'][0] == '*'; |
|
32 | ||
33 | if (!$exceptAll) { |
|
34 | if (in_array('index', $options['only']) && !in_array('index', $options['except'])) { |
|
35 | Route::get($uri, $controller.'@index') |
|
36 | ->name($options['name'].'.index'); |
|
37 | } |
|
38 | ||
39 | if (in_array('show', $options['only']) && !in_array('show', $options['except'])) { |
|
40 | Route::get($uri.'/{uuid}', $controller.'@show') |
|
@@ 39-42 (lines=4) @@ | ||
36 | ->name($options['name'].'.index'); |
|
37 | } |
|
38 | ||
39 | if (in_array('show', $options['only']) && !in_array('show', $options['except'])) { |
|
40 | Route::get($uri.'/{uuid}', $controller.'@show') |
|
41 | ->name($options['name'].'.show'); |
|
42 | } |
|
43 | ||
44 | if (in_array('store', $options['only']) && !in_array('store', $options['except'])) { |
|
45 | Route::post($uri, $controller.'@store') |
|
@@ 49-52 (lines=4) @@ | ||
46 | ->name($options['name'].'.store'); |
|
47 | } |
|
48 | ||
49 | if (in_array('update', $options['only']) && !in_array('update', $options['except'])) { |
|
50 | Route::put($uri.'/{uuid}', $controller.'@update') |
|
51 | ->name($options['name'].'.update'); |
|
52 | } |
|
53 | ||
54 | if (in_array('destroy', $options['only']) && !in_array('destroy', $options['except'])) { |
|
55 | Route::delete($uri.'/{uuid}', $controller.'@destroy') |