template login/home

This commit is contained in:
Malibu
2015-02-12 18:58:03 +01:00
parent a6815ad3ea
commit e28cd6d653
20 changed files with 106 additions and 48 deletions

View File

@ -0,0 +1,25 @@
<?php namespace App\Http\Controllers;
class GameController extends Controller {
/**
* Create a new controller instance.
*
* @return void
*/
public function __construct()
{
$this->middleware('guest');
}
/**
* Show the application dashboard to the user.
*
* @return Response
*/
public function index()
{
return view('home');
}
}

View File

@ -0,0 +1,25 @@
<?php namespace App\Http\Controllers;
class LoginController extends Controller {
/**
* Create a new controller instance.
*
* @return void
*/
public function __construct()
{
$this->middleware('guest');
}
/**
* Show the application dashboard to the user.
*
* @return Response
*/
public function index()
{
return view('auth.login');
}
}

View File

@ -11,9 +11,11 @@
|
*/
Route::get('/', 'WelcomeController@index');
Route::get('/', 'GameController@index');
Route::get('home', 'HomeController@index');
Route::get('login', 'LoginController@index');
//Route::get('home', 'HomeController@index');
Route::controllers([
'auth' => 'Auth\AuthController',