This commit is contained in:
Deon George
2017-08-06 09:53:57 +10:00
parent d7f6bde3a5
commit c7e2a6866e
60 changed files with 70970 additions and 529 deletions

View File

@@ -5,32 +5,34 @@ namespace App\Http\Controllers\Auth;
use App\Http\Controllers\Controller;
use Illuminate\Foundation\Auth\AuthenticatesUsers;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\Auth;
class LoginController extends Controller
{
/*
|--------------------------------------------------------------------------
| Login Controller
|--------------------------------------------------------------------------
|
| This controller handles authenticating users for the application and
| redirecting them to your home screen. The controller uses a trait
| to conveniently provide its functionality to your applications.
|
*/
use AuthenticatesUsers {
/*
|--------------------------------------------------------------------------
| Login Controller
|--------------------------------------------------------------------------
|
| This controller handles authenticating users for the application and
| redirecting them to your home screen. The controller uses a trait
| to conveniently provide its functionality to your applications.
|
*/
use AuthenticatesUsers {
attemptLogin as attemptLoginAtAuthenticatesUsers;
}
/**
/**
* Where to redirect users after login.
*
* @var string
*/
protected $redirectTo = '/home';
/**
/**
* Create a new controller instance.
*
* @return void
@@ -40,6 +42,11 @@ class LoginController extends Controller
$this->middleware('guest', ['except' => 'logout']);
}
protected function guard()
{
return Auth::guard('web');
}
/**
* Returns field name to use at login.
*