Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
Platform
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
Platform
Commits
c928b193
Commit
c928b193
authored
Nov 10, 2014
by
Nicolas Widart
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Posting at right route
parent
a4241bec
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
21 additions
and
4 deletions
+21
-4
MenuItemController.php
Http/Controllers/Admin/MenuItemController.php
+13
-2
create.blade.php
Resources/views/admin/menuitems/create.blade.php
+1
-1
edit.blade.php
Resources/views/admin/menus/edit.blade.php
+7
-1
No files found.
Http/Controllers/Admin/MenuItemController.php
View file @
c928b193
<?php
namespace
Modules\Menu\Http\Controllers\Admin
;
use
Modules\Menu\Entities\Menu
;
class
MenuItemController
{
public
function
update
()
public
function
create
(
Menu
$menu
)
{
return
view
(
'menu::admin.menuitems.create'
,
compact
(
'menu'
));
}
public
function
store
(
Menu
$menu
)
{
dd
(
'Form posted'
,
$menu
);
}
public
function
update
(
Menu
$menu
)
{
dd
(
'ok?'
);
}
}
Resources/views/admin/menuitems/create.blade.php
View file @
c928b193
...
...
@@ -12,7 +12,7 @@
@stop
@section('content')
{!! Form::open(['route' => ['dashboard.menu
.store'
], 'method' => 'post']) !!}
{!! Form::open(['route' => ['dashboard.menu
item.store',
$menu->id
], 'method' => 'post']) !!}
<div class="
row
">
<div class="
col
-
md
-
12
">
...
...
Resources/views/admin/menus/edit.blade.php
View file @
c928b193
...
...
@@ -19,7 +19,13 @@
{!! Form::open(['route' => ['dashboard.menu.update',
$menu->id
], 'method' => 'put']) !!}
<div class="
row
">
<div class="
col
-
md
-
6
">
<div class="
row
">
<div class="
btn
-
group
pull
-
right
">
<a href="
{{
URL
::
route
(
'dashboard.menuitem.create'
,
[
$menu
->
id
])
}}
" class="
btn
btn
-
primary
btn
-
flat
">
<i class="
fa
fa
-
pencil
"></i> {{ trans('menu::menu.button.create menu item') }}
</a>
</div>
</div>
</div>
<div class="
col
-
md
-
6
">
<div class="
box
box
-
info
">
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment