Commit c634e433 authored by Nicolas Widart's avatar Nicolas Widart

Merge commit 'f2628725'

* commit 'f2628725':
  Squashed 'Modules/Menu/' changes from eac3385..c345f10
parents ed63f256 f2628725
......@@ -59,7 +59,7 @@ class MenuController extends AdminBaseController
{
$this->menu->create($request->all());
Flash::success('Menu created!');
Flash::success(trans('menu::messages.menu created'));
return $this->redirector->route('dashboard.menu.index');
}
......@@ -76,7 +76,7 @@ class MenuController extends AdminBaseController
{
$this->menu->update($menu, $request->all());
Flash::success('Menu updated!');
Flash::success(trans('menu::messages.menu updated'));
return $this->redirector->route('dashboard.menu.index');
}
......@@ -84,7 +84,7 @@ class MenuController extends AdminBaseController
{
$this->menu->destroy($menu);
Flash::success('Menu destroyed');
Flash::success(trans('menu::messages.menu deleted'));
return $this->redirector->route('dashboard.menu.index');
}
}
......@@ -35,7 +35,7 @@ class MenuItemController
{
$this->menuItem->create($this->addMenuId($menu, $request));
Flash::success('Menu item created!');
Flash::success(trans('menu::messages.menuitem created'));
return $this->redirector->route('dashboard.menu.edit', [$menu->id]);
}
......@@ -48,7 +48,7 @@ class MenuItemController
{
$this->menuItem->update($menuItem, $this->addMenuId($menu, $request));
Flash::success('Menu item updated!');
Flash::success(trans('menu::messages.menuitem updated'));
return $this->redirector->route('dashboard.menu.edit', [$menu->id]);
}
......
<?php
return [
/* Menu management */
'menu created' => 'Menu successfully created.',
'menu not found' => 'Menu not found.',
'menu updated' => 'Menu successfully updated.',
'menu deleted' => 'Menu successfully deleted.',
/* MenuItem management */
'menuitem created' => 'Menu item successfully created.',
'menuitem not found' => 'Menu item not found.',
'menuitem updated' => 'Menu item successfully updated.',
'menuitem deleted' => 'Menu item successfully deleted.',
];
<?php
return [
/* Menu management */
'menu created' => 'Menu créer.',
'menu not found' => 'Menu non trouvé.',
'menu updated' => 'Menu mit à jour.',
'menu deleted' => 'Menu suprimer',
/* MenuItem management */
'menuitem created' => 'Elément de menu créer.',
'menuitem not found' => 'Elément de menu non trouvé.',
'menuitem updated' => 'Elément de menu mit à jour.',
'menuitem deleted' => 'Elément de menu suprimer',
];
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment