public function processcomplaint()
 {
     $message = Input::get('message');
     if ($message == '') {
         \Session::flash('notice', 'Please enter a message!');
         return redirect()->back()->withInput();
     } else {
         $complaint = new Complaint();
         $complaint->complaint = Input::get('message');
         $complaint->user_id = Auth::id();
         if ($complaint->save()) {
             \Session::flash('notice', 'Successsfully reported Complaint');
             return redirect()->back();
         } else {
             \Session::flash('notice', 'Error reporting Complaint');
             return redirect()->back();
         }
     }
 }
 public function registercomplaint(Request $request)
 {
     Complaint::create($request->all());
     return redirect('/complaint');
 }