public function postDelete()
 {
     $contact = contact::find(Input::get('id'));
     if ($contact->delete()) {
         return 1;
     } else {
         return -1;
     }
 }
 public static function insert($data)
 {
     $contact = new contact();
     $contact->fill($data);
     $contact->save();
 }