Example #1
0
 /**
  * Remove the specified resource from storage.
  *
  * @param  int $id
  * @return Response
  */
 public function destroy($id)
 {
     $formPost = FormPost::findOrFail($id);
     $formPost->delete();
     Flash::message('Post was successfully deleted');
     return langRedirectRoute('admin.form-post.index');
 }
 /**
  * Remove the specified resource from storage.
  *
  * @param int $id
  * @return Response
  */
 public function destroy($id)
 {
     $this->category->delete($id);
     //Notification::success('Category was successfully deleted');
     return langRedirectRoute('admin.category.index');
 }
 /**
  * Remove the specified resource from storage.
  *
  * @param  int $id
  * @return Response
  */
 public function destroy($id)
 {
     $this->article->delete($id);
     //Notification::success('Article was successfully deleted');
     return langRedirectRoute('admin.article.index');
 }
Example #4
0
 /**
  * Remove the specified resource from storage.
  *
  * @param int $id
  *
  * @return Response
  */
 public function destroy($id)
 {
     $this->article->delete($id);
     Flash::message('Article was successfully deleted');
     return langRedirectRoute('admin.article.index');
 }
 /**
  * Remove the specified resource from storage.
  *
  * @param int $id
  *
  * @return Response
  */
 public function destroy($id)
 {
     $this->photoGallery->delete($id);
     Flash::message('Photo gallery was successfully deleted');
     return langRedirectRoute('admin.photo-gallery.index');
 }
Example #6
0
 /**
  * Remove the specified resource from storage.
  *
  * @param  int $id
  * @return Response
  */
 public function destroy($id)
 {
     if ($this->menu->hasChildItems($id)) {
         //throw new Exception("This menu has sub-menus. Can't delete!");
         Flash::message("There are sub menus of this menu. Can't be deleted!");
         return Redirect::action('App\\Controllers\\Admin\\MenuController@index');
     }
     $this->menu = $this->menu->find($id);
     $this->menu->delete();
     Flash::message('Menu was successfully deleted');
     return langRedirectRoute('admin.menu.index');
 }
 /**
  * Remove the specified resource from storage.
  *
  * @param int $id
  * @return Response
  */
 public function destroy($id)
 {
     $this->category->delete($id);
     Flash::message('Category was successfully deleted');
     return langRedirectRoute('admin.category.index');
 }
 /**
  * Remove the specified resource from storage.
  *
  * @param  int $id
  * @return Response
  */
 public function destroy($id)
 {
     $slider = Slider::with('images')->findOrFail($id);
     $destinationPath = public_path() . $this->imgDir;
     File::delete($destinationPath . $slider->file_name);
     $slider->delete();
     Flash::message('Slider was successfully deleted');
     return langRedirectRoute('admin.slider.index');
 }
Example #9
0
 /**
  * Remove the specified resource from storage.
  *
  * @param  int $id
  * @return Response
  */
 public function destroy($id)
 {
     $this->page->delete($id);
     Notification::success('Page was successfully deleted');
     return langRedirectRoute('admin.page.index');
 }
Example #10
0
 /**
  * Remove the specified resource from storage.
  *
  * @param  int $id
  * @return Response
  */
 public function destroy($id)
 {
     $user = Sentry::findUserById($id);
     $user->delete();
     //Notification::success('User was successfully deleted');
     return langRedirectRoute('admin.user.index');
 }
Example #11
0
 /**
  * Remove the specified resource from storage.
  *
  * @param int $id
  * @return Response
  */
 public function destroy($id)
 {
     $this->faq->delete($id);
     Flash::message('Faq was successfully deleted');
     return langRedirectRoute('admin.faq.index');
 }
 /**
  * Remove the specified resource from storage.
  *
  * @param  int $id
  * @return Response
  */
 public function destroy($id)
 {
     $user = Sentinel::findById($id);
     $user->delete();
     Flash::message('User was successfully deleted');
     return langRedirectRoute('admin.user.index');
 }
Example #13
0
 /**
  * Remove the specified resource from storage.
  *
  * @param int $id
  *
  * @return Response
  */
 public function destroy($id)
 {
     $this->video->delete($id);
     Flash::message('Video was successfully deleted');
     return langRedirectRoute('admin.video.index');
 }
Example #14
0
 /**
  * Remove the specified resource from storage.
  *
  * @param int $id
  * @return Response
  */
 public function destroy($id)
 {
     $this->project->delete($id);
     Flash::message('Project was successfully deleted');
     return langRedirectRoute('admin.project.index');
 }
Example #15
0
 /**
  * Remove the specified resource from storage.
  *
  * @param int $id
  * @return Response
  */
 public function destroy($id)
 {
     $this->video->delete($id);
     Notification::success('Video was successfully deleted');
     return langRedirectRoute('admin.video.index');
 }
Example #16
0
 /**
  * Remove the specified resource from storage.
  *
  * @param  int $id
  * @return Response
  */
 public function destroy($id)
 {
     $this->news->delete($id);
     Notification::success('News was successfully deleted');
     return langRedirectRoute('admin.news.index');
 }
 /**
  * Remove the specified resource from storage.
  *
  * @param  int $id
  * @return Response
  */
 public function destroy($id)
 {
     $this->photoGallery->delete($id);
     //Notification::success('Photo gallery was successfully deleted');
     return langRedirectRoute('admin.photo-gallery.index');
 }
Example #18
0
 /**
  * Remove the specified resource from storage.
  *
  * @param int $id
  *
  * @return Response
  */
 public function destroy($id)
 {
     $this->news->delete($id);
     Flash::message('News was successfully deleted');
     return langRedirectRoute('admin.news.index');
 }
Example #19
0
 /**
  * Remove the specified resource from storage.
  *
  * @param int $id
  * @return Response
  */
 public function destroy($id)
 {
     $this->faq->delete($id);
     //Notification::success('Faq was successfully deleted');
     return langRedirectRoute('admin.faq.index');
 }