This commit is contained in:
Malibu
2015-02-12 20:00:23 +01:00
parent 0480d71aec
commit ba61a1b427
5 changed files with 126 additions and 1 deletions

View File

@ -0,0 +1,25 @@
<?php namespace App\Http\Controllers;
class AdminController 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('admin');
}
}

View File

@ -0,0 +1,25 @@
<?php namespace App\Http\Controllers;
class ReferentController 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('referent');
}
}

View File

@ -15,7 +15,9 @@ Route::get('/', 'GameController@index');
Route::get('login', 'LoginController@index');
//Route::get('home', 'HomeController@index');
Route::get('referent', 'ReferentController@index');
Route::get('admin', 'AdminController@index');
Route::controllers([
'auth' => 'Auth\AuthController',