質問編集履歴
2
インデント修正
test
CHANGED
File without changes
|
test
CHANGED
@@ -106,13 +106,11 @@
|
|
106
106
|
|
107
107
|
class ChatConversationController extends Controller {
|
108
108
|
|
109
|
-
public function __construct()
|
109
|
+
public function __construct(){
|
110
|
-
|
111
|
-
{
|
112
110
|
|
113
111
|
$this->middleware('auth');
|
114
112
|
|
115
|
-
|
113
|
+
}
|
116
114
|
|
117
115
|
|
118
116
|
|
@@ -122,90 +120,90 @@
|
|
122
120
|
|
123
121
|
return view('chat_conversations/index',['data' => $data]);
|
124
122
|
|
123
|
+
}
|
124
|
+
|
125
|
+
public function show($id){
|
126
|
+
|
127
|
+
$data = ChatConversation::find($id);
|
128
|
+
|
129
|
+
return view('chat_conversations/show')->with('data',$data);
|
130
|
+
|
131
|
+
}
|
132
|
+
|
133
|
+
|
134
|
+
|
135
|
+
public function create(){
|
136
|
+
|
137
|
+
return view('chat_conversations/create');
|
138
|
+
|
139
|
+
}
|
140
|
+
|
141
|
+
|
142
|
+
|
143
|
+
public function store(Request $request){
|
144
|
+
|
145
|
+
$post = new ChatConversation();
|
146
|
+
|
147
|
+
$post->node_id = $request->node_id;
|
148
|
+
|
149
|
+
$post->line_id = $request->line_id;
|
150
|
+
|
151
|
+
$post->message = $request->message;
|
152
|
+
|
153
|
+
$post->version_type = $request->version_type;
|
154
|
+
|
155
|
+
$post->ip_addr = $request->ip_addr;
|
156
|
+
|
157
|
+
$post->platform = $request->platform;
|
158
|
+
|
159
|
+
$post->translate = $request->translate;
|
160
|
+
|
161
|
+
$post->save();
|
162
|
+
|
163
|
+
return redirect('chat_conversations');
|
164
|
+
|
165
|
+
}
|
166
|
+
|
167
|
+
|
168
|
+
|
169
|
+
public function edit(Request $request){
|
170
|
+
|
171
|
+
$record = ChatConversation::find($request->id);
|
172
|
+
|
173
|
+
return view('chat_conversations/edit', ['record'=>$record]);
|
174
|
+
|
175
|
+
}
|
176
|
+
|
177
|
+
|
178
|
+
|
179
|
+
public function update(Request $request) {
|
180
|
+
|
181
|
+
$record = new ChatConversation();
|
182
|
+
|
183
|
+
$record = ChatConversation::find($request->id);
|
184
|
+
|
185
|
+
$record->node_id = $request->node_id;
|
186
|
+
|
187
|
+
$record->line_id = $request->line_id;
|
188
|
+
|
189
|
+
$record->message = $request->message;
|
190
|
+
|
191
|
+
$record->version_type = $request->version_type;
|
192
|
+
|
193
|
+
$record->ip_addr = $request->ip_addr;
|
194
|
+
|
195
|
+
$record->platform = $request->platform;
|
196
|
+
|
197
|
+
$record->translate = $request->translate;
|
198
|
+
|
199
|
+
$record->save();
|
200
|
+
|
201
|
+
return redirect('/');
|
202
|
+
|
203
|
+
}
|
204
|
+
|
125
205
|
}
|
126
206
|
|
127
|
-
public function show($id){
|
128
|
-
|
129
|
-
$data = ChatConversation::find($id);
|
130
|
-
|
131
|
-
return view('chat_conversations/show')->with('data',$data);
|
132
|
-
|
133
|
-
}
|
134
|
-
|
135
|
-
|
136
|
-
|
137
|
-
public function create(){
|
138
|
-
|
139
|
-
return view('chat_conversations/create');
|
140
|
-
|
141
|
-
}
|
142
|
-
|
143
|
-
|
144
|
-
|
145
|
-
public function store(Request $request){
|
146
|
-
|
147
|
-
$post = new ChatConversation();
|
148
|
-
|
149
|
-
$post->node_id = $request->node_id;
|
150
|
-
|
151
|
-
$post->line_id = $request->line_id;
|
152
|
-
|
153
|
-
$post->message = $request->message;
|
154
|
-
|
155
|
-
$post->version_type = $request->version_type;
|
156
|
-
|
157
|
-
$post->ip_addr = $request->ip_addr;
|
158
|
-
|
159
|
-
$post->platform = $request->platform;
|
160
|
-
|
161
|
-
$post->translate = $request->translate;
|
162
|
-
|
163
|
-
$post->save();
|
164
|
-
|
165
|
-
return redirect('chat_conversations');
|
166
|
-
|
167
|
-
}
|
168
|
-
|
169
|
-
|
170
|
-
|
171
|
-
public function edit(Request $request){
|
172
|
-
|
173
|
-
$record = ChatConversation::find($request->id);
|
174
|
-
|
175
|
-
return view('chat_conversations/edit', ['record'=>$record]);
|
176
|
-
|
177
|
-
}
|
178
|
-
|
179
|
-
|
180
|
-
|
181
|
-
public function update(Request $request) {
|
182
|
-
|
183
|
-
$record = new ChatConversation();
|
184
|
-
|
185
|
-
$record = ChatConversation::find($request->id);
|
186
|
-
|
187
|
-
$record->node_id = $request->node_id;
|
188
|
-
|
189
|
-
$record->line_id = $request->line_id;
|
190
|
-
|
191
|
-
$record->message = $request->message;
|
192
|
-
|
193
|
-
$record->version_type = $request->version_type;
|
194
|
-
|
195
|
-
$record->ip_addr = $request->ip_addr;
|
196
|
-
|
197
|
-
$record->platform = $request->platform;
|
198
|
-
|
199
|
-
$record->translate = $request->translate;
|
200
|
-
|
201
|
-
$record->save();
|
202
|
-
|
203
|
-
return redirect('/');
|
204
|
-
|
205
|
-
}
|
206
|
-
|
207
|
-
}
|
208
|
-
|
209
207
|
?>
|
210
208
|
|
211
209
|
|
1
誤字修正
test
CHANGED
File without changes
|
test
CHANGED
@@ -18,7 +18,7 @@
|
|
18
18
|
|
19
19
|
```
|
20
20
|
|
21
|
-
we.php
|
21
|
+
web.php
|
22
22
|
|
23
23
|
|
24
24
|
|
@@ -48,11 +48,19 @@
|
|
48
48
|
|
49
49
|
|
50
50
|
|
51
|
-
Route::get('chat_conversations/create', 'ChatConversationController@create')-
|
51
|
+
Route::get('chat_conversations/create', 'ChatConversationController@create')-
|
52
|
+
|
53
|
+
|
54
|
+
|
52
|
-
|
55
|
+
>name('create');
|
53
|
-
|
54
|
-
|
56
|
+
|
57
|
+
|
58
|
+
|
55
|
-
Route::post('chat_conversations/store', 'ChatConversationController@store')-
|
59
|
+
Route::post('chat_conversations/store', 'ChatConversationController@store')-
|
60
|
+
|
61
|
+
|
62
|
+
|
63
|
+
>name('store');
|
56
64
|
|
57
65
|
|
58
66
|
|
@@ -60,7 +68,15 @@
|
|
60
68
|
|
61
69
|
|
62
70
|
|
63
|
-
Route::post('chat_conversations/update', 'ChatConversationController@update')-
|
71
|
+
Route::post('chat_conversations/update', 'ChatConversationController@update')-
|
72
|
+
|
73
|
+
|
74
|
+
|
75
|
+
>name('update');
|
76
|
+
|
77
|
+
|
78
|
+
|
79
|
+
?>
|
64
80
|
|
65
81
|
|
66
82
|
|