AuthController.php 1.1 KB

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