public function serviceTypeSave()
 {
     // validate the info, create rules for the inputs
     $rules = array('txt-service-type' => 'required');
     // run the validation rules on the inputs from the form
     $validator = Validator::make(Input::all(), $rules);
     // if the validator fails, redirect back to the form
     if ($validator->fails()) {
         $messages = $validator->messages();
         return Redirect::to('service_type/add')->with('flash_error', $messages->first())->withInput();
     } else {
         $service_type = new ServiceTypes();
         $service_type->name = Input::get('txt-service-type');
         $service_type->save();
         // validation not successful, send back to form
         return Redirect::to('service_type/list')->with('flash_success', 'Service type successfully added.');
     }
 }