Changing default routing setup.

This commit is contained in:
Taylor Otwell
2014-11-02 10:02:20 -06:00
parent aa8bf8a211
commit 0ee0c434a3
6 changed files with 65 additions and 47 deletions

View File

@@ -1,23 +1,20 @@
<?php namespace App\Http\Controllers;
use Illuminate\Routing\Controller;
class HomeController extends Controller {
/*
|--------------------------------------------------------------------------
| Home Controller
| Default Home Controller
|--------------------------------------------------------------------------
|
| Controller methods are called when a request enters the application
| with their assigned URI. The URI a method responds to may be set
| via simple annotations. Here is an example to get you started!
| You may wish to use controllers instead of, or in addition to, Closure
| based routes. That's great! Here is an example controller method to
| get you started. To route to this controller, just add the route:
|
| $router->get('/', 'HomeController@showWelcome');
|
*/
/**
* @Get("/")
*/
public function index()
{
return view('hello');