@@ 231-238 (lines=8) @@ | ||
228 | 'user_id' => 'required', |
|
229 | ]); |
|
230 | ||
231 | if($validator->fails()) |
|
232 | { |
|
233 | return Response::json(array( |
|
234 | 'title' => 'Error', |
|
235 | 'type' => 'error', |
|
236 | 'message' => $validator->errors()->all() |
|
237 | )); |
|
238 | } |
|
239 | ||
240 | try { |
|
241 | $client = str_replace(array('https://', 'http://'), array('',''),$request->input('client')); |
|
@@ 422-429 (lines=8) @@ | ||
419 | 'request' => 'required', |
|
420 | ]); |
|
421 | ||
422 | if($validator->fails()) |
|
423 | { |
|
424 | return Response::json(array( |
|
425 | 'title' => 'Error', |
|
426 | 'type' => 'error', |
|
427 | 'message' => $validator->errors()->all() |
|
428 | )); |
|
429 | } |
|
430 | if(Auth::guest()){ $current_user = 1; } |
|
431 | else{ $current_user = Auth::user()->id; } |
|
432 |