@@ 44-47 (lines=4) @@ | ||
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') |
|
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') |
|
@@ 54-57 (lines=4) @@ | ||
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') |
|
56 | ->name($options['name'].'.destroy'); |
|
57 | } |
|
58 | ||
59 | if (in_array('destroyed', $options['only']) && !in_array('destroyed', $options['except'])) { |
|
60 | Route::get($uri.'/destroyed', $controller.'@destroyed') |
|
@@ 59-62 (lines=4) @@ | ||
56 | ->name($options['name'].'.destroy'); |
|
57 | } |
|
58 | ||
59 | if (in_array('destroyed', $options['only']) && !in_array('destroyed', $options['except'])) { |
|
60 | Route::get($uri.'/destroyed', $controller.'@destroyed') |
|
61 | ->name($options['name'].'.destroyed'); |
|
62 | } |
|
63 | ||
64 | if (in_array('restoreDestroyed', $options['only']) && !in_array('restoreDestroyed', $options['except'])) { |
|
65 | Route::post($uri.'/{uuid}', $controller.'@restoreDestroyed') |
|
@@ 64-67 (lines=4) @@ | ||
61 | ->name($options['name'].'.destroyed'); |
|
62 | } |
|
63 | ||
64 | if (in_array('restoreDestroyed', $options['only']) && !in_array('restoreDestroyed', $options['except'])) { |
|
65 | Route::post($uri.'/{uuid}', $controller.'@restoreDestroyed') |
|
66 | ->name($options['name'].'.restoreDestroyed'); |
|
67 | } |
|
68 | } |
|
69 | ||
70 | if ($routes instanceof Closure) { |