本文整理汇总了PHP中Employee::destroy方法的典型用法代码示例。如果您正苦于以下问题:PHP Employee::destroy方法的具体用法?PHP Employee::destroy怎么用?PHP Employee::destroy使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Employee
的用法示例。
在下文中一共展示了Employee::destroy方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: destroy
public function destroy($id)
{
Employee::destroy($id);
return Redirect::route('employees.index');
}
示例2: destroy
/**
* 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');
}
示例3: destroy
public static function destroy($id)
{
$employee = new Employee(array('id' => $id));
$employee->destroy($id);
Redirect::to('/tyontekijat', array('message' => 'Työntekijä poistettu onnistuneesti!'));
}
示例4: removeEmployee
public static function removeEmployee($data)
{
Employee::destroy($data);
}
示例5: destroy
/**
* 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: destroy
public function destroy($id)
{
Employee::destroy($id);
Session::flash('message', 'Sukses menghapus data pegawai!');
}