From 3cc1ad7771d3d43dc7d87e1da3753afb0c0e2640 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=83=A1=E5=8A=BC?= Date: Wed, 3 Dec 2014 23:26:49 +0800 Subject: [PATCH] nav and protect index --- publisher/app/routes.php | 6 +----- publisher/app/views/layouts/master.blade.php | 12 ++---------- 2 files changed, 3 insertions(+), 15 deletions(-) diff --git a/publisher/app/routes.php b/publisher/app/routes.php index 1bfb01c..4799521 100644 --- a/publisher/app/routes.php +++ b/publisher/app/routes.php @@ -11,11 +11,7 @@ | */ -Route::get('/', function() -{ - return View::make('hello'); -}); -Route::get('home/welcome', 'HomeController@showWelcome'); +Route::get('/', array('before' => 'auth', 'uses' => 'HomeController@showWelcome')); //项目 Route::get('projects/index', array('before' => 'auth', 'uses' => 'ProjectsController@allProjects')); diff --git a/publisher/app/views/layouts/master.blade.php b/publisher/app/views/layouts/master.blade.php index 76fa66d..791b315 100644 --- a/publisher/app/views/layouts/master.blade.php +++ b/publisher/app/views/layouts/master.blade.php @@ -7,29 +7,21 @@