/** * POST Display a doDelete of the resource. * * @return Response */ public function doDelete() { $aData = Input::all(); if (isset($aData['id'])) { $vacancy = Vacancy::find($aData['id']); $vacancy->delete(); return Redirect::route('vacancy-list')->with('message', 'Вакансия успешно удалена'); } return Redirect::route('vacancy-list')->with('message', 'Произошла ошибка удаления'); }