Skip to content

Commit 3801710

Browse files
committed
Merge pull request laravel#442 from adamgoose/master
Added explanation of the 'except' parameter on Resource Routes.
2 parents f44f9b4 + 950aae5 commit 3801710

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

controllers.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,6 +162,9 @@ And, you may also specify a subset of actions to handle on the route:
162162

163163
Route::resource('photo', 'PhotoController',
164164
array('only' => array('index', 'show')));
165+
// or
166+
Route::resource('photo', 'PhotoController',
167+
array('except' => array('create', 'store', 'update', delete')));
165168

166169
<a name="handling-missing-methods"></a>
167170
## Handling Missing Methods
@@ -173,4 +176,4 @@ A catch-all method may be defined which will be called when no other matching me
173176
public function missingMethod($parameters)
174177
{
175178
//
176-
}
179+
}

0 commit comments

Comments
 (0)