src/Http/Controllers/StateController.php 1 location
|
@@ 158-164 (lines=7) @@
|
| 155 |
|
* |
| 156 |
|
* @return json |
| 157 |
|
*/ |
| 158 |
|
public function edit($id) |
| 159 |
|
{ |
| 160 |
|
$response = $this->stateModel->findOrFail($id); |
| 161 |
|
$response['workflow'] = $response->workflow; |
| 162 |
|
$response['status'] = true; |
| 163 |
|
return response()->json($response); |
| 164 |
|
} |
| 165 |
|
|
| 166 |
|
/** |
| 167 |
|
* [Function] update |
src/Http/Controllers/WorkflowController.php 1 location
|
@@ 149-156 (lines=8) @@
|
| 146 |
|
* @param $id |
| 147 |
|
* @return \Illuminate\Http\JsonResponse |
| 148 |
|
*/ |
| 149 |
|
public function edit($id) |
| 150 |
|
{ |
| 151 |
|
|
| 152 |
|
$response['status'] = true; |
| 153 |
|
$response['workflow'] = $this->workflowModel->findOrFail($id); |
| 154 |
|
|
| 155 |
|
return response()->json($response); |
| 156 |
|
} |
| 157 |
|
|
| 158 |
|
/** |
| 159 |
|
* @param $id |