This commit is contained in:
James Brooks
2015-01-01 13:40:02 +00:00
parent 6ab16f98ab
commit a0aed6757d
3 changed files with 11 additions and 7 deletions
+6 -1
View File
@@ -20,6 +20,11 @@ class DashAPIController extends Controller
}
}
/**
* Updates a components ordering.
*
* @return array
*/
public function postUpdateComponentOrder()
{
$componentData = Input::all();
@@ -28,7 +33,7 @@ class DashAPIController extends Controller
foreach ($componentData['component'] as $componentId => $order) {
$component = Component::find($componentId);
$component->update([
'order' => $order
'order' => $order,
]);
}