equal
deleted
inserted
replaced
|
1 <?php namespace App\Http\Controllers\Auth; |
|
2 |
|
3 use App\Http\Controllers\Controller; |
|
4 use Illuminate\Contracts\Auth\Guard; |
|
5 use Illuminate\Contracts\Auth\Registrar; |
|
6 use Illuminate\Foundation\Auth\AuthenticatesAndRegistersUsers; |
|
7 |
|
8 class AuthController extends Controller { |
|
9 |
|
10 /* |
|
11 |-------------------------------------------------------------------------- |
|
12 | Registration & Login Controller |
|
13 |-------------------------------------------------------------------------- |
|
14 | |
|
15 | This controller handles the registration of new users, as well as the |
|
16 | authentication of existing users. By default, this controller uses |
|
17 | a simple trait to add these behaviors. Why don't you explore it? |
|
18 | |
|
19 */ |
|
20 |
|
21 use AuthenticatesAndRegistersUsers; |
|
22 |
|
23 /** |
|
24 * Create a new authentication controller instance. |
|
25 * |
|
26 * @param \Illuminate\Contracts\Auth\Guard $auth |
|
27 * @param \Illuminate\Contracts\Auth\Registrar $registrar |
|
28 * @return void |
|
29 */ |
|
30 public function __construct(Guard $auth, Registrar $registrar) |
|
31 { |
|
32 $this->auth = $auth; |
|
33 $this->registrar = $registrar; |
|
34 |
|
35 $this->middleware('guest', ['except' => 'getLogout']); |
|
36 } |
|
37 |
|
38 } |