Components can now be re-ordered, closes #165

This commit is contained in:
James Brooks
2015-01-01 13:37:47 +00:00
parent 925818320c
commit 6ab16f98ab
17 changed files with 35878 additions and 44 deletions
+3 -1
View File
@@ -28,8 +28,10 @@ class HomeController extends Controller
*/
public function showIndex()
{
$components = Component::orderBy('order')->orderBy('created_at')->get();
return View::make('index', [
'components' => $this->component->all(),
'components' => $components,
'pageTitle' => Setting::get('app_name')
]);
}