Working on default route setup.
This commit is contained in:
@@ -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');
|
||||
}
|
||||
|
||||
@@ -20,11 +20,8 @@ require __DIR__.'/filters.php';
|
||||
|
|
||||
| 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');
|
||||
|
||||
Reference in New Issue
Block a user