template login/home
This commit is contained in:
25
SRC/app/Http/Controllers/GameController.php
Normal file
25
SRC/app/Http/Controllers/GameController.php
Normal 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');
|
||||
}
|
||||
|
||||
}
|
25
SRC/app/Http/Controllers/LoginController.php
Normal file
25
SRC/app/Http/Controllers/LoginController.php
Normal 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');
|
||||
}
|
||||
|
||||
}
|
@ -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',
|
||||
|
Reference in New Issue
Block a user