Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/master'
Browse files Browse the repository at this point in the history
  • Loading branch information
ModestasV committed May 10, 2016
2 parents 69a3972 + b2f68a4 commit f9a03e9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Controllers/QuickadminMenuController.php
Original file line number Diff line number Diff line change
Expand Up @@ -300,7 +300,7 @@ public function edit($id)
public function update(Request $request, $id)
{
$requestArray = $request->all();
$requestArray['parent_id'] = $requestArray['parent_id'] ?: null;
$requestArray['parent_id'] = isset($requestArray['parent_id']) ? $requestArray['parent_id'] : null;
$menu = Menu::findOrFail($id);
$menu->update($requestArray);
$menu->roles()->sync($request->input('roles', []));
Expand Down
2 changes: 1 addition & 1 deletion src/routes.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
'uses' => 'Admin\\' . ucfirst(camel_case($menu->name)) . 'Controller@massDelete'
]);
Route::resource(strtolower($menu->name),
'Admin\\' . ucfirst(camel_case($menu->name)) . 'Controller');
'Admin\\' . ucfirst(camel_case($menu->name)) . 'Controller', ['except' => 'show']);
break;
case 3:
Route::controller(strtolower($menu->name),
Expand Down

0 comments on commit f9a03e9

Please sign in to comment.