Skip to content

Commit

Permalink
Discuss route::controller naming.
Browse files Browse the repository at this point in the history
  • Loading branch information
taylorotwell committed Feb 24, 2015
1 parent c451efa commit 77b555a
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions controllers.md
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,14 @@ If your controller action contains multiple words, you may access the action usi

public function getAdminProfile() {}

#### Assigning Route Names

If you would like to "name" some of the routes on the controller, you may pass a third argument to the `controller` method:

Route::controller('users', 'UserController', [
'anyLogin' => 'user.login',
]);

<a name="restful-resource-controllers"></a>
## RESTful Resource Controllers

Expand Down

0 comments on commit 77b555a

Please sign in to comment.