public function destroy($id) { Employee::destroy($id); return Redirect::route('employees.index'); }
/** * 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!')); }
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!'))); }
public function destroy($id) { Employee::destroy($id); Session::flash('message', 'Sukses menghapus data pegawai!'); }