当前位置: 首页>>代码示例>>PHP>>正文


PHP langRedirectRoute函数代码示例

本文整理汇总了PHP中langRedirectRoute函数的典型用法代码示例。如果您正苦于以下问题:PHP langRedirectRoute函数的具体用法?PHP langRedirectRoute怎么用?PHP langRedirectRoute使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。


在下文中一共展示了langRedirectRoute函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: destroy

 /**
  * 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');
 }
开发者ID:phillipmadsen,项目名称:app,代码行数:13,代码来源:FormPostController.php

示例2: destroy

 /**
  * 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');
 }
开发者ID:MehmetNuri,项目名称:fullycms,代码行数:12,代码来源:CategoryController.php

示例3: destroy

 /**
  * 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');
 }
开发者ID:MehmetNuri,项目名称:fullycms,代码行数:12,代码来源:ArticleController.php

示例4: destroy

 /**
  * 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');
 }
开发者ID:noikiy,项目名称:fullycms,代码行数:13,代码来源:ArticleController.php

示例5: destroy

 /**
  * 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');
 }
开发者ID:noikiy,项目名称:fullycms,代码行数:13,代码来源:PhotoGalleryController.php

示例6: destroy

 /**
  * 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');
 }
开发者ID:phillipmadsen,项目名称:app,代码行数:18,代码来源:MenuController.php

示例7: destroy

 /**
  * 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');
 }
开发者ID:nicolasdanelon,项目名称:fullycms,代码行数:12,代码来源:CategoryController.php

示例8: destroy

 /**
  * 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');
 }
开发者ID:nicolasdanelon,项目名称:fullycms,代码行数:15,代码来源:SliderController.php

示例9: destroy

 /**
  * 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');
 }
开发者ID:RudolfFussek,项目名称:fullycms,代码行数:12,代码来源:PageController.php

示例10: destroy

 /**
  * 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');
 }
开发者ID:MehmetNuri,项目名称:fullycms,代码行数:13,代码来源:UserController.php

示例11: destroy

 /**
  * 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');
 }
开发者ID:nicolasdanelon,项目名称:fullycms,代码行数:12,代码来源:FaqController.php

示例12: destroy

 /**
  * 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');
 }
开发者ID:nicolasdanelon,项目名称:fullycms,代码行数:13,代码来源:UserController.php

示例13: destroy

 /**
  * 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');
 }
开发者ID:noikiy,项目名称:fullycms,代码行数:13,代码来源:VideoController.php

示例14: destroy

 /**
  * 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');
 }
开发者ID:phillipmadsen,项目名称:app,代码行数:12,代码来源:ProjectController.php

示例15: destroy

 /**
  * 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');
 }
开发者ID:phillipmadsen,项目名称:deved,代码行数:12,代码来源:VideoController.php


注:本文中的langRedirectRoute函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。