Advertisement
Guest User

Untitled

a guest
Aug 2nd, 2015
234
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.16 KB | None | 0 0
  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. // protected $redirectTo = 'index';
  24.  
  25. /**
  26. * Create a new authentication controller instance.
  27. *
  28. * @param \Illuminate\Contracts\Auth\Guard $auth
  29. * @param \Illuminate\Contracts\Auth\Registrar $registrar
  30. * @return void
  31. **/
  32.  
  33. public function __construct(Guard $auth, Registrar $registrar)
  34. {
  35. $this->auth = $auth;
  36. $this->registrar = $registrar;
  37.  
  38. $this->middleware('guest', ['except' => 'getLogout']);
  39. }
  40.  
  41.  
  42. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement