Skip to content

Commit 06d7abc

Browse files
committed
Route::get('admin', array('before' => 'auth', function() {}));
forgot the last )
1 parent aae8b62 commit 06d7abc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

laravel/documentation/auth/usage.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ It is common to limit access to certain routes only to logged in users. In Larav
6363

6464
To protect a route, simply attach the **auth** filter:
6565

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

6868
> **Note:** You are free to edit the **auth** filter however you like. A default implementation is located in **application/routes.php**.
6969

0 commit comments

Comments
 (0)