當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。