Route::get('admin', array('before' => 'auth', function() {}));

forgot the last )
This commit is contained in:
dlabs88 2012-06-12 04:00:15 +03:00
parent aae8b62d6a
commit 06d7abc2d4
1 changed files with 1 additions and 1 deletions

View File

@ -63,7 +63,7 @@ ## Protecting Routes
To protect a route, simply attach the **auth** filter: To protect a route, simply attach the **auth** filter:
Route::get('admin', array('before' => 'auth', function() {}); Route::get('admin', array('before' => 'auth', function() {}));
> **Note:** You are free to edit the **auth** filter however you like. A default implementation is located in **application/routes.php**. > **Note:** You are free to edit the **auth** filter however you like. A default implementation is located in **application/routes.php**.