parent
1292697242
commit
90ad9d7391
|
@ -32,6 +32,12 @@ class LoginController extends Controller
|
|||
*
|
||||
* @return void
|
||||
*/
|
||||
|
||||
public function index()
|
||||
{
|
||||
return View('auth.login');
|
||||
}
|
||||
|
||||
public function __construct()
|
||||
{
|
||||
$this->middleware('guest')->except('logout');
|
||||
|
|
|
@ -68,4 +68,11 @@ class RegisterController extends Controller
|
|||
'password' => bcrypt($data['password']),
|
||||
]);
|
||||
}
|
||||
|
||||
|
||||
public function index()
|
||||
{
|
||||
return View('auth.register');
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -15,12 +15,13 @@
|
|||
<body>
|
||||
<div>
|
||||
<nav class="navbar static-top navbar-dark bg-dark">
|
||||
<a class="navbar-brand" href="#">BadMemoryGame</a>
|
||||
<a class="navbar-brand" href="/">BadMemoryGame</a>
|
||||
<form class="form-inline my-2 my-lg-0">
|
||||
<li>
|
||||
<button class="btn btn-outline-success" type="submit">Login</button>
|
||||
<button class="btn btn-outline-success" type="submit">Registar</button>
|
||||
<a href="{{ route('login') }}"><button class="btn btn-outline-success" type="button">Login</button></a>
|
||||
<a href="{{ route('register') }}"><button class="btn btn-outline-success" type="button">Registar</button></a>
|
||||
</li>
|
||||
|
||||
</form>
|
||||
</nav>
|
||||
|
||||
|
|
|
@ -14,3 +14,6 @@
|
|||
Route::get('/', function () {
|
||||
return view('welcome');
|
||||
});
|
||||
|
||||
Route::get('/login', 'Auth\LoginController@index')->name('login');
|
||||
Route::get('/register', 'Auth\RegisterController@index')->name('register');
|
||||
|
|
Loading…
Reference in New Issue