/**
  * 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;
     }
 }
Esempio n. 2
0
 /**
  * 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'));
     }
 }
Esempio n. 3
0
 /**
  * Remove the specified resource from storage.
  *
  * @param  int  $id
  * @return Response
  */
 public function getDelete(Blog $blog)
 {
     $blog->delete();
     return redirect('admin/blog');
 }
Esempio n. 4
0
 /**
  * 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!');
 }
Esempio n. 5
0
 public function destroy(Blog $blog)
 {
     $blog->delete();
     return redirect()->route("admin.blog.index")->with("success", trans("realestateadmin::blog.deleted"));
 }
Esempio n. 6
0
 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']);
 }