This commit is contained in:
James Brooks
2014-12-30 15:24:03 +00:00
parent 332a2b43b0
commit fdf8677952
2 changed files with 3 additions and 6 deletions

View File

@@ -11,12 +11,9 @@ class DashAPIController extends Controller
{
$componentData = Input::all();
unset($componentData['_token']);
if ($component->update($componentData))
{
if ($component->update($componentData)) {
return $component;
}
else
{
} else {
App::abort(500);
}
}

View File

@@ -12,7 +12,7 @@ class DashboardController extends Controller
// TODO: Find steps needed to complete setup.
$components = Component::all();
return View::make('dashboard.index')->with([
'components' => $components
'components' => $components,
]);
}