Skip to content

Commit

Permalink
Working on default route setup.
Browse files Browse the repository at this point in the history
  • Loading branch information
taylorotwell committed Aug 2, 2014
1 parent c4babe0 commit 3a34a99
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 7 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
/bootstrap/compiled.php
/app/routing/cache.php
/vendor
composer.phar
composer.lock
Expand Down
4 changes: 2 additions & 2 deletions app/controllers/HomeController.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@ class HomeController extends BaseController {
| based routes. That's great! Here is an example controller method to
| get you started. To route to this controller, just add the route:
|
| Route::get('/', 'HomeController@showWelcome');
| Route::get('/', 'HomeController@index');
|
*/

public function showWelcome()
public function index()
{
return View::make('hello');
}
Expand Down
7 changes: 2 additions & 5 deletions app/routing/routes.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,8 @@
|
| Here is where you can register all of the routes for an application.
| It's a breeze. Simply tell Laravel the URIs it should respond to
| and give it the Closure to execute when that URI is requested.
| then declare the method to execute when that URI is requested.
|
*/

Route::get('/', function()
{
return View::make('hello');
});
Route::get('/', 'HomeController@index');

0 comments on commit 3a34a99

Please sign in to comment.