本文整理汇总了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');
}
示例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');
}
示例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');
}
示例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');
}
示例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');
}
示例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');
}
示例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');
}
示例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');
}
示例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');
}
示例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');
}
示例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');
}
示例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');
}
示例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');
}
示例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');
}
示例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');
}