Working on default route setup.

This commit is contained in:
Taylor Otwell 2014-08-01 23:51:30 -05:00
parent c4babe0a07
commit 3a34a99694
3 changed files with 5 additions and 7 deletions

1
.gitignore vendored
View File

@ -1,4 +1,5 @@
/bootstrap/compiled.php /bootstrap/compiled.php
/app/routing/cache.php
/vendor /vendor
composer.phar composer.phar
composer.lock composer.lock

View File

@ -11,11 +11,11 @@ class HomeController extends BaseController {
| based routes. That's great! Here is an example controller method to | based routes. That's great! Here is an example controller method to
| get you started. To route to this controller, just add the route: | 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'); return View::make('hello');
} }

View File

@ -20,11 +20,8 @@
| |
| Here is where you can register all of the routes for an application. | 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 | 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() Route::get('/', 'HomeController@index');
{
return View::make('hello');
});