Commit fefc202c authored by Taylor Otwell's avatar Taylor Otwell

tweak comments in the default controller.

parent 6f60c448
...@@ -12,11 +12,7 @@ class Home_Controller extends Controller { ...@@ -12,11 +12,7 @@ class Home_Controller extends Controller {
| |
| To start using this controller, simply remove the default route from the | To start using this controller, simply remove the default route from the
| application "routes.php" file. Laravel is smart enough to find this | application "routes.php" file. Laravel is smart enough to find this
| controller and call the default method, which is "get_index". | controller and call the default method, which is "action_index".
|
| Just like routes, controllers are also RESTful by default. Each method
| is prefixed with the HTTP verb it responds to, allowing you to quickly
| build beautiful RESTful applications.
| |
| This controller responds to URIs beginning with "home", and it also | This controller responds to URIs beginning with "home", and it also
| serves as the default controller for the application, meaning it | serves as the default controller for the application, meaning it
...@@ -24,14 +20,14 @@ class Home_Controller extends Controller { ...@@ -24,14 +20,14 @@ class Home_Controller extends Controller {
| |
| You can respond to GET requests to "/home/profile" like so: | You can respond to GET requests to "/home/profile" like so:
| |
| public function get_profile() | public function action_profile()
| { | {
| return "This is your profile!"; | return "This is your profile!";
| } | }
| |
| Any extra segments are passed to the method as parameters: | Any extra segments are passed to the method as parameters:
| |
| public function get_profile($id) | public function action_profile($id)
| { | {
| return "This is the profile for user {$id}."; | return "This is the profile for user {$id}.";
| } | }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment