public function destroy($id) { $deleted_count = Problem::destroy($id); if ($deleted_count > 0) { Flash::success('Se ha borrado el problema.'); } else { Flash::error('Ocurrió un problema durante el borrado.'); } return redirect('problems'); }
public function destroy($id) { $deleted_count = Problem::destroy($id); if ($deleted_count > 0) { Flash::success('Se ha borrado el problema.'); } else { Flash::error('Ocurrió un problema durante el borrado.'); } return redirect('problems'); }