Simplify opening routes.
This commit is contained in:
parent
111fdeba8f
commit
2d9b6958ec
|
@ -1,35 +0,0 @@
|
||||||
<?php namespace App\Http\Controllers;
|
|
||||||
|
|
||||||
class WelcomeController extends Controller
|
|
||||||
{
|
|
||||||
/*
|
|
||||||
|--------------------------------------------------------------------------
|
|
||||||
| Welcome Controller
|
|
||||||
|--------------------------------------------------------------------------
|
|
||||||
|
|
|
||||||
| This controller renders the "marketing page" for the application and
|
|
||||||
| is configured to only allow guests. Like most of the other sample
|
|
||||||
| controllers, you are free to modify or remove it as you desire.
|
|
||||||
|
|
|
||||||
*/
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Create a new controller instance.
|
|
||||||
*
|
|
||||||
* @return void
|
|
||||||
*/
|
|
||||||
public function __construct()
|
|
||||||
{
|
|
||||||
$this->middleware('guest');
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Show the application welcome screen to the user.
|
|
||||||
*
|
|
||||||
* @return Response
|
|
||||||
*/
|
|
||||||
public function index()
|
|
||||||
{
|
|
||||||
return view('welcome');
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -11,4 +11,6 @@
|
||||||
|
|
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
Route::get('/', 'WelcomeController@index');
|
Route::get('/', function () {
|
||||||
|
return view('welcome');
|
||||||
|
});
|
||||||
|
|
Loading…
Reference in New Issue