@@ 62-68 (lines=7) @@ | ||
59 | // |
|
60 | } |
|
61 | ||
62 | public function edit($id) |
|
63 | { |
|
64 | $transition = WorkflowTransition::where('id',$id)->first(); |
|
65 | $states = WorkflowState::all(); |
|
66 | ||
67 | return view('workflow.transitionedit',['transition' => $transition, 'states' => $states]); |
|
68 | } |
|
69 | ||
70 | public function update(Request $request, $id) |
|
71 | { |
@@ 57-63 (lines=7) @@ | ||
54 | return redirect()->route('transition')->with('message', 'Add data success'); |
|
55 | } |
|
56 | ||
57 | public static function transitionEdit($id) |
|
58 | { |
|
59 | $transition = WorkflowTransition::where('id',$id)->first(); |
|
60 | $states = WorkflowState::all(); |
|
61 | ||
62 | return view('workflow::workflow.transitionedit',['transition' => $transition, 'states' => $states]); |
|
63 | } |
|
64 | ||
65 | public static function transitionUpdate($request = array(), $id) |
|
66 | { |