/** * Remove the specified resource from storage. * * @param int $id * @return Response */ public function destroy($id) { // if (Tag::destroy($id)) { Notification::success('删除成功'); return Redirect::route('backend.tags.index'); } }
/** * Remove the specified resource from storage. * * @param int $id * @return Response */ public function destroy($id) { // if (Tag::destroy($id)) { Notification::success('删除成功'); } else { Notification::error('删除失败'); } return redirect()->route('backend.tags.index'); }
/** * Remove the specified resource from storage. * * @param int $id * @return Response */ public function destroy($id) { $count = Tag::destroy($id); if ($count > 0) { return returnData(true, [], true); } return returnData(false, [], true); }