public function destroy($id)
 {
     Employee::destroy($id);
     return Redirect::route('employees.index');
 }
示例#2
0
 /**
  * Remove the specified branch from storage.
  *
  * @param  int  $id
  * @return Response
  */
 public function destroy($id)
 {
     $employee = Employee::findOrFail($id);
     Employee::destroy($id);
     Audit::logaudit('Employee', 'delete', 'deleted: ' . $employee->personal_file_number . '-' . $employee->first_name . ' ' . $employee->last_name);
     return Redirect::route('employees.index');
 }
 public static function destroy($id)
 {
     $employee = new Employee(array('id' => $id));
     $employee->destroy($id);
     Redirect::to('/tyontekijat', array('message' => 'Työntekijä poistettu onnistuneesti!'));
 }
示例#4
0
 public static function removeEmployee($data)
 {
     Employee::destroy($data);
 }
 /**
  * Remove the specified product from storage.
  *
  * @param  int  $id
  * @return Response
  */
 public function destroy($id)
 {
     Employee::destroy($id);
     return Response::json(array('success' => true, 'message' => array('type' => 'success', 'msg' => 'Xóa nhân viên thành công!')));
 }
示例#6
0
 public function destroy($id)
 {
     Employee::destroy($id);
     Session::flash('message', 'Sukses menghapus data pegawai!');
 }