2020-02-25 16:02:36 -05:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace App\Http\Controllers\Auth;
|
2016-08-19 16:38:49 -04:00
|
|
|
|
|
|
|
use App\Http\Controllers\Controller;
|
2020-02-25 16:02:36 -05:00
|
|
|
use App\Providers\RouteServiceProvider;
|
2016-08-19 16:38:49 -04:00
|
|
|
use Illuminate\Foundation\Auth\AuthenticatesUsers;
|
|
|
|
|
2020-02-25 16:02:36 -05:00
|
|
|
class LoginController extends Controller
|
|
|
|
{
|
2016-08-19 16:38:49 -04:00
|
|
|
/*
|
|
|
|
|--------------------------------------------------------------------------
|
|
|
|
| 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;
|
|
|
|
|
|
|
|
/**
|
2016-09-08 11:30:08 -04:00
|
|
|
* Where to redirect users after login.
|
2016-08-19 16:38:49 -04:00
|
|
|
*
|
|
|
|
* @var string
|
|
|
|
*/
|
2020-02-25 16:02:36 -05:00
|
|
|
protected $redirectTo = RouteServiceProvider::HOME;
|
2016-08-19 16:38:49 -04:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Create a new controller instance.
|
|
|
|
*
|
|
|
|
* @return void
|
|
|
|
*/
|
|
|
|
public function __construct()
|
|
|
|
{
|
2017-09-26 13:11:57 -04:00
|
|
|
$this->middleware('guest')->except('logout');
|
2016-08-19 16:38:49 -04:00
|
|
|
}
|
|
|
|
}
|