/** * Remove the specified resource from storage. * * @param int $id * @return \Illuminate\Http\Response */ public function destroy(Blog $blog) { $delete = $blog->delete(); if ($delete) { return 0; } else { return 1; } }
/** * Remove the specified resource from storage. * * @param int $id * @return Response */ public function destroy(Blog $blog) { if ($blog->delete()) { return redirect('admin/blog')->with('success', trans('blog/message.success.delete')); } else { return Redirect::route('admin/blog')->withInput()->with('error', trans('blog/message.error.delete')); } }
/** * Remove the specified resource from storage. * * @param int $id * @return Response */ public function getDelete(Blog $blog) { $blog->delete(); return redirect('admin/blog'); }
/** * Remove the specified resource from storage. * * @param int $id * @return Response */ public function destroy(Category $category, Blog $blog) { $blog->delete(); return Redirect::route('categories.show', $category->slug)->with('message', 'Blog post has been deleted!'); }
public function destroy(Blog $blog) { $blog->delete(); return redirect()->route("admin.blog.index")->with("success", trans("realestateadmin::blog.deleted")); }
public function destroy(Blog $blog) { $blog->delete(); return redirect()->route("backend.blog.index"); }
public function destroy(Blog $blog) { $blog->delete(); return redirect('blog')->with(['flash_message' => 'Your article has been deleted']); }