@@ 232-239 (lines=8) @@ | ||
229 | 'user_id' => 'required', |
|
230 | ]); |
|
231 | ||
232 | if($validator->fails()) |
|
233 | { |
|
234 | return Response::json(array( |
|
235 | 'title' => 'Error', |
|
236 | 'type' => 'error', |
|
237 | 'message' => $validator->errors()->all() |
|
238 | )); |
|
239 | } |
|
240 | ||
241 | try { |
|
242 | $host = str_replace(array('https://', 'http://'), array('',''),$request->input('host')); |
|
@@ 432-439 (lines=8) @@ | ||
429 | 'request' => 'required', |
|
430 | ]); |
|
431 | ||
432 | if($validator->fails()) |
|
433 | { |
|
434 | return Response::json(array( |
|
435 | 'title' => 'Error', |
|
436 | 'type' => 'error', |
|
437 | 'message' => $validator->errors()->all() |
|
438 | )); |
|
439 | } |
|
440 | if(Auth::guest()){ $current_user = 1; } |
|
441 | else{ $current_user = Auth::user()->id; } |
|
442 |