AuthController.php 1.0 KB

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