Example #1
0
 public function postSendMessage()
 {
     $input = Input::all();
     $file_name = Input::hasFile('kid_image') ? $this->upload_file($input['kid_image']) : '';
     $input['kid_image'] = $file_name;
     $input['report_by'] = Auth::org()->get()->uid;
     Messages::create($input);
     return Redirect::back()->with('success', 'Message Sent Successfully');
 }