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

View File

@@ -9,7 +9,7 @@ class DashComponentController extends Controller
*/
public function showComponents()
{
$components = Component::all();
$components = Component::orderBy('order')->orderBy('created_at')->get();
return View::make('dashboard.components.index')->with([
'pageTitle' => 'Components - Dashboard',